Ard Biesheuvel 68aec33f8f arm64: mm: Add feature override support for LVA
Add support for overriding the VARange field of the MMFR2 CPU ID
register. This permits the associated LVA feature to be overridden early
enough for the boot code that creates the kernel mapping to take it into
account.

Given that LPA2 implies LVA, disabling the latter should disable the
former as well. So override the ID_AA64MMFR0.TGran field of the current
page size as well if it advertises support for 52-bit addressing.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-71-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2024-02-16 12:42:36 +00:00
..
2023-10-28 21:09:02 +09:00
2023-11-03 15:44:25 -10:00
2023-06-06 17:39:05 +01:00
2023-07-03 15:32:22 -07:00
2023-11-01 20:51:41 -10:00
2022-09-26 10:13:14 -07:00
2024-01-19 13:36:15 -08:00
2023-08-31 12:20:12 -07:00
2022-09-26 10:13:14 -07:00
2023-11-02 15:45:15 -10:00