[PATCH v3 00/10] drivers/perf: apple_m1: Add Apple A7-A11, T2 SoC support
Nick Chan
towinchenmi at gmail.com
Thu Feb 13 06:36:02 PST 2025
This series adds support for the CPU PMU in the older Apple A7-A11, T2
SoCs. These PMUs may have a different event layout, less counters, or
deliver their interrupts via IRQ instead of a FIQ. Since some of those
older SoCs support 32-bit EL0, counting for 32-bit EL0 also need to
be enabled by the driver where applicable.
Patch 1 adds the DT bindings.
Patch 2-5 prepares the driver to allow adding support for those
older SoCs.
Patch 6-10 adds support for the older SoCs.
Signed-off-by: Nick Chan <towinchenmi at gmail.com>
---
Changes in v3:
- Configure PMC8 and PMC9 for 32-bit EL0
- Remove redundant _common suffix from shared functions
- Link to v2: https://lore.kernel.org/r/20250213-apple-cpmu-v2-0-87b361932e88@gmail.com
Changes in v2:
- Remove unused flags parameter from apple_pmu_init_common()
- Link to v1: https://lore.kernel.org/r/20250212-apple-cpmu-v1-0-f8c7f2ac1743@gmail.com
---
Nick Chan (10):
dt-bindings: arm: pmu: Add Apple A7-A11 SoC CPU PMU compatibles
drivers/perf: apple_m1: Support per-implementation event tables
drivers/perf: apple_m1: Support a per-implementation number of counters
drivers/perf: apple_m1: Support configuring counters for 32-bit EL0
drivers/perf: apple_m1: Support per-implementation PMU start
drivers/perf: apple_m1: Add Apple A7 support
drivers/perf: apple_m1: Add Apple A8/A8X support
drivers/perf: apple_m1: Add A9/A9X support
drivers/perf: apple_m1: Add Apple A10/A10X/T2 Support
drivers/perf: apple_m1: Add Apple A11 Support
Documentation/devicetree/bindings/arm/pmu.yaml | 6 +
arch/arm64/include/asm/apple_m1_pmu.h | 3 +
drivers/perf/apple_m1_cpu_pmu.c | 779 ++++++++++++++++++++++++-
3 files changed, 756 insertions(+), 32 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250211-apple-cpmu-5a5a3da39483
Best regards,
--
Nick Chan <towinchenmi at gmail.com>
More information about the linux-arm-kernel
mailing list