diff options
author | Evan Quan <evan.quan@amd.com> | 2020-05-26 11:50:55 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-05-29 20:55:07 +0300 |
commit | 4f1fad0e9dbd762497df7c79309697ed8b2b6cfc (patch) | |
tree | 0db4a70921c35b3e769f1124f144c1110c14cd0d | |
parent | b265bdbd9f2811c2a674ea9d1161de821923897c (diff) | |
download | linux-4f1fad0e9dbd762497df7c79309697ed8b2b6cfc.tar.xz |
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>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 6 |
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; |