drm: don't check modeset locks in panic handler
authorDaniel Vetter <[email protected]>
Thu, 2 May 2013 07:43:05 +0000 (09:43 +0200)
committerDaniel Vetter <[email protected]>
Thu, 2 May 2013 20:44:16 +0000 (22:44 +0200)
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 <[email protected]>
Cc: Borislav Petkov <[email protected]>
References: http://lkml.kernel.org/r/20130502000206[email protected]
Cc: [email protected]
Reported-and-tested-by: Borislav Petkov <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/drm_crtc.c

index 792c3e3795cae819caedaf12121052b47ad34a89..3be0802c6797d9ceb761a8696a194e3562f7bf33 100644 (file)
@@ -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)
                WARN_ON(!mutex_is_locked(&crtc->mutex));