aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3441-drm-amd-display-audio-cannot-switch-to-internal-when.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3441-drm-amd-display-audio-cannot-switch-to-internal-when.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3441-drm-amd-display-audio-cannot-switch-to-internal-when.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3441-drm-amd-display-audio-cannot-switch-to-internal-when.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3441-drm-amd-display-audio-cannot-switch-to-internal-when.patch
new file mode 100644
index 00000000..6f093d52
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3441-drm-amd-display-audio-cannot-switch-to-internal-when.patch
@@ -0,0 +1,47 @@
+From 18a0409a6bae5c4df971e8423d2dbc3067354c9b Mon Sep 17 00:00:00 2001
+From: yanyan kang <Yanyan.Kang@amd.com>
+Date: Mon, 29 Jul 2019 17:46:44 +0800
+Subject: [PATCH 3441/4256] drm/amd/display: audio cannot switch to internal
+ when display turns off
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+[why]
+disable_az_endpoint has been skipped because
+dc->debug.az_endpoint_mute_only = true.
+
+[how]
+set dc->debug.az_endpoint_mute_only false when PPLIB’s PME notification function
+ pointer is not NULL at the dcn10_resource construct function,because right now
+ SMU/PPLIB and DAL all have the AZ D3 force PME notification implemented. AZ D3 should work.
+
+Signed-off-by: yanyan kang <Yanyan.Kang@amd.com>
+Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+index cd223603a0a8..2fb56dbefbda 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
+@@ -1414,6 +1414,14 @@ static bool construct(
+
+ pool->base.pp_smu = dcn10_pp_smu_create(ctx);
+
++ /*
++ * Right now SMU/PPLIB and DAL all have the AZ D3 force PME notification *
++ * implemented. So AZ D3 should work.For issue 197007. *
++ */
++ if (pool->base.pp_smu != NULL
++ && pool->base.pp_smu->rv_funcs.set_pme_wa_enable != NULL)
++ dc->debug.az_endpoint_mute_only = false;
++
+ if (!dc->debug.disable_pplib_clock_request)
+ dcn_bw_update_from_pplib(dc);
+ dcn_bw_sync_calcs_and_dml(dc);
+--
+2.17.1
+