diff options
author | Joey Gouly <joey.gouly@arm.com> | 2024-08-22 17:10:54 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-09-04 13:52:40 +0200 |
commit | bf83dae90fbc01d66477a3440eaad07da6657fdc (patch) | |
tree | 87f4088a1416d0121c55a928556b39a955e9f090 /arch/arm64/include/asm/hwcap.h | |
parent | mm: use ARCH_PKEY_BITS to define VM_PKEY_BITN (diff) | |
download | linux-bf83dae90fbc01d66477a3440eaad07da6657fdc.tar.xz linux-bf83dae90fbc01d66477a3440eaad07da6657fdc.zip |
arm64: enable the Permission Overlay Extension for EL0
Expose a HWCAP and ID_AA64MMFR3_EL1_S1POE to userspace, so they can be used to
check if the CPU supports the feature.
Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20240822151113.1479789-12-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/hwcap.h')
-rw-r--r-- | arch/arm64/include/asm/hwcap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h index 4edd3b61df11..a775adddecf2 100644 --- a/arch/arm64/include/asm/hwcap.h +++ b/arch/arm64/include/asm/hwcap.h @@ -157,6 +157,7 @@ #define KERNEL_HWCAP_SME_SF8FMA __khwcap2_feature(SME_SF8FMA) #define KERNEL_HWCAP_SME_SF8DP4 __khwcap2_feature(SME_SF8DP4) #define KERNEL_HWCAP_SME_SF8DP2 __khwcap2_feature(SME_SF8DP2) +#define KERNEL_HWCAP_POE __khwcap2_feature(POE) /* * This yields a mask that user programs can use to figure out what |