drm/amd/powerplay: set Arcturus default fclk as bootup value on dpm disabled

On fclk dpm disabled, the default dpm table will be setup with only one
level and clock frequency as bootup value.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Evan Quan 2019-08-16 13:52:26 +08:00 committed by Alex Deucher
parent 88810f907b
commit 69174eebc9

View File

@ -463,7 +463,8 @@ static int arcturus_set_default_dpm_table(struct smu_context *smu)
return ret;
}
} else {
single_dpm_table->count = 0;
single_dpm_table->count = 1;
single_dpm_table->dpm_levels[0].value = smu->smu_table.boot_values.fclk / 100;
}
arcturus_init_single_dpm_state(&(single_dpm_table->dpm_state));