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/pm: correct SMC sclk/mclk boot level setup
Correct Polaris smc boot level setup. 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:
parent
8f97e221d6
commit
9182fefcb8
1 changed files with 8 additions and 0 deletions
|
@ -1587,10 +1587,18 @@ static int polaris10_populate_smc_boot_level(struct pp_hwmgr *hwmgr,
|
|||
result = phm_find_boot_level(&(data->dpm_table.sclk_table),
|
||||
data->vbios_boot_state.sclk_bootup_value,
|
||||
(uint32_t *)&(table->GraphicsBootLevel));
|
||||
if (result) {
|
||||
table->GraphicsBootLevel = 0;
|
||||
result = 0;
|
||||
}
|
||||
|
||||
result = phm_find_boot_level(&(data->dpm_table.mclk_table),
|
||||
data->vbios_boot_state.mclk_bootup_value,
|
||||
(uint32_t *)&(table->MemoryBootLevel));
|
||||
if (result) {
|
||||
table->MemoryBootLevel = 0;
|
||||
result = 0;
|
||||
}
|
||||
|
||||
table->BootVddc = data->vbios_boot_state.vddc_bootup_value *
|
||||
VOLTAGE_SCALE;
|
||||
|
|
Loading…
Add table
Reference in a new issue