[PATCH] drm: don't check modeset locks in panic handler

Daniel Vetter daniel.vetter at ffwll.ch
Thu May 2 00:43:05 PDT 2013

Since we know that locking is broken in that case and it's more
important to not flood the dmesg with random gunk.

Cc: Dave Airlie <airlied at gmail.com>
Cc: Borislav Petkov <bp at alien8.de>
References: https://groups.google.com/forum/?fromgroups=#!topic/linux.kernel/QFzFxSUeV4I
Cc: stable at vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
 drivers/gpu/drm/drm_crtc.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 792c3e3..3be0802 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -78,6 +78,10 @@ void drm_warn_on_modeset_not_all_locked(struct drm_device *dev)
 	struct drm_crtc *crtc;
+	/* Locking is currently fubar in the panic handler. */
+	if (oops_in_progress)
+		return;
 	list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)

More information about the dri-devel mailing list