aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3560-drm-amdgpu-powerplay-vega10-enable-mclk-switching-if.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3560-drm-amdgpu-powerplay-vega10-enable-mclk-switching-if.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3560-drm-amdgpu-powerplay-vega10-enable-mclk-switching-if.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3560-drm-amdgpu-powerplay-vega10-enable-mclk-switching-if.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3560-drm-amdgpu-powerplay-vega10-enable-mclk-switching-if.patch
new file mode 100644
index 00000000..ee538d60
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3560-drm-amdgpu-powerplay-vega10-enable-mclk-switching-if.patch
@@ -0,0 +1,32 @@
+From 81f7097613b3b13134f0c58bd41c5b49591cbed4 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 8 Aug 2019 00:48:58 -0500
+Subject: [PATCH 3560/4256] drm/amdgpu/powerplay/vega10: enable mclk switching
+ if monitors are synced
+
+If DC has synced the displays, we can enable mclk switching to
+save power.
+
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+index 3ac4745708cf..ccceaba5914a 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+@@ -3219,7 +3219,8 @@ static int vega10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
+ if (hwmgr->display_config->num_display == 0)
+ disable_mclk_switching = false;
+ else
+- disable_mclk_switching = (hwmgr->display_config->num_display > 1) ||
++ disable_mclk_switching = ((1 < hwmgr->display_config->num_display) &&
++ !hwmgr->display_config->multi_monitor_in_sync) ||
+ disable_mclk_switching_for_frame_lock ||
+ disable_mclk_switching_for_vr ||
+ force_mclk_high;
+--
+2.17.1
+