]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: Use more accurate limit for first segment memory allocations
authorAnton Blanchard <anton@samba.org>
Mon, 10 May 2010 18:59:18 +0000 (18:59 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:31 +0000 (12:45 -0700)
commit8f52e5db24ab6b73f0a33e5748b9462be650e7c9
treecd25cd718d1c1c584469cb0441b5164591dbd6ae
parent1ed9c543aa80a4e42b61ddd02b2a66986660165f
powerpc: Use more accurate limit for first segment memory allocations

commit 095c7965f4dc870ed2b65143b1e2610de653416c upstream.

Author: Milton Miller <miltonm@bga.com>

On large machines we are running out of room below 256MB. In some cases we
only need to ensure the allocation is in the first segment, which may be
256MB or 1TB.

Add slb0_limit and use it to specify the upper limit for the irqstack and
emergency stacks.

On a large ppc64 box, this fixes a panic at boot when the crashkernel=
option is specified (previously we would run out of memory below 256MB).

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/kernel/setup_64.c