]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68f3215acb011dfc1eaa18ce3c1efb9874171e58
tree3d4bcf987f4ec2cda5b242e3ff5f6c891b8a391c
parente5ac3c8ea80bb6bb970ae2f7eaeb73a106cd016b
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