Commit c0bcc4ec authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher

drm/amd/powerplay: populate SMC ACPI minimum voltage using VBIOS boot SCLK and MCLK

Signed-off-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 649663cf
...@@ -1473,7 +1473,7 @@ static int polaris10_populate_smc_acpi_level(struct pp_hwmgr *hwmgr, ...@@ -1473,7 +1473,7 @@ static int polaris10_populate_smc_acpi_level(struct pp_hwmgr *hwmgr,
/* Get MinVoltage and Frequency from DPM0, /* Get MinVoltage and Frequency from DPM0,
* already converted to SMC_UL */ * already converted to SMC_UL */
sclk_frequency = data->dpm_table.sclk_table.dpm_levels[0].value; sclk_frequency = data->vbios_boot_state.sclk_bootup_value;
result = polaris10_get_dependency_volt_by_clk(hwmgr, result = polaris10_get_dependency_volt_by_clk(hwmgr,
table_info->vdd_dep_on_sclk, table_info->vdd_dep_on_sclk,
sclk_frequency, sclk_frequency,
...@@ -1509,8 +1509,7 @@ static int polaris10_populate_smc_acpi_level(struct pp_hwmgr *hwmgr, ...@@ -1509,8 +1509,7 @@ static int polaris10_populate_smc_acpi_level(struct pp_hwmgr *hwmgr,
/* Get MinVoltage and Frequency from DPM0, already converted to SMC_UL */ /* Get MinVoltage and Frequency from DPM0, already converted to SMC_UL */
table->MemoryACPILevel.MclkFrequency = table->MemoryACPILevel.MclkFrequency = data->vbios_boot_state.mclk_bootup_value;
data->dpm_table.mclk_table.dpm_levels[0].value;
result = polaris10_get_dependency_volt_by_clk(hwmgr, result = polaris10_get_dependency_volt_by_clk(hwmgr,
table_info->vdd_dep_on_mclk, table_info->vdd_dep_on_mclk,
table->MemoryACPILevel.MclkFrequency, table->MemoryACPILevel.MclkFrequency,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment