perf/arm-cmn: Enable per-DTC counter allocation
authorRobin Murphy <robin.murphy@arm.com>
Fri, 20 Oct 2023 17:51:27 +0000 (18:51 +0100)
committerWill Deacon <will@kernel.org>
Mon, 23 Oct 2023 12:45:42 +0000 (13:45 +0100)
commitab33c66fd8f124f7c4a35c96fcfbcd262764b0f6
tree4eba7a98f124c15a0164210d4b5ff554d41a18c7
parent7633ec2c262fab3e7c5bf3cd3876b5748f584a57
perf/arm-cmn: Enable per-DTC counter allocation

Finally enable independent per-DTC-domain counter allocation, except on
CMN-600 where we still need to cope with not knowing the domain topology
and thus keep counter indices sychronised across domains. This allows
users to simultaneously count up to 8 targeted events per domain, rather
than 8 globally, for up to 4x wider coverage on maximum configurations.

Even though this now looks deceptively simple, I stand by my previous
assertion that it was a flippin' nightmare to implement; all the real
head-scratchers are hidden in the foundations in the previous patch...

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/849f65566582cb102c6d0843d0f26e231180f8ac.1697824215.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c