drm/amd/pm: correct the fan speed retrieving in PWM for some SMU13 asics

commit e73fc71e8f upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Evan Quan 2022-12-16 17:04:24 +08:00 • committed by Greg Kroah-Hartman
commit 54b6a040f3
2 changed files with 28 additions and 6 deletions