Searched refs:pmuver (Results 1 – 9 of 9) sorted by relevance
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | arm_pmuv3.h | 170 static inline bool pmuv3_implemented(int pmuver) in pmuv3_implemented() argument 172 return !(pmuver == ID_AA64DFR0_EL1_PMUVer_IMP_DEF || in pmuv3_implemented() 173 pmuver == ID_AA64DFR0_EL1_PMUVer_NI); in pmuv3_implemented() 176 static inline bool is_pmuv3p4(int pmuver) in is_pmuv3p4() argument 178 return pmuver >= ID_AA64DFR0_EL1_PMUVer_V3P4; in is_pmuv3p4() 181 static inline bool is_pmuv3p5(int pmuver) in is_pmuv3p5() argument 183 return pmuver >= ID_AA64DFR0_EL1_PMUVer_V3P5; in is_pmuv3p5() 186 static inline bool is_pmuv3p9(int pmuver) in is_pmuv3p9() argument 188 return pmuver >= ID_AA64DFR0_EL1_PMUVer_V3P9; in is_pmuv3p9()
|
| /linux-6.15/arch/arm/include/asm/ |
| H A D | arm_pmuv3.h | 239 static inline bool pmuv3_implemented(int pmuver) in pmuv3_implemented() argument 241 return !(pmuver == ARMV8_PMU_DFR_VER_IMP_DEF || in pmuv3_implemented() 242 pmuver == ARMV8_PMU_DFR_VER_NI); in pmuv3_implemented() 245 static inline bool is_pmuv3p4(int pmuver) in is_pmuv3p4() argument 247 return pmuver >= ARMV8_PMU_DFR_VER_V3P4; in is_pmuv3p4() 250 static inline bool is_pmuv3p5(int pmuver) in is_pmuv3p5() argument 252 return pmuver >= ARMV8_PMU_DFR_VER_V3P5; in is_pmuv3p5() 255 static inline bool is_pmuv3p9(int pmuver) in is_pmuv3p9() argument 257 return pmuver >= ARMV8_PMU_DFR_VER_V3P9; in is_pmuv3p9()
|
| /linux-6.15/arch/arm64/kvm/ |
| H A D | pmu-emul.c | 43 static u32 __kvm_pmu_event_mask(unsigned int pmuver) in __kvm_pmu_event_mask() argument 45 switch (pmuver) { in __kvm_pmu_event_mask() 54 WARN_ONCE(1, "Unknown PMU version %d\n", pmuver); in __kvm_pmu_event_mask() 62 u8 pmuver = SYS_FIELD_GET(ID_AA64DFR0_EL1, PMUVer, dfr0); in kvm_pmu_event_mask() local 64 return __kvm_pmu_event_mask(pmuver); in kvm_pmu_event_mask() 1129 u8 pmuver = kvm_arm_pmu_get_pmuver_limit(); in kvm_arm_pmu_v3_set_attr() local 1139 nr_events = __kvm_pmu_event_mask(pmuver) + 1; in kvm_arm_pmu_v3_set_attr() 1234 unsigned int pmuver; in kvm_arm_pmu_get_pmuver_limit() local 1236 pmuver = SYS_FIELD_GET(ID_AA64DFR0_EL1, PMUVer, in kvm_arm_pmu_get_pmuver_limit() 1250 if (pmuver == ID_AA64DFR0_EL1_PMUVer_IMP_DEF) in kvm_arm_pmu_get_pmuver_limit() [all …]
|
| H A D | sys_regs.c | 1567 static u8 pmuver_to_perfmon(u8 pmuver) in pmuver_to_perfmon() argument 1569 switch (pmuver) { in pmuver_to_perfmon() 1576 return pmuver; in pmuver_to_perfmon() 1855 u8 pmuver = SYS_FIELD_GET(ID_AA64DFR0_EL1, PMUVer, val); in set_id_aa64dfr0_el1() local 1871 if (pmuver == ID_AA64DFR0_EL1_PMUVer_IMP_DEF) in set_id_aa64dfr0_el1()
|
| /linux-6.15/tools/testing/selftests/kvm/arm64/ |
| H A D | vpmu_counter_access.c | 411 uint8_t pmuver, ec; in create_vpmu_vm() local 444 pmuver = FIELD_GET(ARM64_FEATURE_MASK(ID_AA64DFR0_EL1_PMUVer), dfr0); in create_vpmu_vm() 445 TEST_ASSERT(pmuver != ID_AA64DFR0_EL1_PMUVer_IMP_DEF && in create_vpmu_vm() 446 pmuver >= ID_AA64DFR0_EL1_PMUVer_IMP, in create_vpmu_vm() 447 "Unexpected PMUVER (0x%x) on the vCPU with PMUv3", pmuver); in create_vpmu_vm()
|
| /linux-6.15/drivers/perf/ |
| H A D | arm_pmuv3.c | 464 return (IS_ENABLED(CONFIG_ARM64) && is_pmuv3p5(cpu_pmu->pmuver)); in armv8pmu_has_long_event() 773 if (is_pmuv3p9(cpu_pmu->pmuver)) { in armv8pmu_enable_user_access() 1205 int pmuver; in __armv8pmu_probe_pmu() local 1207 pmuver = read_pmuver(); in __armv8pmu_probe_pmu() 1208 if (!pmuv3_implemented(pmuver)) in __armv8pmu_probe_pmu() 1211 cpu_pmu->pmuver = pmuver; in __armv8pmu_probe_pmu() 1238 if (is_pmuv3p4(pmuver)) in __armv8pmu_probe_pmu()
|
| /linux-6.15/arch/arm64/kernel/ |
| H A D | cpu_errata.c | 269 unsigned int pmuver; in has_impdef_pmuv3() local 274 pmuver = cpuid_feature_extract_unsigned_field(dfr0, in has_impdef_pmuv3() 276 if (pmuver != ID_AA64DFR0_EL1_PMUVer_IMP_DEF) in has_impdef_pmuv3()
|
| H A D | cpufeature.c | 1914 unsigned int pmuver; in has_pmuv3() local 1923 pmuver = cpuid_feature_extract_unsigned_field(dfr0, in has_pmuv3() 1925 if (pmuver == ID_AA64DFR0_EL1_PMUVer_IMP_DEF) in has_pmuv3() 1928 return pmuver >= ID_AA64DFR0_EL1_PMUVer_IMP; in has_pmuv3()
|
| /linux-6.15/include/linux/perf/ |
| H A D | arm_pmu.h | 116 int pmuver; member
|