i915: switch back to fbcon on panic
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>
Wed, 18 Jun 2008 20:57:39 +0000 (13:57 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 18 Jun 2008 20:57:39 +0000 (13:57 -0700)
commit7010d500072977f63a0bac08f2141d69dbd19595
tree60db58e7d12d0db75b19b730d670eee51ed7f0ee
parentc987e76d953b6aecbfb69058fc4c387aa3fb33c9
i915: switch back to fbcon on panic

Normally when X is running, panic messages will be invisible and the machine
will just appear to hard hang.  This patch adds support for switching back to
the fbcon framebuffer on panic (through the use of a panic notifier
registration) so we can see what happened.

Note that in order to be really useful, X will have to run its VT in something
other than KD_GRAPHICS mode.  Also, not all kernel errors result in panics,
some go through BUG() which may trigger another type of event, not resulting in
a switch.
linux-core/intel_fb.c