powerpc/fadump: support holes in kernel boot memory area
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 11 Sep 2019 14:57:39 +0000 (20:27 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:46 +0000 (00:04 +1000)
commit7dee93a9a8808b3d8595e1cc79ccb8b1a7bc7a77
treed1771d9e4267150a0a7bfbaa71a278ad2c2fd817
parentbecd91d9c5467160984a0380df72fdf71fee82f6
powerpc/fadump: support holes in kernel boot memory area

With support to copy multiple kernel boot memory regions owing to copy
size limitation, also handle holes in the memory area to be preserved.
Support as many as 128 kernel boot memory regions. This allows having
an adequate FADump capture kernel size for different scenarios.

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