summaryrefslogtreecommitdiffstats
path: root/arch/arm64/Kconfig
diff options
context:
space:
mode:
authorSteve Capper <steve.capper@arm.com>2018-12-06 17:50:42 -0500
committerWill Deacon <will.deacon@arm.com>2018-12-10 13:42:18 -0500
commitb9567720a1b8e739380e0241413606c056c57859 (patch)
tree760f658f0fbb3ec46f0cbdaa0314245f6f094fb7 /arch/arm64/Kconfig
parent67e7fdfcc6824a4f768d76d89377b33baad58fad (diff)
arm64: mm: Allow forcing all userspace addresses to 52-bit
On arm64 52-bit VAs are provided to userspace when a hint is supplied to mmap. This helps maintain compatibility with software that expects at most 48-bit VAs to be returned. In order to help identify software that has 48-bit VA assumptions, this patch allows one to compile a kernel where 52-bit VAs are returned by default on HW that supports it. This feature is intended to be for development systems only. Signed-off-by: Steve Capper <steve.capper@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r--arch/arm64/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 858e353b2f40..ca1f93233b22 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -1186,6 +1186,19 @@ config ARM64_CNP
1186 at runtime, and does not affect PEs that do not implement 1186 at runtime, and does not affect PEs that do not implement
1187 this feature. 1187 this feature.
1188 1188
1189config ARM64_FORCE_52BIT
1190 bool "Force 52-bit virtual addresses for userspace"
1191 depends on ARM64_52BIT_VA && EXPERT
1192 help
1193 For systems with 52-bit userspace VAs enabled, the kernel will attempt
1194 to maintain compatibility with older software by providing 48-bit VAs
1195 unless a hint is supplied to mmap.
1196
1197 This configuration option disables the 48-bit compatibility logic, and
1198 forces all userspace addresses to be 52-bit on HW that supports it. One
1199 should only enable this configuration option for stress testing userspace
1200 memory management code. If unsure say N here.
1201
1189endmenu 1202endmenu
1190 1203
1191config ARM64_SVE 1204config ARM64_SVE