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 20:25:32 +0000 (15:25 -0500)
commit1bcff32679f60fe2387f63f22b8b35375052bcb0
tree00c9ed3ff07afa7214a6e091010fb4d67e93b1ba
parentb840e4d5fec6fe2019de36b10412b69df9c4d39a
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