freebsd-dev/sys/powerpc
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
..
aim powerpc64/pmap: micro-optimize some PVO-PTE logic 2019-12-08 04:17:04 +00:00
amigaone powerpc: Add AmigaOne platform, a subclass of MPC85xx 2019-10-16 00:38:50 +00:00
booke powerpc/pmap: NUMA-ize vm_page_array on powerpc 2019-12-07 03:34:03 +00:00
conf Set MALLOC_DEBUG_MAXZONES=1 in GENERIC-NODEBUG configurations. 2019-11-18 20:03:28 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt 2019-04-03 03:54:30 +00:00
include powerpc: Use builtins for fls/flsl 2019-12-08 04:36:42 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx Use a void * argument to callout handlers instead of timeout_t casts. 2019-12-05 18:47:29 +00:00
ofw Enable use of ofwcons for early debug 2019-12-09 13:40:23 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv [PPC64] Enable opal console use as a GDB DBGPORT 2019-12-09 13:09:32 +00:00
powerpc powerpc/pmap: NUMA-ize vm_page_array on powerpc 2019-12-07 03:34:03 +00:00
ps3 Convert to if_foreach_llmaddr() KPI. 2019-10-21 18:13:33 +00:00
pseries Enable use of ofwcons for early debug 2019-12-09 13:40:23 +00:00
psim Remove more needless <sys/tty.h> includes 2019-12-01 20:43:37 +00:00