Commit 21539939 authored by Suzuki K. Poulose's avatar Suzuki K. Poulose Committed by Catalin Marinas

arm64: 36 bit VA

36bit VA lets us use 2 level page tables while limiting the
available address space to 64GB.

Cc: Will Deacon <>
Cc: Steve Capper <>
Signed-off-by: default avatarSuzuki K. Poulose <>
Reviewed-by: default avatarArd Biesheuvel <>
Tested-by: default avatarArd Biesheuvel <>
Acked-by: default avatarMark Rutland <>
Signed-off-by: default avatarCatalin Marinas <>
parent 44eaacf1
......@@ -170,6 +170,7 @@ config FIX_EARLYCON_MEM
default 2 if ARM64_16K_PAGES && ARM64_VA_BITS_36
default 2 if ARM64_64K_PAGES && ARM64_VA_BITS_42
default 3 if ARM64_64K_PAGES && ARM64_VA_BITS_48
default 3 if ARM64_4K_PAGES && ARM64_VA_BITS_39
......@@ -391,6 +392,10 @@ choice
space sizes. The level of translation table is determined by
a combination of page size and virtual address space size.
config ARM64_VA_BITS_36
bool "36-bit"
depends on ARM64_16K_PAGES
config ARM64_VA_BITS_39
bool "39-bit"
depends on ARM64_4K_PAGES
......@@ -410,6 +415,7 @@ endchoice
config ARM64_VA_BITS
default 36 if ARM64_VA_BITS_36
default 39 if ARM64_VA_BITS_39
default 42 if ARM64_VA_BITS_42
default 47 if ARM64_VA_BITS_47
......@@ -480,7 +486,7 @@ config ARCH_WANT_GENERAL_HUGETLB
def_bool y
def_bool y if ARM64_4K_PAGES || ARM64_16K_PAGES
def_bool y if ARM64_4K_PAGES || (ARM64_16K_PAGES && !ARM64_VA_BITS_36)
def_bool y
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment