|
|
Subscribe / Log in / New account

drivers/perf: apple_m1: Add Apple A7-A11, T2 SoC support

From:  Nick Chan <towinchenmi-AT-gmail.com>
To:  Will Deacon <will-AT-kernel.org>, Mark Rutland <mark.rutland-AT-arm.com>, Rob Herring <robh-AT-kernel.org>, Krzysztof Kozlowski <krzk+dt-AT-kernel.org>, Conor Dooley <conor+dt-AT-kernel.org>, Catalin Marinas <catalin.marinas-AT-arm.com>
Subject:  [PATCH 00/10] drivers/perf: apple_m1: Add Apple A7-A11, T2 SoC support
Date:  Wed, 12 Feb 2025 00:07:21 +0800
Message-ID:  <20250212-apple-cpmu-v1-0-f8c7f2ac1743@gmail.com>
Cc:  Marc Zyngier <maz-AT-kernel.org>, linux-arm-kernel-AT-lists.infradead.org, linux-perf-users-AT-vger.kernel.org, devicetree-AT-vger.kernel.org, asahi-AT-lists.linux.dev, linux-kernel-AT-vger.kernel.org, Nick Chan <towinchenmi-AT-gmail.com>
Archive-link:  Article

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@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          |   2 +
 drivers/perf/apple_m1_cpu_pmu.c                | 776 ++++++++++++++++++++++++-
 3 files changed, 752 insertions(+), 32 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250211-apple-cpmu-5a5a3da39483

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




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds