Re: [PATCH 00/13] drivers/perf: apple_m1: Add M3/M4/A18 Pro Support
From: Joshua Peisach
Date: Mon Nov 16 2026 - 08:27:00 EST
On Fri Nov 13, 2026 at 2:25 AM EST, Myria Sarvay wrote:
On Sun, Nov 08, 2026 at 12:32:46PM -0500, Joshua Peisach wrote:
On Tue Nov 3, 2026 at 5:14 AM EST, Myria Sarvay via B4 Relay wrote:compatibles
> This series adds support for the CPU PMU in the new M3, M4 and A18 SoCs
> presed in apple devices. These PMUs have new encodings for events, along
> with larger codes for these events. All of these events are as Apple
> describes them in the various kpep files found under /usr/share/kpep on
> macOS 27. More events may exist, but we have no idea of their affinity,
> or what they actually count, so we don't include them here.
>
> These patches have been tested on my own M2 (t8133-j413) and M3
> (t6031-j514c) devices, as well as by Yuvan on their M4 (t8132-j713)
> device.
>
> If possible, the device tree changes should probably go through
> apple-soc, as this is where the recently picked up M4 Pro/Max dts are.
>
> Tested-by: Yuvan Shen <yuvanshen09@xxxxxxxxx> # on t8132-j713
> Signed-off-by: Myria Sarvay <myrialsarvay@xxxxxxxxx>
> ---
> Myria Sarvay (12):
> dt-bindings: arm: pmu: Add Apple M3/M4/A18 Pro SoC CPU PMU
> drivers/perf: apple_m1: Remove unused variablesfunctions
> drivers/perf: apple_m1: Support per-implementation event size
> drivers/perf: apple_m1: Use macros for per-implementation init
> drivers/perf: apple_m1: Add Apple M3 Series SupportWhat do you mean by this? What folder are you referring too? If you mean
> drivers/perf: apple_m1: Add Apple M4 Series Support
> drivers/perf: apple_m1: Add Apple A18 Support
> arm64: dts: apple: t603x: Add PMU Device Nodes
> arm64: dts: apple: t8122: Add PMU Device Nodes
> arm64: dts: apple: t604x: Add PMU Device Nodes
> arm64: dts: apple: t8132: Add PMU Device Nodes
> arm64: dts: apple: t8140: Add PMU Device Nodes
>
Maybe the folder should be renamed to 'apple_arm' or something like
that?
the device tree's, they're already under the arm64 folder, so apple_arm
seems redundant. If you mean the CPU PMU name, I get that, but I'm not
sure how to change that, given it's already hard coded with the config
option `APPLE_M1_CPU_PMU`. I feel like changing its name at this point
would cause backwards compatibility issues around kernel
configs/blacklists if people use them.
Sorry, brain fart. I meant the file apple_m1, to consider splitting
it up into multiple files. It's no big deal though :)
-Josh