powerpc/fadump: support copying multiple kernel boot memory regions
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 11 Sep 2019 14:51:46 +0000 (20:21 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Sep 2019 14:04:43 +0000 (00:04 +1000)
commit51bba8edef90cf579dba16de912d3ef809fe1d77
tree3d4bcf987f4ec2cda5b242e3ff5f6c891b8a391c
parenta20a8fa42def548f46c7e0401a94f62b8e595883
powerpc/fadump: support copying multiple kernel boot memory regions

Firmware uses a 32-bit field for size while copying/backing-up memory
during MPIPL. So, the maximum value that could be represented with
a PAGE_SIZE aligned 32-bit field will be the maximum copy size for a
region but FADump capture kernel usually needs more memory than that
to be preserved to avoid running into out of memory errors.

So, request firmware to copy multiple kernel boot memory regions
instead of just one (which worked fine for pseries as 64-bit field
was used for size there).

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