diff options
author | Will Deacon <will@kernel.org> | 2024-01-04 13:27:42 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-01-04 13:27:42 +0100 |
commit | ccaeeec5294b1be89264c2eb6026d7a0eecb61c0 (patch) | |
tree | 9772be0445ee9f8063fa363f57fcb449afc76c0d /arch/arm64/include/asm/cpufeature.h | |
parent | Merge branch 'for-next/kbuild' into for-next/core (diff) | |
parent | arm64: mm: get rid of kimage_vaddr global variable (diff) | |
download | linux-ccaeeec5294b1be89264c2eb6026d7a0eecb61c0.tar.xz linux-ccaeeec5294b1be89264c2eb6026d7a0eecb61c0.zip |
Merge branch 'for-next/lpa2-prep' into for-next/core
* for-next/lpa2-prep:
arm64: mm: get rid of kimage_vaddr global variable
arm64: mm: Take potential load offset into account when KASLR is off
arm64: kernel: Disable latent_entropy GCC plugin in early C runtime
arm64: Add ARM64_HAS_LPA2 CPU capability
arm64/mm: Add FEAT_LPA2 specific ID_AA64MMFR0.TGRAN[2]
arm64/mm: Update tlb invalidation routines for FEAT_LPA2
arm64/mm: Add lpa2_is_enabled() kvm_lpa2_is_enabled() stubs
arm64/mm: Modify range-based tlbi to decrement scale
Diffstat (limited to 'arch/arm64/include/asm/cpufeature.h')
-rw-r--r-- | arch/arm64/include/asm/cpufeature.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index 2ea24c5cb900..21c824edf8ce 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -820,6 +820,11 @@ static inline bool system_supports_tlb_range(void) return alternative_has_cap_unlikely(ARM64_HAS_TLB_RANGE); } +static inline bool system_supports_lpa2(void) +{ + return cpus_have_final_cap(ARM64_HAS_LPA2); +} + int do_emulate_mrs(struct pt_regs *regs, u32 sys_reg, u32 rt); bool try_emulate_mrs(struct pt_regs *regs, u32 isn); |