linux-stable/drivers/perf
Robin Murphy f0d3a4b6d5 perf/smmuv3: Don't trample existing events with global filter
commit 4c1daba15c upstream.

With global filtering, we only allow an event to be scheduled if its
filter settings exactly match those of any existing events, therefore
it is pointless to reapply the filter in that case. Much worse, though,
is that in doing that we trample the event type of counter 0 if it's
already active, and never touch the appropriate PMEVTYPERn so the new
event is likely not counting the right thing either. Don't do that.

CC: stable@vger.kernel.org
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/32c80c0e46237f49ad8da0c9f8864e13c4a803aa.1623153312.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-14 16:53:05 +02:00
..
hisilicon drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
arm-cci.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
arm-ccn.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
arm_dsu_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
arm_pmu.c drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-07-29 11:43:48 +01:00
arm_pmu_acpi.c drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer 2020-03-25 08:25:47 +01:00
arm_pmu_platform.c perf/arm_pmu_platform: Fix error handling 2021-05-11 14:04:06 +02:00
arm_smmuv3_pmu.c perf/smmuv3: Don't trample existing events with global filter 2021-07-14 16:53:05 +02:00
arm_spe_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
fsl_imx8_ddr_perf.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
Kconfig drivers/perf: imx_ddr: Add DDR performance counter support to perf 2019-06-13 11:07:57 +01:00
Makefile drivers/perf: imx_ddr: Add DDR performance counter support to perf 2019-06-13 11:07:57 +01:00
qcom_l2_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
qcom_l3_pmu.c drivers/perf: Prevent forced unbinding of PMU drivers 2020-07-29 10:18:40 +02:00
thunderx2_pmu.c drivers/perf: thunderx2_pmu: Fix memory resource error handling 2020-10-29 09:57:30 +01:00
xgene_pmu.c drivers/perf: xgene_pmu: Fix uninitialized resource struct 2020-10-29 09:57:29 +01:00