aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0573-drm-amdgpu-powerplay-fix-mclk-switch-limit-on-polari.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0573-drm-amdgpu-powerplay-fix-mclk-switch-limit-on-polari.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0573-drm-amdgpu-powerplay-fix-mclk-switch-limit-on-polari.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0573-drm-amdgpu-powerplay-fix-mclk-switch-limit-on-polari.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0573-drm-amdgpu-powerplay-fix-mclk-switch-limit-on-polari.patch
new file mode 100644
index 00000000..4eb28f60
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0573-drm-amdgpu-powerplay-fix-mclk-switch-limit-on-polari.patch
@@ -0,0 +1,34 @@
+From 66e096e51a9c49e99b41199b49d9ef3dbdf344e6 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Thu, 29 Nov 2018 19:20:28 -0500
+Subject: [PATCH 0573/2940] drm/amdgpu/powerplay: fix mclk switch limit on
+ polaris
+
+Update switch limit on newer polaris variants. This may fix
+flickering with high refresh rates with mclk switching enabled.
+
+Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+index 6c99cbf51c08..32344869a3fd 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+@@ -2859,7 +2859,10 @@ static int smu7_vblank_too_short(struct pp_hwmgr *hwmgr,
+ case CHIP_POLARIS10:
+ case CHIP_POLARIS11:
+ case CHIP_POLARIS12:
+- switch_limit_us = data->is_memory_gddr5 ? 190 : 150;
++ if (hwmgr->is_kicker)
++ switch_limit_us = data->is_memory_gddr5 ? 450 : 150;
++ else
++ switch_limit_us = data->is_memory_gddr5 ? 190 : 150;
+ break;
+ case CHIP_VEGAM:
+ switch_limit_us = 30;
+--
+2.17.1
+