Re: [PATCH] perf/arm-cmn: Allow userspace to select the PMU's CPU

From: Okanovic, Haris

Date: Tue Oct 13 2026 - 15:33:43 EST


On 2026-10-02 17:43, Robin Murphy wrote:
> why do the dozens of other drivers which also pick an arbitrary CPU
> not also need fixing?

Fair point, I understand the scope better now. I counted 25 drivers
doing this, each with its own copy of roughly the same logic.

> I don't see this being practical without first generalising the notion
> of CPU affinity so that it can at least be dealt with from a single
> place in the perf core.

That is what I have done instead of the original patch:

https://lore.kernel.org/linux-arm-kernel/20261013185603.1347265-1-harisokn@xxxxxxxxxx/

Only arm-cmn is converted there; the other 24 are prototyped locally and
will follow if the approach looks right.

Please let me know your thoughts.

--
Haris Okanovic
AWS Graviton