aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Capper <steve.capper@linaro.org>2013-04-25 15:19:21 +0100
committerSteve Capper <steve.capper@linaro.org>2013-05-28 12:46:22 +0100
commitd3f3b83c10f63f645f732701716ed2d13d14bfa9 (patch)
tree2dfe90429a93c196e7c7e985494e1657a369266c
parent5d800a9eb22046445ecba4e770fbd1deb07bc941 (diff)
downloadlinux-d3f3b83c10f63f645f732701716ed2d13d14bfa9.tar.gz
ARM64: mm: Raise MAX_ORDER for 64KB pages and THP.
The buddy allocator has a default MAX_ORDER of 11, which is too low to allocate enough memory for 512MB Transparent HugePages if our base page size is 64KB. This patch introduces MAX_ZONE_ORDER and sets it to 14 when 64KB pages are used in conjuction with THP, otherwise the default value of 11 is used. Signed-off-by: Steve Capper <steve.capper@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 827e00e5775..60b2a5f32e8 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -183,6 +183,11 @@ config ARCH_WANT_HUGE_PMD_SHARE
source "mm/Kconfig"
+config FORCE_MAX_ZONEORDER
+ int
+ default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
+ default "11"
+
endmenu
menu "Boot options"