aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3583-drm-amd-powerplay-vega10-allow-mclk-switching-with-n.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3583-drm-amd-powerplay-vega10-allow-mclk-switching-with-n.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3583-drm-amd-powerplay-vega10-allow-mclk-switching-with-n.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3583-drm-amd-powerplay-vega10-allow-mclk-switching-with-n.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3583-drm-amd-powerplay-vega10-allow-mclk-switching-with-n.patch
new file mode 100644
index 00000000..4cbf4de0
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3583-drm-amd-powerplay-vega10-allow-mclk-switching-with-n.patch
@@ -0,0 +1,35 @@
+From 4a1ef651bdf4ad4afe8230306d8a33f5b0347eeb Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Tue, 13 Feb 2018 14:25:11 -0500
+Subject: [PATCH 3583/4131] drm/amd/powerplay/vega10: allow mclk switching with
+ no displays
+
+If there are no displays attached, there is no reason to disable
+mclk switching.
+
+Fixes mclks getting set to high when there are no displays attached.
+
+Reviewed-by: Eric Huang <JinhuiEric.Huang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+Cc: stable@vger.kernel.org
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+index 1d442a4..46e98cf 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+@@ -3176,8 +3176,7 @@ static int vega10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
+ else
+ disable_mclk_switching = (info.display_count > 1) ||
+ disable_mclk_switching_for_frame_lock ||
+- disable_mclk_switching_for_vr ||
+- force_mclk_high;
++ disable_mclk_switching_for_vr || force_mclk_high;
+
+ sclk = vega10_ps->performance_levels[0].gfx_clock;
+ mclk = vega10_ps->performance_levels[0].mem_clock;
+--
+2.7.4
+