Daniel Vetter c3c296b069 fbdev: Debug knob to register without holding console_lock
When the usual fbcon legacy options are enabled we have
->register_framebuffer
  ->fb notifier chain calls into fbcon
    ->fbcon sets up console on new fbi
      ->fbi->set_par
        ->drm_fb_helper_set_par exercises full kms api

And because of locking inversion hilarity all of register_framebuffer
is done with the console lock held. Which means that the first time on
driver load we exercise _all_ the kms code (all probe paths and
modeset paths for everything connected) is under the console lock.
That means if anything goes belly-up in that big pile of code nothing
ever reaches logfiles (and the machine is dead).

Usual tactic to debug that is to temporarily remove those console_lock
calls to be able to capture backtraces. I'm fed up writing this patch
and recompiling kernels. Hence this patch here to add an unsafe,
kernel-taining option to do this at runtime.

Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2015-12-15 15:41:24 +02:00
..
2015-10-08 12:24:12 +03:00
2014-12-14 16:10:09 -08:00
2014-07-01 13:32:30 +03:00
2015-11-10 10:00:09 -08:00
2015-11-10 10:00:09 -08:00
2015-06-23 16:23:30 -07:00
2015-10-08 12:19:39 +03:00
2014-12-14 16:10:09 -08:00
2015-02-11 17:06:05 -08:00
2015-03-02 13:17:24 +02:00
2015-11-10 10:00:09 -08:00
2015-08-20 12:03:53 +03:00