powerpc/powernv: Interface to register/unregister opal dump region
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Sat, 9 Aug 2014 05:45:45 +0000 (11:15 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Aug 2014 05:13:45 +0000 (15:13 +1000)
commitb09c2ec4082c63584491f35df2cb530ee8ca312d
tree05200fb46b8c6839065a64e148a9b01813f5de54
parent14c4000a88afaaa2d0877cc86d42a74fde0f35e0
powerpc/powernv: Interface to register/unregister opal dump region

PowerNV platform is capable of capturing host memory region when system
crashes (because of host/firmware). We have new OPAL API to register/
unregister memory region to be captured when system crashes.

This patch adds support for new API. Also during boot time we register
kernel log buffer and unregister before doing kexec.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/powernv/opal.c