Skip to content

Commit 2db7f4e

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 22c1675 commit 2db7f4e

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
@@ -1349,7 +1349,7 @@ config ARM64_VA_BITS_48
13491349

13501350
config ARM64_VA_BITS_52
13511351
bool "52-bit"
1352-
depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
1352+
depends on ARM64_64K_PAGES && (ARM64_PAN || !ARM64_SW_TTBR0_PAN)
13531353
help
13541354
Enable 52-bit virtual addressing for userspace when explicitly
13551355
requested via a hint to mmap(). The kernel will also use 52-bit
@@ -1396,11 +1396,10 @@ choice
13961396

13971397
config ARM64_PA_BITS_48
13981398
bool "48-bit"
1399-
depends on ARM64_64K_PAGES || !ARM64_VA_BITS_52
14001399

14011400
config ARM64_PA_BITS_52
1402-
bool "52-bit"
1403-
depends on ARM64_64K_PAGES || ARM64_VA_BITS_52
1401+
bool "52-bit (ARMv8.2)"
1402+
depends on ARM64_64K_PAGES
14041403
depends on ARM64_PAN || !ARM64_SW_TTBR0_PAN
14051404
help
14061405
Enable support for a 52-bit physical address space, introduced as

0 commit comments

Comments
 (0)