From 4f1fad0e9dbd762497df7c79309697ed8b2b6cfc Mon Sep 17 00:00:00 2001 From: Evan Quan Date: Tue, 26 May 2020 16:50:55 +0800 Subject: drm/amd/powerplay: stop thermal IRQs on suspend Added missing thermal IRQs disablement on suspend. Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3