powerpc/powernv: Add ultravisor message log interface
authorClaudio Carvalho <cclaudio@linux.ibm.com>
Wed, 28 Aug 2019 13:05:21 +0000 (23:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Aug 2019 23:40:16 +0000 (09:40 +1000)
commit68e0aa8ec5cedec48dd5b11df84afc956c8f85be
treeccd4c44f35735eb9bc9510fcde4f99cde4c2848f
parentdea45ea7775240047f70e2631e468f6b65d09493
powerpc/powernv: Add ultravisor message log interface

The ultravisor (UV) provides an in-memory console which follows the
OPAL in-memory console structure.

This patch extends the OPAL msglog code to initialize the UV memory
console and provide the "/sys/firmware/ultravisor/msglog" interface
for userspace to view the UV message log.

Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Claudio Carvalho <cclaudio@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190828130521.26764-2-mpe@ellerman.id.au
arch/powerpc/platforms/powernv/powernv.h
arch/powerpc/platforms/powernv/ultravisor.c