OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3121d3
)
drm/amd/powerplay: check gfxclk dpm enablement before proceeding
author
Evan Quan
<evan.quan@amd.com>
Fri, 14 Jun 2019 09:04:36 +0000
(17:04 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:26:09 +0000
(13:26 -0500)
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>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index
9559127
..
a0fb363
100644
(file)
--- 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;