freebsd-dev/sys/dev/vt/hw
Leandro Lupori 35f294270c Enable use of ofwcons for early debug
This change enables the use of OpenFirmware Console (ofwcons), even when VGA is
available, allowing early kernel messages to be seen, that is important in case
of crashes before VGA console initialization.

This is specially useful in virtualized environments, where the user/developer
doesn't have full control of the virtualization engine (e.g. OpenStack).

The old behavior is preserved by default and, in order to use ofwcons, a few
tunables that have been introduced need to be set:
- hw.ofwfb.disable=1     - disable OFW FrameBuffer device
- machdep.ofw.mtx_spin=1 - change PPC OFW mutex to SPIN type, to match kernel
                           console's mutex type
- debug.quiesce_ofw=0    - don't call OFW quiesce, needed to keep ofwcons I/O
                           working

More details can be found at differential revision D20640.

Reviewed by:	jhibbits
Differential Revision:	https://reviews.freebsd.org/D20640
2019-12-09 13:40:23 +00:00
..
efifb vt efifb: add suspend/resume calls 2019-05-21 18:42:36 +00:00
fb vt: use proper return value check with TUNABLE_INT_FETCH 2019-09-26 07:14:54 +00:00
ofwfb Enable use of ofwcons for early debug 2019-12-09 13:40:23 +00:00
vga Speed up vt(4) by keeping a record of the most recently drawn character and 2018-08-25 16:14:56 +00:00