All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] DRM device registration fixes
@ 2026-07-16 12:00 Krzysztof Niemiec
  2026-07-16 12:00 ` [PATCH v2 1/2] drm/i915: Remove drm_dev_unregister() from the error path during i915_driver_register() Krzysztof Niemiec
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Krzysztof Niemiec @ 2026-07-16 12:00 UTC (permalink / raw)
  To: dri-devel, intel-gfx
  Cc: Krzysztof Karas, Simona Vetter, Maarten Lankhorst, David Airlie,
	Sebastian Brzezinka, Janusz Krzysztofik, Andi Shyti,
	Krzysztof Niemiec

This series contains patches pertaining the drm_dev_register() and
drm_dev_unregister() functions. Turns out drm_dev_register() doesn't
properly unwind its effects in the error path, causing confusion and
bugs.

Additionally, a related patch for i915 is bundled, as i915 mistakenly
calls drm_dev_unregister() in the error path triggered by failing
drm_dev_register(), which on one hand introduced a WARN_ON() in
drm_client_sysrq_unregister(), caused by calling it without a previous
_register() (as it was skipped in drm_dev_register()); but on the other
hand silenced yet another WARN_ON() later on in the error path in
drm_mode_config_cleanup(). With the other patch, the driver can just
handle the error from drm_dev_register() cleanly without calling
drm_dev_unregister(). This is explained in detail in both the patches.

Krzysztof Karas (1):
  drm: Unwind drm device registration upon error

Krzysztof Niemiec (1):
  drm/i915: Remove drm_dev_unregister() from the error path during
    i915_driver_register()

 drivers/gpu/drm/drm_drv.c          | 2 ++
 drivers/gpu/drm/i915/i915_driver.c | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-07-16 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16 12:00 [PATCH v2 0/2] DRM device registration fixes Krzysztof Niemiec
2026-07-16 12:00 ` [PATCH v2 1/2] drm/i915: Remove drm_dev_unregister() from the error path during i915_driver_register() Krzysztof Niemiec
2026-07-16 12:00 ` [PATCH v2 2/2] drm: Unwind drm device registration upon error Krzysztof Niemiec
2026-07-16 12:47 ` ✗ i915.CI.BAT: failure for DRM device registration fixes Patchwork
2026-07-16 13:07 ` [PATCH v2 0/2] " Sebastian Brzezinka

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.