summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2020-05-26 16:50:55 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-05-29 13:55:07 -0400
commit4f1fad0e9dbd762497df7c79309697ed8b2b6cfc (patch)
tree0db4a70921c35b3e769f1124f144c1110c14cd0d /drivers/gpu/drm/amd/powerplay
parentb265bdbd9f2811c2a674ea9d1161de821923897c (diff)
drm/amd/powerplay: stop thermal IRQs on suspend
Added missing thermal IRQs disablement on suspend. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay')
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 69827be50ae1..0dd94291ca36 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -1533,6 +1533,12 @@ static int smu_suspend(void *handle)
smu_i2c_eeprom_fini(smu, &adev->pm.smu_i2c);
+ ret = smu_stop_thermal_control(smu);
+ if (ret) {
+ pr_warn("Fail to stop thermal control!\n");
+ return ret;
+ }
+
ret = smu_disable_dpm(smu);
if (ret)
return ret;