]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enable use of ofwcons for early debug
authorluporl <luporl@FreeBSD.org>
Mon, 9 Dec 2019 13:40:23 +0000 (13:40 +0000)
committerluporl <luporl@FreeBSD.org>
Mon, 9 Dec 2019 13:40:23 +0000 (13:40 +0000)
commit9d7e821a7f16c5eaeb166f4ad4f816f6ef0f5fe0
treea44ab26ffbca43cec83f81eab42b83b84cc80c36
parent2cc0f06ddb3432ed21df85e27c1e9e9c8ea571d6
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
sys/dev/vt/hw/ofwfb/ofwfb.c
sys/powerpc/ofw/ofw_real.c
sys/powerpc/pseries/platform_chrp.c