freebsd-dev/sys/powerpc/powernv
Alfredo Dal'Ava Junior b8bc6b7954 opal_console: fix serial console output corruption on powerpc64
Adds OPAL_CONSOLE_WRITE error handling and implements a call to
OPAL_CONSOLE_WRITE_BUFFER_SPACE to verify if there's enough space
before writing to console.

This fixes serial port output getting corrupted on fast writes, like
on "dmesg" output.

Tested on Raptor Blackbird running powerpc64 BE kernel

Reviewed by:	luporl
Sponsored by:	Eldorado Reserach Institute (eldorado.org.br)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D29063
2021-04-16 20:10:09 -03:00
..
opal_async.c
opal_console.c opal_console: fix serial console output corruption on powerpc64 2021-04-16 20:10:09 -03:00
opal_dbg.c
opal_dev.c [POWERPC64LE] fix sysctl dev.opal_sensor.* on little-endian kernel 2020-12-30 22:00:28 -03:00
opal_flash.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_hmi.c [PowerPC64LE] Endian fix for opal_hmi.c 2020-09-23 01:51:01 +00:00
opal_i2c.c
opal_i2cm.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_nvram.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
opal_pci.c [PowerPC64LE] Get XIVE up and running. 2020-09-23 01:49:37 +00:00
opal_sensor.c [POWERPC64LE] fix sysctl dev.opal_sensor.* on little-endian kernel 2020-12-30 22:00:28 -03:00
opal.c [PowerPC64LE] LE opal_call() implementation 2020-09-23 00:28:47 +00:00
opal.h opal_console: fix serial console output corruption on powerpc64 2021-04-16 20:10:09 -03:00
opalcall.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
platform_powernv.c powernv: Include NUMA locality information in the CPU topology 2021-04-01 10:25:57 -04:00
powernv_centaur.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powernv_xscom.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
xive.c [PowerPC64LE] Get XIVE up and running. 2020-09-23 01:49:37 +00:00