powerpc/fadump: process architected register state data provided by firmware
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Wed, 11 Sep 2019 14:54:50 +0000 (20:24 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:44 +0000 (00:04 +1000)
commit5000a17afbd56b4e58b7f72ac77eabb92c418412
tree1d65baf7568daaaa4dbd266a4e1a2959bc7d707a
parent579ca1a27675485a99da50cd7fedc14232f817c3
powerpc/fadump: process architected register state data provided by firmware

Firmware provides architected register state data at the time of crash.
Process this data and build CPU notes to append to ELF core. In case
this data is missing or in unsupported format, at least append crashing
CPU's register data, to have something to work with in the vmcore file.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/156821367702.5656.5546683836236508389.stgit@hbathini.in.ibm.com
arch/powerpc/include/asm/fadump-internal.h
arch/powerpc/platforms/powernv/opal-fadump.c
arch/powerpc/platforms/powernv/opal-fadump.h