]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix up the kdump base cap to 128M
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Mon, 9 Dec 2013 10:03:39 +0000 (15:33 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Dec 2013 00:28:39 +0000 (11:28 +1100)
commit641410cc8f25b1292e4ab8cb42ffb68e15837856
tree3c92bfb8705a637fcd1b317d851ac089d7ac7eb5
parent032b0c373e9bb7ca787594a0c18a9fa693d15d5c
powerpc: Fix up the kdump base cap to 128M

The current logic sets the kdump base to min of 2G or ppc64_rma_size/2.
On PowerNV kernel the first memory block 'memory@0' can be very large,
equal to the DIMM size with ppc64_rma_size value capped to 1G. Hence on
PowerNV, kdump base is set to 512M resulting kdump to fail while allocating
paca array. This is because, paca need its memory from RMA region capped
at 256M (see allocate_pacas()).

This patch lowers the kdump base cap to 128M so that kdump kernel can
successfully get memory below 256M for paca allocation.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/machine_kexec.c