drm/amd/pm: fix the high voltage and temperature issue
authorKenneth Feng <kenneth.feng@amd.com>
Wed, 25 Oct 2023 03:20:38 +0000 (11:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Oct 2023 20:40:16 +0000 (16:40 -0400)
commit5f38ac54e60562323ea4abb1bfb37d043ee23357
tree327177d998f90efbd3f8e3ad77cee4a8c4e8e9af
parenta17f574ab4a2d3dcbd9a49e3c1710fb0cbe8a901
drm/amd/pm: fix the high voltage and temperature issue

fix the high voltage and temperature issue after the driver is unloaded on smu 13.0.0,
smu 13.0.7 and smu 13.0.10
v2 - fix the code format and make sure it is used on the unload case only.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
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