HomeFreeBSD

opal_console: fix serial console output corruption on powerpc64

Description

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

(cherry picked from commit b8bc6b7954e27edb449503004ef52b8b97585545)

Details

Provenance
alfredoAuthored on Apr 16 2021, 10:51 PM
Reviewer
luporl
Differential Revision
D29063: [POWERPC] opal_console: fix serial console output corruption
Parents
rG8d5898458818: powerpc: implement bus_map_resource and bus_unmap_resource DEVMETHODs
Branches
Unknown
Tags
Unknown