summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2019-12-30 12:08:29 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-01-07 19:58:03 +0300
commit6a876844e489febae38b7a67e92a29ddc2eb0e6b (patch)
tree87e2e589cc1ae386f4c46cf4c3ebc287411edfde /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
parente42877b8ba876cf43a0f1261963d66ef11e3b779 (diff)
downloadlinux-6a876844e489febae38b7a67e92a29ddc2eb0e6b.tar.xz
drm/amd/powerplay: retrieve the enabled feature mask from cache
This is why those feature mask members designed for. And this can reduce the SMU workload. Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 826944196911..8cfe5f09308f 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -1319,7 +1319,7 @@ failed:
static int smu_stop_dpms(struct smu_context *smu)
{
- return smu_send_smc_msg(smu, SMU_MSG_DisableAllSmuFeatures);
+ return smu_system_features_control(smu, false);
}
static int smu_hw_fini(void *handle)