Message ID | 20231013024354.1289070-1-anshuman.khandual@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [V2] drivers: perf: arm_pmuv3: Read PMMIR_EL1 unconditionally | expand |
On Fri, 13 Oct 2023 08:13:54 +0530, Anshuman Khandual wrote: > Currently the PMUv3 driver only reads PMMIR_EL1 if the PMU implements > FEAT_PMUv3p4 and the STALL_SLOT event, but the check for STALL_SLOT event > isn't necessary and can be removed. > > The check for STALL_SLOT event was introduced with the read of PMMIR_EL1 in > commit f5be3a61fdb5dd11 ("arm64: perf: Add support caps under sysfs") > > [...] Applied to will (for-next/perf), thanks! [1/1] drivers: perf: arm_pmuv3: Read PMMIR_EL1 unconditionally https://git.kernel.org/will/c/58f8fc57b1d3 Cheers,
diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c index 144593092727..92fefc1bc7f6 100644 --- a/drivers/perf/arm_pmuv3.c +++ b/drivers/perf/arm_pmuv3.c @@ -1126,7 +1126,7 @@ static void __armv8pmu_probe_pmu(void *info) pmceid, ARMV8_PMUV3_MAX_COMMON_EVENTS); /* store PMMIR register for sysfs */ - if (is_pmuv3p4(pmuver) && (pmceid_raw[1] & BIT(31))) + if (is_pmuv3p4(pmuver)) cpu_pmu->reg_pmmir = read_pmmir(); else cpu_pmu->reg_pmmir = 0;