perf: arm_cspmu: Add support for ARM CoreSight PMU driver
authorBesar Wicaksono <bwicaksono@nvidia.com>
Fri, 11 Nov 2022 22:23:28 +0000 (16:23 -0600)
committerWill Deacon <will@kernel.org>
Tue, 15 Nov 2022 13:48:08 +0000 (13:48 +0000)
commite37dfd65731dc4f001fa7dfa7f705e6840017d5a
tree7bb90accb5e5e86c02577c298f5b7ea83fc5a17f
parent6f2d566b46436a50a80d6445e82879686b89588c
perf: arm_cspmu: Add support for ARM CoreSight PMU driver

Add support for ARM CoreSight PMU driver framework and interfaces.
The driver provides generic implementation to operate uncore PMU based
on ARM CoreSight PMU architecture. The driver also provides interface
to get vendor/implementation specific information, for example event
attributes and formating.

The specification used in this implementation can be found below:
 * ACPI Arm Performance Monitoring Unit table:
        https://developer.arm.com/documentation/den0117/latest
 * ARM Coresight PMU architecture:
        https://developer.arm.com/documentation/ihi0091/latest

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
Link: https://lore.kernel.org/r/20221111222330.48602-2-bwicaksono@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/arm_cspmu/Kconfig [new file with mode: 0644]
drivers/perf/arm_cspmu/Makefile [new file with mode: 0644]
drivers/perf/arm_cspmu/arm_cspmu.c [new file with mode: 0644]
drivers/perf/arm_cspmu/arm_cspmu.h [new file with mode: 0644]