]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/powernv: Add pstore support on powernv
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Thu, 5 Feb 2015 19:36:52 +0000 (01:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Mar 2015 03:06:10 +0000 (14:06 +1100)
commitf7618299b4ab425956099508cba7b3a39a056d87
tree946fa416958f910b14093732214e3c7515efed22
parentae011d2e48d2e6c2ae29fd8aab439caf2fbfb5a8
powerpc/powernv: Add pstore support on powernv

This patch extends pstore, a generic interface to platform dependent
persistent storage, support for powernv  platform to capture certain
useful information, during dying moments. Such support is already in
place for  pseries platform. This patch re-uses most of that code.

It is a common practice to compile kernels with both CONFIG_PPC_PSERIES=y
and CONFIG_PPC_POWERNV=y. The code in nvram_init_oops_partition() routine
still works as intended, as the caller is platform specific code which
passes the appropriate value for "rtas_partition_exists" parameter.
In all other places, where CONFIG_PPC_PSERIES or CONFIG_PPC_POWERNV
flag is used in this patchset, it is to reduce the kernel size in cases
where this flag is not set and doesn't have any impact logic wise.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/nvram_64.c
arch/powerpc/platforms/powernv/opal-nvram.c