powerpc: Don't use a 16G page if beyond mem= limits
commit6b24a150a44fb93c94799bbb70fedabfe96520fc
authorJon Tollefson <kniht@us.ibm.com>
Tue, 21 Oct 2008 15:27:36 +0000 (21 15:27 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Nov 2008 03:05:46 +0000 (6 19:05 -0800)
tree6cc2d61613f67cfab95be6856e21e6d0be640923
parent7bdb542c453c14e54af9ebe5c4a827e4a678c47d
powerpc: Don't use a 16G page if beyond mem= limits

commit 4792adbac9eb41cea77a45ab76258ea10d411173 upstream

If mem= is used on the boot command line to limit memory then the memory block where a 16G page resides may not be available.

Thanks to Michael Ellerman for finding the problem.

Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/mm/hash_utils_64.c