aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0091-drm-amd-powerplay-allow-slow-switch-only-if-NBPState.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0091-drm-amd-powerplay-allow-slow-switch-only-if-NBPState.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0091-drm-amd-powerplay-allow-slow-switch-only-if-NBPState.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0091-drm-amd-powerplay-allow-slow-switch-only-if-NBPState.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0091-drm-amd-powerplay-allow-slow-switch-only-if-NBPState.patch
new file mode 100644
index 00000000..eca50696
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0091-drm-amd-powerplay-allow-slow-switch-only-if-NBPState.patch
@@ -0,0 +1,32 @@
+From 7efa60daff4c74c98adb0e3789fe61d5d94802bc Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Fri, 20 Jul 2018 10:56:21 +0800
+Subject: [PATCH 0091/2940] drm/amd/powerplay: allow slow switch only if
+ NBPState enabled
+
+Otherwise there may be potential SMU performance issues.
+
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
+index c5bdb2b4b921..1170f233d9e2 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
+@@ -1896,7 +1896,8 @@ static int vega20_notify_smc_display_config_after_ps_adjustment(
+ int ret = 0;
+
+ if ((hwmgr->display_config->num_display > 1) &&
+- !hwmgr->display_config->multi_monitor_in_sync)
++ !hwmgr->display_config->multi_monitor_in_sync &&
++ !hwmgr->display_config->nb_pstate_switch_disable)
+ vega20_notify_smc_display_change(hwmgr, false);
+ else
+ vega20_notify_smc_display_change(hwmgr, true);
+--
+2.17.1
+