drm/amd/pm: correct the thermal alert temperature limit settings
authorEvan Quan <evan.quan@amd.com>
Tue, 25 Aug 2020 02:35:11 +0000 (10:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:47 +0000 (11:29 +0200)
commitccc9838fed80f04e45a2c317e4a2dacdf2f1e3c2
treee65fe8dd46dc498131c21ddd4685e84949fc01d5
parent56ab34c44e851f9316dc3d3e7eb36bce65e09e90
drm/amd/pm: correct the thermal alert temperature limit settings

commit 28e628645333b7e581c4a7b04d958e4804ea10fe upstream.

Do the maths in celsius degree. This can fix the issues caused
by the changes below:

drm/amd/pm: correct Vega20 swctf limit setting
drm/amd/pm: correct Vega12 swctf limit setting
drm/amd/pm: correct Vega10 swctf limit setting

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_thermal.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c