]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kdump: Ignore failure in enabling big endian exception during crash
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Thu, 18 Dec 2014 18:06:55 +0000 (23:36 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Dec 2014 04:44:53 +0000 (15:44 +1100)
commitd92a8335fb65a3f503804390e429f5f1761db211
tree7a21e64d9432ba26cd313cc1038c4cc1be049af8
parent3513c59fa2734a4c12fb4d4e2da75dff3bee78d2
powerpc/kdump: Ignore failure in enabling big endian exception during crash

In LE kernel, we currently have a hack for kexec that resets the exception
endian before starting a new kernel as the kernel that is loaded could be a
big endian or a little endian kernel. In kdump case, resetting exception
endian fails when one or more cpus is disabled. But we can ignore the failure
and still go ahead, as in most cases crashkernel will be of same endianess
as primary kernel and reseting endianess is not even needed in those cases.
This patch adds a new inline function to say if this is kdump path. This
function is used at places where such a check is needed.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
[mpe: Rename to kdump_in_progress(), use bool, and edit comment]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kexec.h
arch/powerpc/kernel/machine_kexec_64.c
arch/powerpc/platforms/pseries/lpar.c