devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 00/11] drivers/perf: apple_m1: Add Apple A7-A11, T2 SoC support
@ 2025-02-14 14:28 Nick Chan
  2025-02-14 14:28 ` [PATCH v4 01/11] dt-bindings: arm: pmu: Add Apple A7-A11 SoC CPU PMU compatibles Nick Chan
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Nick Chan @ 2025-02-14 14:28 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Catalin Marinas
  Cc: Marc Zyngier, linux-arm-kernel, linux-perf-users, devicetree,
	asahi, linux-kernel, Nick Chan, Krzysztof Kozlowski

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-6 prepares the driver to allow adding support for those 
older SoCs.
Patch 7-11 adds support for the older SoCs.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
---
Changes in v4:
- Support per-implementation event attr group
- Fix Apple A7 event attr groups
- Link to v3: https://lore.kernel.org/r/20250213-apple-cpmu-v3-0-be7f8aded81f@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 (11):
      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 startup
      drivers/perf: apple_m1: Support per-implementation event attr group
      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                | 801 ++++++++++++++++++++++++-
 3 files changed, 777 insertions(+), 33 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250211-apple-cpmu-5a5a3da39483

Best regards,
-- 
Nick Chan <towinchenmi@gmail.com>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-02-14 14:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 14:28 [PATCH v4 00/11] drivers/perf: apple_m1: Add Apple A7-A11, T2 SoC support Nick Chan
2025-02-14 14:28 ` [PATCH v4 01/11] dt-bindings: arm: pmu: Add Apple A7-A11 SoC CPU PMU compatibles Nick Chan
2025-02-14 14:28 ` [PATCH v4 02/11] drivers/perf: apple_m1: Support per-implementation event tables Nick Chan
2025-02-14 14:28 ` [PATCH v4 03/11] drivers/perf: apple_m1: Support a per-implementation number of counters Nick Chan
2025-02-14 14:28 ` [PATCH v4 04/11] drivers/perf: apple_m1: Support configuring counters for 32-bit EL0 Nick Chan
2025-02-14 14:28 ` [PATCH v4 05/11] drivers/perf: apple_m1: Support per-implementation PMU startup Nick Chan
2025-02-14 14:28 ` [PATCH v4 06/11] drivers/perf: apple_m1: Support per-implementation event attr group Nick Chan
2025-02-14 14:28 ` [PATCH v4 07/11] drivers/perf: apple_m1: Add Apple A7 support Nick Chan
2025-02-14 14:28 ` [PATCH v4 08/11] drivers/perf: apple_m1: Add Apple A8/A8X support Nick Chan
2025-02-14 14:28 ` [PATCH v4 09/11] drivers/perf: apple_m1: Add A9/A9X support Nick Chan
2025-02-14 14:28 ` [PATCH v4 10/11] drivers/perf: apple_m1: Add Apple A10/A10X/T2 Support Nick Chan
2025-02-14 14:28 ` [PATCH v4 11/11] drivers/perf: apple_m1: Add Apple A11 Support Nick Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).