mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 09:49:58 -04:00
drm/amd/pm: optimize AC timing programming
Programming AC Timing Parameters is only dependent on MCLK. No need to nest loop for each SCLK DPM level. Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1465,7 +1465,7 @@ static int polaris10_program_memory_timing_parameters(struct pp_hwmgr *hwmgr)
|
||||
hw_data->dpm_table.sclk_table.dpm_levels[i].value,
|
||||
hw_data->dpm_table.mclk_table.dpm_levels[j].value,
|
||||
&arb_regs.entries[i][j]);
|
||||
if (result == 0)
|
||||
if (result == 0 && i == 0)
|
||||
result = atomctrl_set_ac_timing_ai(hwmgr, hw_data->dpm_table.mclk_table.dpm_levels[j].value, j);
|
||||
if (result != 0)
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user