aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/5145-drm-amd-powerplay-correct-the-argument-for-PPSMC_MSG.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5145-drm-amd-powerplay-correct-the-argument-for-PPSMC_MSG.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/5145-drm-amd-powerplay-correct-the-argument-for-PPSMC_MSG.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5145-drm-amd-powerplay-correct-the-argument-for-PPSMC_MSG.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5145-drm-amd-powerplay-correct-the-argument-for-PPSMC_MSG.patch
new file mode 100644
index 00000000..9bef8516
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5145-drm-amd-powerplay-correct-the-argument-for-PPSMC_MSG.patch
@@ -0,0 +1,32 @@
+From 35f226e8cbcf159e5830d72d8fb0f2abad47a76f Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Fri, 20 Jul 2018 10:53:31 +0800
+Subject: [PATCH 5145/5725] drm/amd/powerplay: correct the argument for
+ PPSMC_MSG_SetUclkFastSwitch
+
+The argument was set wrongly. Fast/slow switch was asked when there is
+actually a slow/fast switch needed.
+
+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 | 2 +-
+ 1 file changed, 1 insertion(+), 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 c4302bc..c5bdb2b 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
+@@ -1839,7 +1839,7 @@ static int vega20_notify_smc_display_change(struct pp_hwmgr *hwmgr,
+ if (data->smu_features[GNLD_DPM_UCLK].enabled)
+ return smum_send_msg_to_smc_with_parameter(hwmgr,
+ PPSMC_MSG_SetUclkFastSwitch,
+- has_disp ? 0 : 1);
++ has_disp ? 1 : 0);
+
+ return 0;
+ }
+--
+2.7.4
+