Kconfig 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Performance Monitor Drivers
  4. #
  5. menu "Performance monitor support"
  6. depends on PERF_EVENTS
  7. config ARM_CCI_PMU
  8. tristate "ARM CCI PMU driver"
  9. depends on (ARM && CPU_V7) || ARM64
  10. select ARM_CCI
  11. help
  12. Support for PMU events monitoring on the ARM CCI (Cache Coherent
  13. Interconnect) family of products.
  14. If compiled as a module, it will be called arm-cci.
  15. config ARM_CCI400_PMU
  16. bool "support CCI-400"
  17. default y
  18. depends on ARM_CCI_PMU
  19. select ARM_CCI400_COMMON
  20. help
  21. CCI-400 provides 4 independent event counters counting events related
  22. to the connected slave/master interfaces, plus a cycle counter.
  23. config ARM_CCI5xx_PMU
  24. bool "support CCI-500/CCI-550"
  25. default y
  26. depends on ARM_CCI_PMU
  27. help
  28. CCI-500/CCI-550 both provide 8 independent event counters, which can
  29. count events pertaining to the slave/master interfaces as well as the
  30. internal events to the CCI.
  31. config ARM_CCN
  32. tristate "ARM CCN driver support"
  33. depends on ARM || ARM64 || COMPILE_TEST
  34. help
  35. PMU (perf) driver supporting the ARM CCN (Cache Coherent Network)
  36. interconnect.
  37. config ARM_CMN
  38. tristate "Arm CMN-600 PMU support"
  39. depends on ARM64 || COMPILE_TEST
  40. help
  41. Support for PMU events monitoring on the Arm CMN-600 Coherent Mesh
  42. Network interconnect.
  43. config ARM_NI
  44. tristate "Arm NI-700 PMU support"
  45. depends on ARM64 || COMPILE_TEST
  46. help
  47. Support for PMU events monitoring on the Arm NI-700 Network-on-Chip
  48. interconnect and family.
  49. config ARM_PMU
  50. depends on ARM || ARM64
  51. bool "ARM PMU framework"
  52. default y
  53. help
  54. Say y if you want to use CPU performance monitors on ARM-based
  55. systems.
  56. config ARM_V6_PMU
  57. depends on ARM_PMU && (CPU_V6 || CPU_V6K)
  58. def_bool y
  59. config ARM_V7_PMU
  60. depends on ARM_PMU && CPU_V7
  61. def_bool y
  62. config ARM_XSCALE_PMU
  63. depends on ARM_PMU && CPU_XSCALE
  64. def_bool y
  65. config RISCV_PMU
  66. depends on RISCV
  67. bool "RISC-V PMU framework"
  68. default y
  69. help
  70. Say y if you want to use CPU performance monitors on RISCV-based
  71. systems. This provides the core PMU framework that abstracts common
  72. PMU functionalities in a core library so that different PMU drivers
  73. can reuse it.
  74. config RISCV_PMU_LEGACY
  75. depends on RISCV_PMU
  76. bool "RISC-V legacy PMU implementation"
  77. default y
  78. help
  79. Say y if you want to use the legacy CPU performance monitor
  80. implementation on RISC-V based systems. This only allows counting
  81. of cycle/instruction counter and doesn't support counter overflow,
  82. or programmable counters. It will be removed in future.
  83. config RISCV_PMU_SBI
  84. depends on RISCV_PMU && RISCV_SBI
  85. bool "RISC-V PMU based on SBI PMU extension"
  86. default y
  87. help
  88. Say y if you want to use the CPU performance monitor
  89. using SBI PMU extension on RISC-V based systems. This option provides
  90. full perf feature support i.e. counter overflow, privilege mode
  91. filtering, counter configuration.
  92. config STARFIVE_STARLINK_PMU
  93. depends on ARCH_STARFIVE || COMPILE_TEST
  94. depends on 64BIT
  95. bool "StarFive StarLink PMU"
  96. help
  97. Provide support for StarLink Performance Monitor Unit.
  98. StarLink Performance Monitor Unit integrates one or more cores with
  99. an L3 memory system. The L3 cache events are added into perf event
  100. subsystem, allowing monitoring of various L3 cache perf events.
  101. config ANDES_CUSTOM_PMU
  102. bool "Andes custom PMU support"
  103. depends on ARCH_RENESAS && RISCV_ALTERNATIVE && RISCV_PMU_SBI
  104. default y
  105. help
  106. The Andes cores implement the PMU overflow extension very
  107. similar to the standard Sscofpmf and Smcntrpmf extension.
  108. This will patch the overflow and pending CSRs and handle the
  109. non-standard behaviour via the regular SBI PMU driver and
  110. interface.
  111. If you don't know what to do here, say "Y".
  112. config ARM_PMU_ACPI
  113. depends on ARM_PMU && ACPI
  114. def_bool y
  115. config ARM_SMMU_V3_PMU
  116. tristate "ARM SMMUv3 Performance Monitors Extension"
  117. depends on ARM64 || (COMPILE_TEST && 64BIT)
  118. depends on GENERIC_MSI_IRQ
  119. help
  120. Provides support for the ARM SMMUv3 Performance Monitor Counter
  121. Groups (PMCG), which provide monitoring of transactions passing
  122. through the SMMU and allow the resulting information to be filtered
  123. based on the Stream ID of the corresponding master.
  124. config ARM_PMUV3
  125. depends on HW_PERF_EVENTS && ((ARM && CPU_V7) || ARM64)
  126. bool "ARM PMUv3 support" if !ARM64
  127. default ARM64
  128. help
  129. Say y if you want to use the ARM performance monitor unit (PMU)
  130. version 3. The PMUv3 is the CPU performance monitors on ARMv8
  131. (aarch32 and aarch64) systems that implement the PMUv3
  132. architecture.
  133. config ARM_DSU_PMU
  134. tristate "ARM DynamIQ Shared Unit (DSU) PMU"
  135. depends on ARM64
  136. help
  137. Provides support for performance monitor unit in ARM DynamIQ Shared
  138. Unit (DSU). The DSU integrates one or more cores with an L3 memory
  139. system, control logic. The PMU allows counting various events related
  140. to DSU.
  141. config FSL_IMX8_DDR_PMU
  142. tristate "Freescale i.MX8 DDR perf monitor"
  143. depends on ARCH_MXC || COMPILE_TEST
  144. help
  145. Provides support for the DDR performance monitor in i.MX8, which
  146. can give information about memory throughput and other related
  147. events.
  148. config FSL_IMX9_DDR_PMU
  149. tristate "Freescale i.MX9 DDR perf monitor"
  150. depends on ARCH_MXC
  151. help
  152. Provides support for the DDR performance monitor in i.MX9, which
  153. can give information about memory throughput and other related
  154. events.
  155. config QCOM_L2_PMU
  156. bool "Qualcomm Technologies L2-cache PMU"
  157. depends on ARCH_QCOM && ARM64 && ACPI
  158. select QCOM_KRYO_L2_ACCESSORS
  159. help
  160. Provides support for the L2 cache performance monitor unit (PMU)
  161. in Qualcomm Technologies processors.
  162. Adds the L2 cache PMU into the perf events subsystem for
  163. monitoring L2 cache events.
  164. config QCOM_L3_PMU
  165. bool "Qualcomm Technologies L3-cache PMU"
  166. depends on ARCH_QCOM && ARM64 && ACPI
  167. select QCOM_IRQ_COMBINER
  168. help
  169. Provides support for the L3 cache performance monitor unit (PMU)
  170. in Qualcomm Technologies processors.
  171. Adds the L3 cache PMU into the perf events subsystem for
  172. monitoring L3 cache events.
  173. config THUNDERX2_PMU
  174. tristate "Cavium ThunderX2 SoC PMU UNCORE"
  175. depends on ARCH_THUNDER2 || COMPILE_TEST
  176. depends on NUMA && ACPI
  177. default m
  178. help
  179. Provides support for ThunderX2 UNCORE events.
  180. The SoC has PMU support in its L3 cache controller (L3C) and
  181. in the DDR4 Memory Controller (DMC).
  182. config XGENE_PMU
  183. depends on ARCH_XGENE || (COMPILE_TEST && 64BIT)
  184. bool "APM X-Gene SoC PMU"
  185. default n
  186. help
  187. Say y if you want to use APM X-Gene SoC performance monitors.
  188. config ARM_SPE_PMU
  189. tristate "Enable support for the ARMv8.2 Statistical Profiling Extension"
  190. depends on ARM64
  191. help
  192. Enable perf support for the ARMv8.2 Statistical Profiling
  193. Extension, which provides periodic sampling of operations in
  194. the CPU pipeline and reports this via the perf AUX interface.
  195. config ARM_DMC620_PMU
  196. tristate "Enable PMU support for the ARM DMC-620 memory controller"
  197. depends on (ARM64 && ACPI) || COMPILE_TEST
  198. help
  199. Support for PMU events monitoring on the ARM DMC-620 memory
  200. controller.
  201. config MARVELL_CN10K_TAD_PMU
  202. tristate "Marvell CN10K LLC-TAD PMU"
  203. depends on ARCH_THUNDER || (COMPILE_TEST && 64BIT)
  204. help
  205. Provides support for Last-Level cache Tag-and-data Units (LLC-TAD)
  206. performance monitors on CN10K family silicons.
  207. config APPLE_M1_CPU_PMU
  208. bool "Apple M1 CPU PMU support"
  209. depends on ARM_PMU && ARCH_APPLE
  210. help
  211. Provides support for the non-architectural CPU PMUs present on
  212. the Apple M1 SoCs and derivatives.
  213. config ALIBABA_UNCORE_DRW_PMU
  214. tristate "Alibaba T-Head Yitian 710 DDR Sub-system Driveway PMU driver"
  215. depends on (ARM64 && ACPI) || COMPILE_TEST
  216. help
  217. Support for Driveway PMU events monitoring on Yitian 710 DDR
  218. Sub-system.
  219. source "drivers/perf/hisilicon/Kconfig"
  220. config MARVELL_CN10K_DDR_PMU
  221. tristate "Enable MARVELL CN10K DRAM Subsystem(DSS) PMU Support"
  222. depends on ARCH_THUNDER || (COMPILE_TEST && 64BIT)
  223. help
  224. Enable perf support for Marvell DDR Performance monitoring
  225. event on CN10K platform.
  226. config DWC_PCIE_PMU
  227. tristate "Synopsys DesignWare PCIe PMU"
  228. depends on PCI
  229. help
  230. Enable perf support for Synopsys DesignWare PCIe PMU Performance
  231. monitoring event on platform including the Alibaba Yitian 710.
  232. source "drivers/perf/arm_cspmu/Kconfig"
  233. source "drivers/perf/amlogic/Kconfig"
  234. config CXL_PMU
  235. tristate "CXL Performance Monitoring Unit"
  236. depends on CXL_BUS
  237. help
  238. Support performance monitoring as defined in CXL rev 3.0
  239. section 13.2: Performance Monitoring. CXL components may have
  240. one or more CXL Performance Monitoring Units (CPMUs).
  241. Say 'y/m' to enable a driver that will attach to performance
  242. monitoring units and provide standard perf based interfaces.
  243. If unsure say 'm'.
  244. endmenu