From: Dave Kleikamp Date: Fri, 6 Mar 2015 19:53:34 +0000 (-0600) Subject: sparc: add FORCE_MAX_ZONEORDER X-Git-Tag: v4.1.12-92~147^2~3^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=715d49eb303025c043d88e662dac723ebc68beac;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 9c56e0d822a93..f537c6b51b272 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