提交 f44f084b 编写于 作者: X Xu Yu

configs: arm64: use 48-bit virtual address

fix #28506983

Some ARM machines may have large memory capacity (e.g., more than 256G),
or large hole(s) in memory layout among nodes.

Kernel with CONFIG_ARM64_VA_BITS as 39 has the linear region size as
256G, and the memory that we will not be able to cover with the linear
mapping shall be removed. This may cause part of the physical memory to
become unavailable, system deadlock on memory, or even boot failure, on
such ARM machines.

This changes CONFIG_ARM64_VA_BITS to 48 which supports 128T linear
mapping, in order to adapt to most scenarios.
Signed-off-by: NXu Yu <xuyu@linux.alibaba.com>
Reviewed-by: NShile Zhang <shile.zhang@linux.alibaba.com>
Reviewed-by: NCaspar Zhang <caspar@linux.alibaba.com>
上级 fbb2f06e
...@@ -220,7 +220,7 @@ CONFIG_MMU=y ...@@ -220,7 +220,7 @@ CONFIG_MMU=y
CONFIG_ARM64_PAGE_SHIFT=12 CONFIG_ARM64_PAGE_SHIFT=12
CONFIG_ARM64_CONT_SHIFT=4 CONFIG_ARM64_CONT_SHIFT=4
CONFIG_ARCH_MMAP_RND_BITS_MIN=18 CONFIG_ARCH_MMAP_RND_BITS_MIN=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24 CONFIG_ARCH_MMAP_RND_BITS_MAX=33
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
CONFIG_STACKTRACE_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y
...@@ -238,7 +238,7 @@ CONFIG_HAVE_GENERIC_GUP=y ...@@ -238,7 +238,7 @@ CONFIG_HAVE_GENERIC_GUP=y
CONFIG_SMP=y CONFIG_SMP=y
CONFIG_KERNEL_MODE_NEON=y CONFIG_KERNEL_MODE_NEON=y
CONFIG_FIX_EARLYCON_MEM=y CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=3 CONFIG_PGTABLE_LEVELS=4
CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_ARCH_PROC_KCORE_TEXT=y CONFIG_ARCH_PROC_KCORE_TEXT=y
...@@ -394,9 +394,9 @@ CONFIG_QCOM_FALKOR_ERRATUM_E1041=y ...@@ -394,9 +394,9 @@ CONFIG_QCOM_FALKOR_ERRATUM_E1041=y
CONFIG_ARM64_4K_PAGES=y CONFIG_ARM64_4K_PAGES=y
# CONFIG_ARM64_16K_PAGES is not set # CONFIG_ARM64_16K_PAGES is not set
# CONFIG_ARM64_64K_PAGES is not set # CONFIG_ARM64_64K_PAGES is not set
CONFIG_ARM64_VA_BITS_39=y # CONFIG_ARM64_VA_BITS_39 is not set
# CONFIG_ARM64_VA_BITS_48 is not set CONFIG_ARM64_VA_BITS_48=y
CONFIG_ARM64_VA_BITS=39 CONFIG_ARM64_VA_BITS=48
CONFIG_ARM64_PA_BITS_48=y CONFIG_ARM64_PA_BITS_48=y
CONFIG_ARM64_PA_BITS=48 CONFIG_ARM64_PA_BITS=48
# CONFIG_CPU_BIG_ENDIAN is not set # CONFIG_CPU_BIG_ENDIAN is not set
......
...@@ -224,7 +224,7 @@ CONFIG_MMU=y ...@@ -224,7 +224,7 @@ CONFIG_MMU=y
CONFIG_ARM64_PAGE_SHIFT=12 CONFIG_ARM64_PAGE_SHIFT=12
CONFIG_ARM64_CONT_SHIFT=4 CONFIG_ARM64_CONT_SHIFT=4
CONFIG_ARCH_MMAP_RND_BITS_MIN=18 CONFIG_ARCH_MMAP_RND_BITS_MIN=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24 CONFIG_ARCH_MMAP_RND_BITS_MAX=33
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16
CONFIG_STACKTRACE_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y
...@@ -242,7 +242,7 @@ CONFIG_HAVE_GENERIC_GUP=y ...@@ -242,7 +242,7 @@ CONFIG_HAVE_GENERIC_GUP=y
CONFIG_SMP=y CONFIG_SMP=y
CONFIG_KERNEL_MODE_NEON=y CONFIG_KERNEL_MODE_NEON=y
CONFIG_FIX_EARLYCON_MEM=y CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=3 CONFIG_PGTABLE_LEVELS=4
CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_ARCH_PROC_KCORE_TEXT=y CONFIG_ARCH_PROC_KCORE_TEXT=y
...@@ -398,9 +398,9 @@ CONFIG_QCOM_FALKOR_ERRATUM_E1041=y ...@@ -398,9 +398,9 @@ CONFIG_QCOM_FALKOR_ERRATUM_E1041=y
CONFIG_ARM64_4K_PAGES=y CONFIG_ARM64_4K_PAGES=y
# CONFIG_ARM64_16K_PAGES is not set # CONFIG_ARM64_16K_PAGES is not set
# CONFIG_ARM64_64K_PAGES is not set # CONFIG_ARM64_64K_PAGES is not set
CONFIG_ARM64_VA_BITS_39=y # CONFIG_ARM64_VA_BITS_39 is not set
# CONFIG_ARM64_VA_BITS_48 is not set CONFIG_ARM64_VA_BITS_48=y
CONFIG_ARM64_VA_BITS=39 CONFIG_ARM64_VA_BITS=48
CONFIG_ARM64_PA_BITS_48=y CONFIG_ARM64_PA_BITS_48=y
CONFIG_ARM64_PA_BITS=48 CONFIG_ARM64_PA_BITS=48
# CONFIG_CPU_BIG_ENDIAN is not set # CONFIG_CPU_BIG_ENDIAN is not set
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册