From: Evan Quan Date: Fri, 25 Sep 2020 06:20:56 +0000 (+0800) Subject: drm/amd/pm: correct smc voltage controller setup X-Git-Tag: baikal/mips/sdk5.9~12066^2~12^2~141 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=2a09cc9ea419439ca175ff8ca4d5d94c37de91f9;p=kernel.git drm/amd/pm: correct smc voltage controller setup Correct Polaris10 smc voltage controller setup. Signed-off-by: Evan Quan Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c index 122b15dc76e17..7ec83a826816e 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c @@ -237,7 +237,8 @@ static int smu7_get_current_pcie_lane_number(struct pp_hwmgr *hwmgr) */ static int smu7_enable_smc_voltage_controller(struct pp_hwmgr *hwmgr) { - if (hwmgr->chip_id == CHIP_VEGAM) { + if (hwmgr->chip_id >= CHIP_POLARIS10 && + hwmgr->chip_id <= CHIP_VEGAM) { PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, PWR_SVI2_PLANE1_LOAD, PSI1, 0); PHM_WRITE_VFPF_INDIRECT_FIELD(hwmgr->device,