]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
powerpc/perf: Add generic and cache event list for power10 DD1
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Thu, 26 Nov 2020 16:54:41 +0000 (11:54 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:29 +0000 (01:01 +1100)
commitc0e3985790251b307b7b71b687ed0128741b3f34
tree1ad319d94838aeaf02a3185bd587b772ecfbca0f
parent0263bbb377af0c2d38bc8b2ad2ff147e240094de
powerpc/perf: Add generic and cache event list for power10 DD1

There are event code updates for some of the generic events
and cache events for power10. Inorder to maintain the current
event codes work with DD1 also, create a new array of generic_events,
cache_events and pmu_attr_groups with suffix _dd1, example,
power10_events_attr_dd1. So that further updates to event codes
can be made in the original list, ie, power10_events_attr. Update the
power10 pmu init code to pick the dd1 list while registering
the power PMU, based on the pvr (Processor Version Register) value.

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1606409684-1589-5-git-send-email-atrajeev@linux.vnet.ibm.com
arch/powerpc/perf/power10-pmu.c