]> git.baikalelectronics.ru Git - kernel.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)
commit52b9f202a04e758faa10436d433d0e59d4ec7391
tree946fa416958f910b14093732214e3c7515efed22
parent0d930880d30cd406969c0ca932d1c0eee6a7e248
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