mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
75e500865f
commit
b87079ec7b
1 changed files with 9 additions and 0 deletions
|
@ -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!",
|
||||
|
|
Loading…
Add table
Reference in a new issue