aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Huang <JinHuiEric.Huang@amd.com>2017-10-19 14:55:18 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-25 22:45:49 -0400
commitb87079ec7b4d38efee015367315958ce5495ba93 (patch)
tree7e46b04970c9ffc4697a943462f616e2421f31a2
parent75e500865fca102e4663cff2f02d67a62625ceb9 (diff)
drm/amd/powerplay: fix performance drop on Vega10
Setting package power PID to 1 fixes performance drop caused by updated SMU FW, before DPM is enabled. Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 0519338e0e5e..203ef10cafdc 100644
--- 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)
2879 "DPM is already running right , skipping re-enablement!", 2879 "DPM is already running right , skipping re-enablement!",
2880 return 0); 2880 return 0);
2881 2881
2882 if ((data->smu_version == 0x001c2c00) ||
2883 (data->smu_version == 0x001c2d00)) {
2884 tmp_result = smum_send_msg_to_smc_with_parameter(hwmgr,
2885 PPSMC_MSG_UpdatePkgPwrPidAlpha, 1);
2886 PP_ASSERT_WITH_CODE(!tmp_result,
2887 "Failed to set package power PID!",
2888 return tmp_result);
2889 }
2890
2882 tmp_result = vega10_construct_voltage_tables(hwmgr); 2891 tmp_result = vega10_construct_voltage_tables(hwmgr);
2883 PP_ASSERT_WITH_CODE(!tmp_result, 2892 PP_ASSERT_WITH_CODE(!tmp_result,
2884 "Failed to contruct voltage tables!", 2893 "Failed to contruct voltage tables!",