drm/amd/pm: correct the fan speed retrieving in PWM for some SMU13 asics
authorEvan Quan <evan.quan@amd.com>
Fri, 16 Dec 2022 09:04:24 +0000 (17:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Dec 2022 18:22:56 +0000 (13:22 -0500)
commite73fc71e8f015d61f3adca7659cb209fd5117aa5
treed529a1def97c5cb5c0b0cdf25dc37b06624faacc
parent272b981416f8be0180c4d8066f90635fa7c1c501
drm/amd/pm: correct the fan speed retrieving in PWM for some SMU13 asics

For SMU 13.0.0 and 13.0.7, the output from PMFW is in percent. Driver
need to convert that into correct PMW(255) based.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.0, 6.1
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c