Skip to content

Commit e43454c

Browse files
jgoulyctmarinas
authored andcommitted
arm64: cpufeature: add Permission Indirection Extension cpucap
This indicates if the system supports PIE. This is a CPUCAP_BOOT_CPU_FEATURE as the boot CPU will enable PIE if it has it, so secondary CPUs must also have this feature. Signed-off-by: Joey Gouly <[email protected]> Cc: Will Deacon <[email protected]> Reviewed-by: Catalin Marinas <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 2b76004 commit e43454c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

arch/arm64/kernel/cpufeature.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,6 +2680,13 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
26802680
.matches = has_cpuid_feature,
26812681
ARM64_CPUID_FIELDS(ID_AA64MMFR3_EL1, TCRX, IMP)
26822682
},
2683+
{
2684+
.desc = "Stage-1 Permission Indirection Extension (S1PIE)",
2685+
.capability = ARM64_HAS_S1PIE,
2686+
.type = ARM64_CPUCAP_BOOT_CPU_FEATURE,
2687+
.matches = has_cpuid_feature,
2688+
ARM64_CPUID_FIELDS(ID_AA64MMFR3_EL1, S1PIE, IMP)
2689+
},
26832690
{},
26842691
};
26852692

arch/arm64/tools/cpucaps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ HAS_NESTED_VIRT
4040
HAS_NO_FPSIMD
4141
HAS_NO_HW_PREFETCH
4242
HAS_PAN
43+
HAS_S1PIE
4344
HAS_RAS_EXTN
4445
HAS_RNG
4546
HAS_SB

0 commit comments

Comments
 (0)