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

Details

Provenance
alfredoAuthored on Apr 16 2021, 10:51 PM
Reviewer
luporl
Differential Revision
D29063: [POWERPC] opal_console: fix serial console output corruption
Parents
rG3e347834200b: pms(4): Limit maximum I/O size to 256KB instead of 1MB.
Branches
Unknown
Tags
Unknown