drm/amd/powerplay: retrieve the enabled feature mask from cache
authorEvan Quan <evan.quan@amd.com>
Mon, 30 Dec 2019 09:08:29 +0000 (17:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:58:03 +0000 (11:58 -0500)
commit6a876844e489febae38b7a67e92a29ddc2eb0e6b
tree87e2e589cc1ae386f4c46cf4c3ebc287411edfde
parente42877b8ba876cf43a0f1261963d66ef11e3b779
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>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c