drm/amd/pm: fix the wrong fan speed in fan1_input
authorKenneth Feng <kenneth.feng@amd.com>
Wed, 21 Oct 2020 06:03:08 +0000 (14:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Oct 2020 20:15:19 +0000 (16:15 -0400)
commit1eeb03c883ff802a24598363765b397f132e8894
tree94dc5369c0ce6681653004fd765f207054a8562b
parent4a3a1dc02fc3245aeeaa3742791e71fa2497b4a0
drm/amd/pm: fix the wrong fan speed in fan1_input

fix the wrong fan speed in fan1_input when the fan control mode is manual.
the fan speed value is not correct when we set manual mode to fan1_enalbe - 1.
since the fan speed in the metrics table always reflects the real fan speed,we
can fetch the fan speed for both auto and manual mode.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c