drm/amd/powerplay: stop thermal IRQs on suspend
authorEvan Quan <evan.quan@amd.com>
Tue, 26 May 2020 08:50:55 +0000 (16:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 May 2020 17:55:07 +0000 (13:55 -0400)
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>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index 69827be50ae19d1964fa27208e051d8f553f9b77..0dd94291ca36637eaf7b64c26eb0122f9b41f0ed 100644 (file)
@@ -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;