Commit e37dfd65 authored by Besar Wicaksono's avatar Besar Wicaksono Committed by Will Deacon
Browse files

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: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarBesar Wicaksono <bwicaksono@nvidia.com>
Link: https://lore.kernel.org/r/20221111222330.48602-2-bwicaksono@nvidia.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 6f2d566b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -199,4 +199,6 @@ config MARVELL_CN10K_DDR_PMU
	  Enable perf support for Marvell DDR Performance monitoring
	  event on CN10K platform.

source "drivers/perf/arm_cspmu/Kconfig"

endmenu
+1 −0
Original line number Diff line number Diff line
@@ -21,3 +21,4 @@ obj-$(CONFIG_MARVELL_CN10K_TAD_PMU) += marvell_cn10k_tad_pmu.o
obj-$(CONFIG_MARVELL_CN10K_DDR_PMU) += marvell_cn10k_ddr_pmu.o
obj-$(CONFIG_APPLE_M1_CPU_PMU) += apple_m1_cpu_pmu.o
obj-$(CONFIG_ALIBABA_UNCORE_DRW_PMU) += alibaba_uncore_drw_pmu.o
obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += arm_cspmu/
+13 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

config ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU
	tristate "ARM Coresight Architecture PMU"
	depends on ACPI
	depends on ACPI_APMT || COMPILE_TEST
	help
	  Provides support for performance monitoring unit (PMU) devices
	  based on ARM CoreSight PMU architecture. Note that this PMU
	  architecture does not have relationship with the ARM CoreSight
	  Self-Hosted Tracing.
+6 −0
Original line number Diff line number Diff line
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += \
	arm_cspmu.o
+1292 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading