]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/boot: Add OPAL console to epapr wrappers
authorOliver O'Halloran <oohall@gmail.com>
Thu, 30 Jun 2016 14:34:37 +0000 (00:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Jul 2016 13:58:54 +0000 (23:58 +1000)
commit672f18cb46502ae32b6d1a58f5b420b975d8aac8
treea7a4cd26f2a0c5e560eb228864bd75c8784afb2f
parent14087536ed5c1c8252cac20de52686f16f783f5d
powerpc/boot: Add OPAL console to epapr wrappers

This patch adds an OPAL console backend to the powerpc boot wrapper so
that decompression failures inside the wrapper can be reported to the
user. This is important since it typically indicates data corruption in
the firmware and other nasty things.

Currently this only works when building a little endian kernel. When
compiling a 64 bit BE kernel the wrapper is always build 32 bit to be
compatible with some 32 bit firmwares. BE support will be added at a
later date. Another limitation of this is that only the "raw" type of
OPAL console is supported, however machines that provide a hvsi console
also provide a raw console so this is not an issue in practice.

Actually-written-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[mpe: Move #ifdef __powerpc64__ to avoid warnings on 32-bit]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/Makefile
arch/powerpc/boot/opal-calls.S [new file with mode: 0644]
arch/powerpc/boot/opal.c [new file with mode: 0644]
arch/powerpc/boot/ops.h
arch/powerpc/boot/ppc_asm.h
arch/powerpc/boot/serial.c
arch/powerpc/boot/types.h