Kconfig 7.76 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2 3 4 5 6
#
# Performance Monitor Drivers
#

menu "Performance monitor support"
7
	depends on PERF_EVENTS
8

9
config ARM_CCI_PMU
10 11
	tristate "ARM CCI PMU driver"
	depends on (ARM && CPU_V7) || ARM64
12
	select ARM_CCI
13 14 15 16 17
	help
	  Support for PMU events monitoring on the ARM CCI (Cache Coherent
	  Interconnect) family of products.

	  If compiled as a module, it will be called arm-cci.
18 19

config ARM_CCI400_PMU
20 21 22
	bool "support CCI-400"
	default y
	depends on ARM_CCI_PMU
23 24
	select ARM_CCI400_COMMON
	help
25 26
	  CCI-400 provides 4 independent event counters counting events related
	  to the connected slave/master interfaces, plus a cycle counter.
27 28

config ARM_CCI5xx_PMU
29 30 31
	bool "support CCI-500/CCI-550"
	default y
	depends on ARM_CCI_PMU
32
	help
33 34 35
	  CCI-500/CCI-550 both provide 8 independent event counters, which can
	  count events pertaining to the slave/master interfaces as well as the
	  internal events to the CCI.
36

37 38
config ARM_CCN
	tristate "ARM CCN driver support"
39
	depends on ARM || ARM64 || COMPILE_TEST
40 41 42 43
	help
	  PMU (perf) driver supporting the ARM CCN (Cache Coherent Network)
	  interconnect.

44 45
config ARM_CMN
	tristate "Arm CMN-600 PMU support"
46
	depends on ARM64 || COMPILE_TEST
47 48 49 50
	help
	  Support for PMU events monitoring on the Arm CMN-600 Coherent Mesh
	  Network interconnect.

51
config ARM_PMU
52
	depends on ARM || ARM64
53 54 55 56 57 58
	bool "ARM PMU framework"
	default y
	help
	  Say y if you want to use CPU performance monitors on ARM-based
	  systems.

59 60 61 62 63 64 65 66 67 68
config RISCV_PMU
	depends on RISCV
	bool "RISC-V PMU framework"
	default y
	help
	  Say y if you want to use CPU performance monitors on RISCV-based
	  systems. This provides the core PMU framework that abstracts common
	  PMU functionalities in a core library so that different PMU drivers
	  can reuse it.

69 70 71 72 73 74 75 76 77 78
config RISCV_PMU_LEGACY
	depends on RISCV_PMU
	bool "RISC-V legacy PMU implementation"
	default y
	help
	  Say y if you want to use the legacy CPU performance monitor
	  implementation on RISC-V based systems. This only allows counting
	  of cycle/instruction counter and doesn't support counter overflow,
	  or programmable counters. It will be removed in future.

79 80 81 82 83 84 85 86 87 88
config RISCV_PMU_SBI
	depends on RISCV_PMU && RISCV_SBI
	bool "RISC-V PMU based on SBI PMU extension"
	default y
	help
	  Say y if you want to use the CPU performance monitor
	  using SBI PMU extension on RISC-V based systems. This option provides
	  full perf feature support i.e. counter overflow, privilege mode
	  filtering, counter configuration.

89
config STARFIVE_STARLINK_PMU
90
	depends on ARCH_STARFIVE || (COMPILE_TEST && 64BIT)
91 92 93 94 95 96 97
	bool "StarFive StarLink PMU"
	help
	   Provide support for StarLink Performance Monitor Unit.
	   StarLink Performance Monitor Unit integrates one or more cores with
	   an L3 memory system. The L3 cache events are added into perf event
	   subsystem, allowing monitoring of various L3 cache perf events.

98 99 100 101
config ARM_PMU_ACPI
	depends on ARM_PMU && ACPI
	def_bool y

102 103
config ARM_SMMU_V3_PMU
	 tristate "ARM SMMUv3 Performance Monitors Extension"
104
	 depends on ARM64 || (COMPILE_TEST && 64BIT)
105
	 depends on GENERIC_MSI_IRQ
106 107 108 109 110 111
	   help
	   Provides support for the ARM SMMUv3 Performance Monitor Counter
	   Groups (PMCG), which provide monitoring of transactions passing
	   through the SMMU and allow the resulting information to be filtered
	   based on the Stream ID of the corresponding master.

112
config ARM_PMUV3
113
	depends on HW_PERF_EVENTS && ((ARM && CPU_V7) || ARM64)
114
	bool "ARM PMUv3 support" if !ARM64
115
	default ARM64
116 117 118 119 120 121
	  help
	  Say y if you want to use the ARM performance monitor unit (PMU)
	  version 3. The PMUv3 is the CPU performance monitors on ARMv8
	  (aarch32 and aarch64) systems that implement the PMUv3
	  architecture.

122 123 124 125 126 127 128 129 130
config ARM_DSU_PMU
	tristate "ARM DynamIQ Shared Unit (DSU) PMU"
	depends on ARM64
	  help
	  Provides support for performance monitor unit in ARM DynamIQ Shared
	  Unit (DSU). The DSU integrates one or more cores with an L3 memory
	  system, control logic. The PMU allows counting various events related
	  to DSU.

131 132
config FSL_IMX8_DDR_PMU
	tristate "Freescale i.MX8 DDR perf monitor"
133
	depends on ARCH_MXC || COMPILE_TEST
134 135 136 137 138
	  help
	  Provides support for the DDR performance monitor in i.MX8, which
	  can give information about memory throughput and other related
	  events.

139 140 141 142 143 144 145 146
config FSL_IMX9_DDR_PMU
	tristate "Freescale i.MX9 DDR perf monitor"
	depends on ARCH_MXC
	 help
	 Provides support for the DDR performance monitor in i.MX9, which
	 can give information about memory throughput and other related
	 events.

147 148
config QCOM_L2_PMU
	bool "Qualcomm Technologies L2-cache PMU"
149
	depends on ARCH_QCOM && ARM64 && ACPI
150
	select QCOM_KRYO_L2_ACCESSORS
151 152 153 154 155 156
	  help
	  Provides support for the L2 cache performance monitor unit (PMU)
	  in Qualcomm Technologies processors.
	  Adds the L2 cache PMU into the perf events subsystem for
	  monitoring L2 cache events.

157 158
config QCOM_L3_PMU
	bool "Qualcomm Technologies L3-cache PMU"
159
	depends on ARCH_QCOM && ARM64 && ACPI
160 161 162 163 164 165 166
	select QCOM_IRQ_COMBINER
	help
	   Provides support for the L3 cache performance monitor unit (PMU)
	   in Qualcomm Technologies processors.
	   Adds the L3 cache PMU into the perf events subsystem for
	   monitoring L3 cache events.

167 168
config THUNDERX2_PMU
	tristate "Cavium ThunderX2 SoC PMU UNCORE"
169 170
	depends on ARCH_THUNDER2 || COMPILE_TEST
	depends on NUMA && ACPI
171 172 173 174 175 176
	default m
	help
	   Provides support for ThunderX2 UNCORE events.
	   The SoC has PMU support in its L3 cache controller (L3C) and
	   in the DDR4 Memory Controller (DMC).

177
config XGENE_PMU
178
        depends on ARCH_XGENE || (COMPILE_TEST && 64BIT)
179 180 181 182 183
        bool "APM X-Gene SoC PMU"
        default n
        help
          Say y if you want to use APM X-Gene SoC performance monitors.

184 185
config ARM_SPE_PMU
	tristate "Enable support for the ARMv8.2 Statistical Profiling Extension"
186
	depends on ARM64
187 188 189 190 191
	help
	  Enable perf support for the ARMv8.2 Statistical Profiling
	  Extension, which provides periodic sampling of operations in
	  the CPU pipeline and reports this via the perf AUX interface.

192 193 194 195 196 197 198
config ARM_DMC620_PMU
	tristate "Enable PMU support for the ARM DMC-620 memory controller"
	depends on (ARM64 && ACPI) || COMPILE_TEST
	help
	  Support for PMU events monitoring on the ARM DMC-620 memory
	  controller.

199 200
config MARVELL_CN10K_TAD_PMU
	tristate "Marvell CN10K LLC-TAD PMU"
201
	depends on ARCH_THUNDER || (COMPILE_TEST && 64BIT)
202 203 204 205
	help
	  Provides support for Last-Level cache Tag-and-data Units (LLC-TAD)
	  performance monitors on CN10K family silicons.

206 207 208 209 210 211 212
config APPLE_M1_CPU_PMU
	bool "Apple M1 CPU PMU support"
	depends on ARM_PMU && ARCH_APPLE
	help
	  Provides support for the non-architectural CPU PMUs present on
	  the Apple M1 SoCs and derivatives.

213 214
config ALIBABA_UNCORE_DRW_PMU
	tristate "Alibaba T-Head Yitian 710 DDR Sub-system Driveway PMU driver"
215
	depends on (ARM64 && ACPI) || COMPILE_TEST
216 217 218 219
	help
	  Support for Driveway PMU events monitoring on Yitian 710 DDR
	  Sub-system.

220 221
source "drivers/perf/hisilicon/Kconfig"

222 223
config MARVELL_CN10K_DDR_PMU
	tristate "Enable MARVELL CN10K DRAM Subsystem(DSS) PMU Support"
224
	depends on ARCH_THUNDER || (COMPILE_TEST && 64BIT)
225 226 227 228
	help
	  Enable perf support for Marvell DDR Performance monitoring
	  event on CN10K platform.

229 230 231 232 233 234 235
config DWC_PCIE_PMU
	tristate "Synopsys DesignWare PCIe PMU"
	depends on PCI
	help
	  Enable perf support for Synopsys DesignWare PCIe PMU Performance
	  monitoring event on platform including the Alibaba Yitian 710.

236 237
source "drivers/perf/arm_cspmu/Kconfig"

238 239
source "drivers/perf/amlogic/Kconfig"

240 241 242 243 244 245 246 247 248 249 250 251 252
config CXL_PMU
	tristate "CXL Performance Monitoring Unit"
	depends on CXL_BUS
	help
	  Support performance monitoring as defined in CXL rev 3.0
	  section 13.2: Performance Monitoring. CXL components may have
	  one or more CXL Performance Monitoring Units (CPMUs).

	  Say 'y/m' to enable a driver that will attach to performance
	  monitoring units and provide standard perf based interfaces.

	  If unsure say 'm'.

253
endmenu