drm/crtc-helper: skip locking checks in panicking path
authorSergei Antonov <saproj@gmail.com>
Sun, 11 May 2014 22:30:48 +0000 (00:30 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 2 Jun 2014 03:36:52 +0000 (13:36 +1000)
commitba6f582606655754d9dfbfc9dffe75dcf806f1dd
tree961f8ce74100a644269992fe82840ba798db6d37
parent3640da2faa952a2e9439a254c1ce76033ca0a6dc
drm/crtc-helper: skip locking checks in panicking path

Skip locking checks in drm_helper_*_in_use() if they are called in panicking
path. See similar code in drm_warn_on_modeset_not_all_locked().

After panic information has been output, these WARN_ONs go off outputing a lot
of lines and scrolling the panic information out of the screen. Here is a
partial call trace showing how execution reaches them:

? drm_helper_crtc_in_use()
? __drm_helper_disable_unused_functions()
? several *_set_config functions
? drm_fb_helper_restore_fbdev_mode()

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c