powerpc/fadump: Fix fadump to work with a different endian capture kernel
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 21 Apr 2021 17:50:52 +0000 (23:20 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Apr 2022 12:35:46 +0000 (22:35 +1000)
commitb74196af372f7cb4902179009265fe63ac81824f
tree143f6e81c2605babe15f229ea6621439216043e1
parenta84ca704d8306a949578d36c028c8e1bab3dcf0b
powerpc/fadump: Fix fadump to work with a different endian capture kernel

Dump capture would fail if capture kernel is not of the endianess as the
production kernel, because the in-memory data structure (struct
opal_fadump_mem_struct) shared across production kernel and capture
kernel assumes the same endianess for both the kernels, which doesn't
have to be true always. Fix it by having a well-defined endianess for
struct opal_fadump_mem_struct.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/161902744901.86147.14719228311655123526.stgit@hbathini
arch/powerpc/platforms/powernv/opal-fadump.c
arch/powerpc/platforms/powernv/opal-fadump.h