All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amd/pm/si: Don't schedule thermal work when queue isn't initialized
@ 2026-07-12 17:39 Timur Kristóf
  2026-07-12 17:39 ` [PATCH 2/3] drm/amd/pm/si: Fix AC/DC switch notification Timur Kristóf
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Timur Kristóf @ 2026-07-12 17:39 UTC (permalink / raw)
  To: amd-gfx, Alexander.Deucher, Natalie Vock, Mario Limonciello,
	Tvrtko Ursulin
  Cc: Timur Kristóf

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>
---
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c b/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
index 832953941266..6a54566d1a68 100644
--- a/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
+++ b/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
@@ -7692,7 +7692,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;
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-07-15  8:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12 17:39 [PATCH 1/3] drm/amd/pm/si: Don't schedule thermal work when queue isn't initialized Timur Kristóf
2026-07-12 17:39 ` [PATCH 2/3] drm/amd/pm/si: Fix AC/DC switch notification Timur Kristóf
2026-07-12 17:39 ` [PATCH 3/3] drm/amd/pm/smu7: " Timur Kristóf
2026-07-13 10:25 ` [PATCH 1/3] drm/amd/pm/si: Don't schedule thermal work when queue isn't initialized Tvrtko Ursulin
2026-07-13 11:16   ` Timur Kristóf
2026-07-13 14:39     ` Tvrtko Ursulin
2026-07-15  8:09       ` Timur Kristóf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.