]> 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)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Apr 2011 14:53:13 +0000 (16:53 +0200)
commita5c492695b7967201f0988007e3bd8096b468049
tree02e8ca3d748cb78c37182880ca6ff9fd1411cbd0
parent8d64d09e5af544d8a53c708fd2fc696908705231
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