drm/amdgpu/swsmu: handle manual fan readback on SMU11
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Aug 2020 04:12:38 +0000 (00:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2020 18:46:55 +0000 (14:46 -0400)
commitf6eb433954bf32ab582208d9b58ec397f7814e5a
tree01a0c0a0b6523b7ff0aa5866de0c5099242d5d20
parent9a7fd01384c3fdb16e303e2b13810d3f72835d2a
drm/amdgpu/swsmu: handle manual fan readback on SMU11

Need to read back from registers for manual mode rather than
using the metrics table.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1164
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c