]> 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)
commit9760676f3a469021584022e10ece67aee733d0ef
tree3d4bcf987f4ec2cda5b242e3ff5f6c891b8a391c
parent19b5b075e73cced4cf20a2fed5084c4c80e6b18a
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