Skip to content

Commit 2b76004

Browse files
jgoulyctmarinas
authored andcommitted
arm64: cpufeature: add TCR2 cpucap
This capability indicates if the system supports the TCR2_ELx system register. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Cc: Will Deacon <will@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20230606145859.697944-7-joey.gouly@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent edc2589 commit 2b76004

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

arch/arm64/kernel/cpufeature.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,6 +2674,12 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
26742674
.cpu_enable = cpu_enable_mops,
26752675
ARM64_CPUID_FIELDS(ID_AA64ISAR2_EL1, MOPS, IMP)
26762676
},
2677+
{
2678+
.capability = ARM64_HAS_TCR2,
2679+
.type = ARM64_CPUCAP_SYSTEM_FEATURE,
2680+
.matches = has_cpuid_feature,
2681+
ARM64_CPUID_FIELDS(ID_AA64MMFR3_EL1, TCRX, IMP)
2682+
},
26772683
{},
26782684
};
26792685

arch/arm64/tools/cpucaps

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ HAS_RAS_EXTN
4444
HAS_RNG
4545
HAS_SB
4646
HAS_STAGE2_FWB
47+
HAS_TCR2
4748
HAS_TIDCP1
4849
HAS_TLB_RANGE
4950
HAS_VIRT_HOST_EXTN

0 commit comments

Comments
 (0)