drm/amdgpu/smu: move fan rpm query into the asic specific code
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 20:25:04 +0000 (15:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Jul 2019 19:57:39 +0000 (14:57 -0500)
commit95ccc155081be9cea95202d290fe06637f47c8de
tree1af2e7d7e30323947602e8929181b28f40ce316d
parentd52d6de2809a31b58a62f9ecba58bfd8fbf1bc63
drm/amdgpu/smu: move fan rpm query into the asic specific code

On vega20, there is an SMU message to query it.  On navi, it's fetched
from the metrics table.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c