Commit d3689336 authored by Kevin Wang's avatar Kevin Wang Committed by Alex Deucher

drm/amd/powerplay: fix smu clock type change miss error

in the smu module, use the smu_xxxclk type to identify the CLK type
use SMU_SCLK, SMU_MCLK to replace PP_SCLK, PP_MCLK.
Signed-off-by: default avatarKevin Wang <kevin1.wang@amd.com>
Reviewed-by: default avatarFeifei Xu <Feifei.Xu@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 42989359
...@@ -1385,8 +1385,8 @@ int smu_adjust_power_state_dynamic(struct smu_context *smu, ...@@ -1385,8 +1385,8 @@ int smu_adjust_power_state_dynamic(struct smu_context *smu,
&soc_mask); &soc_mask);
if (ret) if (ret)
return ret; return ret;
smu_force_clk_levels(smu, PP_SCLK, 1 << sclk_mask); smu_force_clk_levels(smu, SMU_SCLK, 1 << sclk_mask);
smu_force_clk_levels(smu, PP_MCLK, 1 << mclk_mask); smu_force_clk_levels(smu, SMU_MCLK, 1 << mclk_mask);
break; break;
case AMD_DPM_FORCED_LEVEL_MANUAL: case AMD_DPM_FORCED_LEVEL_MANUAL:
......
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