]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebcf9ae1b7757583b6e314ca86bbad00ba525577
tree143f6e81c2605babe15f229ea6621439216043e1
parent780e52ac8a8557e88345bb45402b1c57ff960c46
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