Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] drm/xe: Unplug the drm device on probe failure
@ 2026-11-26 10:04 Raag Jadav
  2026-11-26 13:30 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Raag Jadav @ 2026-11-26 10:04 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, thomas.hellstrom, jani.nikula, rodrigo.vivi,
	riana.tauro, Raag Jadav

Currently, xe_device_probe() failure unregisters the drm device
but doesn't unplug it. This is problematic for code paths that rely
on drm_dev_enter/exit() until the respective cleanup actions are
triggered on probe failure.

Explicitly unplug the drm device on probe failure and fix this.

Fixes: 60bfb8baf8f0 ("drm/xe: Unregister drm device on probe error")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
 drivers/gpu/drm/xe/xe_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 36693df65594..fccb0eff54ee 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1132,7 +1132,7 @@ int xe_device_probe(struct xe_device *xe)
 	xe_vsec_remove(xe);
 err_unregister_display:
 	xe_display_unregister(xe);
-	drm_dev_unregister(&xe->drm);
+	drm_dev_unplug(&xe->drm);
 
 	return err;
 }
-- 
2.43.0


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

end of thread, other threads:[~2026-11-30 12:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 10:04 [PATCH v1] drm/xe: Unplug the drm device on probe failure Raag Jadav
2026-11-26 13:30 ` ✓ CI.KUnit: success for " Patchwork
2026-11-26 14:07 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-26 19:59 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-30 12:30   ` Raag Jadav
2026-11-30 11:22 ` [PATCH v1] " Mallesh, Koujalagi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox