powerpc: Use more accurate limit for first segment memory allocations
commit17b08650ffabf7d025ceb608748dc12d4dc2928d
authorAnton Blanchard <anton@samba.org>
Mon, 10 May 2010 18:59:18 +0000 (10 18:59 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 21:29:56 +0000 (14 14:29 -0700)
treea60b7d4108fd7f4be91a6e1684d979935b04af9f
parent9644dbc889ae788130d967d4f4e7f95253440be6
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