Skip to content

Commit 29c6799

Browse files
marcanjannau
authored andcommitted
Partial revert "arm64: Enable 52-bit virtual addressing for 4k and 16k granule configs"
This reverts commit 352b039. FEAT_LPA2 support is broken.
1 parent 45e0c7a commit 29c6799

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

arch/arm64/Kconfig

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ config ARM64_VA_BITS_48
13521352

13531353
config ARM64_VA_BITS_52
13541354
bool "52-bit"
1355-
depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
1355+
depends on ARM64_64K_PAGES && (ARM64_PAN || !ARM64_SW_TTBR0_PAN)
13561356
help
13571357
Enable 52-bit virtual addressing for userspace when explicitly
13581358
requested via a hint to mmap(). The kernel will also use 52-bit
@@ -1399,11 +1399,10 @@ choice
13991399

14001400
config ARM64_PA_BITS_48
14011401
bool "48-bit"
1402-
depends on ARM64_64K_PAGES || !ARM64_VA_BITS_52
14031402

14041403
config ARM64_PA_BITS_52
1405-
bool "52-bit"
1406-
depends on ARM64_64K_PAGES || ARM64_VA_BITS_52
1404+
bool "52-bit (ARMv8.2)"
1405+
depends on ARM64_64K_PAGES
14071406
depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
14081407
help
14091408
Enable support for a 52-bit physical address space, introduced as

0 commit comments

Comments
 (0)