From: Evan Quan Date: Fri, 25 Sep 2020 06:28:47 +0000 (+0800) Subject: drm/amd/pm: correct clk/voltage dependence setup X-Git-Tag: baikal/mips/sdk5.9~12066^2~12^2~138 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=0614f6b93fbab866c93327ceebc9dcb3db51743e;p=kernel.git drm/amd/pm: correct clk/voltage dependence setup Correct Polaris10 clk/voltage dependence setup. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c index 41df6e7813eaa..47230d8fb592c 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c @@ -401,6 +401,8 @@ static int polaris10_get_dependency_volt_by_clk(struct pp_hwmgr *hwmgr, *voltage |= (data->vbios_boot_state.vddci_bootup_value * VOLTAGE_SCALE) << VDDCI_SHIFT; else if (dep_table->entries[i-1].vddci) { + *voltage |= (dep_table->entries[i - 1].vddci * VOLTAGE_SCALE) << VDDC_SHIFT; + } else { vddci = phm_find_closest_vddci(&(data->vddci_voltage_table), (dep_table->entries[i].vddc - (uint16_t)VDDC_VDDCI_DELTA));