powerpc/fadump: register kernel metadata address with opal
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 11 Sep 2019 14:50:57 +0000 (20:20 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:43 +0000 (00:04 +1000)
commit742a265accd3e3afcc8e7b17f409c93c1de8be85
tree134a9dce27087f15d67dd637a7cb0175709ca457
parent6abec12c65e8870d8cafe154a86240fe0bcdd4f7
powerpc/fadump: register kernel metadata address with opal

OPAL allows registering address with it in the first kernel and
retrieving it after MPIPL. Setup kernel metadata and register its
address with OPAL to use it for processing the crash dump.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/156821345011.5656.13567765019032928471.stgit@hbathini.in.ibm.com
arch/powerpc/include/asm/fadump-internal.h
arch/powerpc/kernel/fadump.c
arch/powerpc/platforms/powernv/opal-fadump.c
arch/powerpc/platforms/powernv/opal-fadump.h [new file with mode: 0644]