From 715d49eb303025c043d88e662dac723ebc68beac Mon Sep 17 00:00:00 2001 From: Dave Kleikamp Date: Fri, 6 Mar 2015 13:53:34 -0600 Subject: [PATCH] sparc: add FORCE_MAX_ZONEORDER Allow for a memory allocation large enough to load a kernel for kexec in contiguous memory. Signed-off-by: Dave Kleikamp --- arch/sparc/Kconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 9c56e0d822a9..f537c6b51b27 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -347,6 +347,21 @@ config ARCH_SPARSEMEM_ENABLE config ARCH_SPARSEMEM_DEFAULT def_bool y if SPARC64 +config FORCE_MAX_ZONEORDER + int "Maximum zone order" + default "13" if KEXEC + default "11" + help + The kernel memory allocator divides physically contiguous memory + blocks into "zones", where each zone is a power of two number of + pages. This option selects the largest power of two that the kernel + keeps in the memory allocator. If you need to allocate very large + blocks of physically contiguous memory, then you may need to + increase this value. + + This config option is actually maximum order plus one. For example, + a value of 11 means that the largest free memory block is 2^10 pages. + source "mm/Kconfig" if SPARC64 -- 2.50.1