aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4029-drm-amd-pp-Fix-performance-drop-on-Fiji.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4029-drm-amd-pp-Fix-performance-drop-on-Fiji.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4029-drm-amd-pp-Fix-performance-drop-on-Fiji.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4029-drm-amd-pp-Fix-performance-drop-on-Fiji.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4029-drm-amd-pp-Fix-performance-drop-on-Fiji.patch
new file mode 100644
index 00000000..1d75a1bb
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4029-drm-amd-pp-Fix-performance-drop-on-Fiji.patch
@@ -0,0 +1,35 @@
+From 40c9ee8f604b8a294d612c9b8db5fffbad5c2bae Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Thu, 10 May 2018 19:51:09 +0800
+Subject: [PATCH 4029/4131] drm/amd/pp: Fix performance drop on Fiji
+
+The performance drop if the default TDP more than 256 Watt
+
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
+index 9f019d9..e374f3b 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c
+@@ -896,12 +896,10 @@ int smu7_set_power_limit(struct pp_hwmgr *hwmgr, uint32_t n)
+ {
+ struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend);
+
+- n = (n & 0xff) << 8;
+-
+ if (data->power_containment_features &
+ POWERCONTAINMENT_FEATURE_PkgPwrLimit)
+ return smum_send_msg_to_smc_with_parameter(hwmgr,
+- PPSMC_MSG_PkgPwrSetLimit, n);
++ PPSMC_MSG_PkgPwrSetLimit, n<<8);
+ return 0;
+ }
+
+--
+2.7.4
+