[PATCH] drivers/perf: apple_m1: Force 63bit counters for M2 CPUs

Will Deacon will at kernel.org
Mon Jun 5 07:45:24 PDT 2023


On Tue, May 30, 2023 at 01:59:54PM +0530, Sidharth Kshatriya wrote:
> Thanks again for the patch earlier Marc !
> 
> Happy to further report that:
> - After applying Marc's patch (upon 6.2.0-asahi11-1) Asahi Linux edge
>   kernel, I am able to see interrupts during `perf record` on the M2
> - The rr debugger also works quite well now on the M2 with the patched
>   kernel. You will need to build rr from the latest master branch from
> the rr git repo
>   as it contains a couple of other commits to support M2. (BTW my
> investigation into
>   issues related to the M2 PMU was initially triggered by problems I
> was facing with
>   getting rr to work properly on the M2. rr uses PMU events in its
> functioning).

Thanks Sidharth, I'll add your Tested-by to the patch.

Will



More information about the linux-arm-kernel mailing list