]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc/perf: Add extended regs support for power10 platform
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Fri, 7 Aug 2020 10:05:01 +0000 (06:05 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 Aug 2020 03:11:22 +0000 (13:11 +1000)
commitd735599a069f6936c1392e07075c34a19bda949a
treedbb212110804b989cf6ceed937e05b0ea224035f
parent781fa4811d95314c1965c0c3337c9ac36ef26093
powerpc/perf: Add extended regs support for power10 platform

Include capability flag PERF_PMU_CAP_EXTENDED_REGS for power10 and
expose MMCR3, SIER2, SIER3 registers as part of extended regs. Also
introduce PERF_REG_PMU_MASK_31 to define extended mask value at
runtime for power10.

Suggested-by: Ryan Grimm <grimm@linux.ibm.com>
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: Nageswara R Sastry <nasastry@in.ibm.com>
Reviewed-by: Kajol Jain <kjain@linux.ibm.com>
Reviewed-and-tested-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1596794701-23530-3-git-send-email-atrajeev@linux.vnet.ibm.com
arch/powerpc/include/uapi/asm/perf_regs.h
arch/powerpc/perf/perf_regs.c
arch/powerpc/perf/power10-pmu.c