]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9811264a24445e899936e38ed68a8a5be4f75698
tree94dc5369c0ce6681653004fd765f207054a8562b
parent5f789e98d166cc1509ac0ad3f5f97a1642b26da9
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