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 17:47:36 +0000 (12:47 -0500)
commit0b93c543418177561121e57017b60cb9bb74414f
tree2f6874c222da42d0be6df161af039a99d7423008
parent82986fd631fa04bcedaefe11a6b3767601cbe84f
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>
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