diff options
author | Evan Quan <evan.quan@amd.com> | 2019-06-14 17:04:36 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-25 13:26:09 -0500 |
commit | ac1092b341148c6fce8d0fe2ce8fa6764027bd02 (patch) | |
tree | 320d1bc62279c04e7060fa5e24092e874e108b47 /drivers | |
parent | f3121d3dbb5278028d182a87d5396c0d005a213a (diff) |
drm/amd/powerplay: check gfxclk dpm enablement before proceeding
Support gfxclk dpm disablement.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 9559127dd0ec..a0fb36360bea 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -143,6 +143,7 @@ int smu_get_dpm_freq_range(struct smu_context *smu, enum smu_clk_type clk_type, } break; case SMU_GFXCLK: + case SMU_SCLK: if (!smu_feature_is_enabled(smu, SMU_FEATURE_DPM_GFXCLK_BIT)) { pr_warn("gfxclk dpm is not enabled\n"); return 0; |