]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm/si: Don't schedule thermal work when queue isn't initialized
authorTimur Kristóf <timur.kristof@gmail.com>
Sun, 12 Jul 2026 17:39:26 +0000 (19:39 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Jul 2026 21:40:09 +0000 (17:40 -0400)
When DPM is turned off with the amdgpu.dpm=0 module parameter,
the thermal work queue isn't initialized so we shouldn't
schedule any work on it.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit bd018d36171a695952c6d391471c279c9e05c8b2)

drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c

index 8079da7c53350e95cc288e61708d8ab0edc6cbca..9d837d23d3a784812fc64924b2660c4ed8b69e86 100644 (file)
@@ -7689,7 +7689,7 @@ static int si_dpm_process_interrupt(struct amdgpu_device *adev,
                break;
        }
 
-       if (queue_thermal)
+       if (queue_thermal && amdgpu_dpm)
                schedule_work(&adev->pm.dpm.thermal.work);
 
        return 0;