File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 63
63
#define ARM64_HAS_32BIT_EL1 53
64
64
#define ARM64_BTI 54
65
65
#define ARM64_HAS_ARMv8_4_TTL 55
66
+ #define ARM64_HAS_TLB_RANGE 56
66
67
67
- #define ARM64_NCAPS 56
68
+ #define ARM64_NCAPS 57
68
69
69
70
#endif /* __ASM_CPUCAPS_H */
Original file line number Diff line number Diff line change 617
617
#define ID_AA64ISAR0_SHA1_SHIFT 8
618
618
#define ID_AA64ISAR0_AES_SHIFT 4
619
619
620
+ #define ID_AA64ISAR0_TLB_RANGE_NI 0x0
621
+ #define ID_AA64ISAR0_TLB_RANGE 0x2
622
+
620
623
/* id_aa64isar1 */
621
624
#define ID_AA64ISAR1_I8MM_SHIFT 52
622
625
#define ID_AA64ISAR1_DGH_SHIFT 48
Original file line number Diff line number Diff line change @@ -1893,6 +1893,16 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
1893
1893
.min_field_value = 1 ,
1894
1894
.matches = has_cpuid_feature ,
1895
1895
},
1896
+ {
1897
+ .desc = "TLB range maintenance instructions" ,
1898
+ .capability = ARM64_HAS_TLB_RANGE ,
1899
+ .type = ARM64_CPUCAP_SYSTEM_FEATURE ,
1900
+ .matches = has_cpuid_feature ,
1901
+ .sys_reg = SYS_ID_AA64ISAR0_EL1 ,
1902
+ .field_pos = ID_AA64ISAR0_TLB_SHIFT ,
1903
+ .sign = FTR_UNSIGNED ,
1904
+ .min_field_value = ID_AA64ISAR0_TLB_RANGE ,
1905
+ },
1896
1906
#ifdef CONFIG_ARM64_HW_AFDBM
1897
1907
{
1898
1908
/*
You can’t perform that action at this time.
0 commit comments