projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e5008
)
drm/amd/powerplay: fix performance drop on Vega10
author
Eric Huang
<
[email protected]
>
Thu, 19 Oct 2017 18:55:18 +0000
(14:55 -0400)
committer
Alex Deucher
<
[email protected]
>
Thu, 26 Oct 2017 02:45:49 +0000
(22:45 -0400)
Setting package power PID to 1 fixes performance drop caused by
updated SMU FW, before DPM is enabled.
Signed-off-by: Eric Huang <
[email protected]
>
Acked-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 0519338e0e5e1d31a9c543863f470be51d0b1872..203ef10cafdc8d52df399408b677c0963cda5f86 100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@
-2879,6
+2879,15
@@
static int vega10_enable_dpm_tasks(struct pp_hwmgr *hwmgr)
"DPM is already running right , skipping re-enablement!",
return 0);
+ if ((data->smu_version == 0x001c2c00) ||
+ (data->smu_version == 0x001c2d00)) {
+ tmp_result = smum_send_msg_to_smc_with_parameter(hwmgr,
+ PPSMC_MSG_UpdatePkgPwrPidAlpha, 1);
+ PP_ASSERT_WITH_CODE(!tmp_result,
+ "Failed to set package power PID!",
+ return tmp_result);
+ }
+
tmp_result = vega10_construct_voltage_tables(hwmgr);
PP_ASSERT_WITH_CODE(!tmp_result,
"Failed to contruct voltage tables!",