Skip to content

perf: ARM CoreSight PMU support

Besar Wicaksono linux-arm-kernel linux-tegra lkml 8 versions – Applied

Status from this message: Applied to will (for-next/perf), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 1 replyApplied
  2. v62 patches 4 repliesSuperseded
  3. v52 patches 5 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v42 patches10 repliesSuperseded
v3 posting 2/22 patches19 repliesSuperseded
v3 posting 1/22 patches2 repliesSuperseded
v22 patches3 repliesSuperseded
v12 patches16 repliesSuperseded

Changes in v7 from the cover letter

* Rebase to 6.1-rc4.
* Fix copyright lines on the new files.
* Separate the patch for defconfig change.
v6: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/3perf: arm_cspmu: Add support for ARM CoreSight PMU driverdrivers/perf/Kconfig drivers/perf/Makefile drivers/perf/arm_cspmu/Kconfig +3 more+1465 -00 replies
2/3perf: arm_cspmu: Add support for NVIDIA SCF and MCF attributeDocumentation/admin-guide/perf/index.rst Documentation/admin-guide/perf/nvidia-pmu.rst drivers/perf/arm_cspmu/Makefile +3 more+726 -10 replies
3/3arm64: defconfig: enable ARM CoreSight PMU driverarch/arm64/configs/defconfig+1 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchSuzuki K Poulose
1/3R-b
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/3] perf: ARM CoreSight PMU support

Add driver support for ARM CoreSight PMU device and event attributes for NVIDIA implementation. The code is based on ARM Coresight PMU architecture and ACPI ARM Performance Monitoring Unit table (APMT) specification below:
* ARM Coresight PMU:
https://developer.arm.com/documentation/ihi0091/latest
* APMT: https://developer.arm.com/documentation/den0117/latest

The patchset applies on top of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v6.1-rc4

For APMT support, please see patchset: https://lkml.org/lkml/2022/4/19/1395

Changes from v6:
* Rebase to 6.1-rc4.
* Fix copyright lines on the new files.
* Separate the patch for defconfig change.
v6: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes from v5:
* Default get_event/format_attrs callback now returns copy of default array.
Thanks to [email protected] for the review comments.
v5: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes from v4:
* Fix code formatting
* Add timeout to read register function with high-low-high sequence
* Add NO_INTERRUPT capability on PMU that does not have IRQ
* Fix the name of NVIDIA PMUs
* Drop filter attribute for NVLink-C2C PMUs
* Added Reviewed/Acked-by from Suzuki
Thanks to [email protected] and [email protected] for the review comments.
v4: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes from v3:
* Driver is now probing "arm-cs-arch-pmu" device.
* The driver files, directory, functions are renamed with "arm_cspmu" prefix.
* Use Kconfig ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU.
* Add kernel doc for NVIDIA Uncore PMU.
* Use GENMASK and FIELD_GET macros everywhere.
Thanks to [email protected] and [email protected] for the review comments.
v3: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes from v2:
* Driver is now probing "arm-system-pmu" device.
* Change default PMU naming to "arm_<APMT node type>_pmu".
* Add implementor ops to generate custom name.
Thanks to [email protected] for the review comments.
v2: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes from v1:
* Remove CPU arch dependency.
* Remove 32-bit read/write helper function and just use read/writel.
* Add .is_visible into event attribute to filter out cycle counter event.
* Update pmiidr matching.
* Remove read-modify-write on PMCR since the driver only writes to PMCR.E.
* Assign default cycle event outside the 32-bit PMEVTYPER range.
* Rework the active event and used counter tracking.
Thanks to [email protected] for the review comments.
v1: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Besar Wicaksono (3):
perf: arm_cspmu: Add support for ARM CoreSight PMU driver
perf: arm_cspmu: Add support for NVIDIA SCF and MCF attribute
arm64: defconfig: enable ARM CoreSight PMU driver

 Documentation/admin-guide/perf/index.rst      |    1 +
 Documentation/admin-guide/perf/nvidia-pmu.rst |  299 ++++
 arch/arm64/configs/defconfig                  |    1 +
 drivers/perf/Kconfig                          |    2 +
 drivers/perf/Makefile                         |    1 +
 drivers/perf/arm_cspmu/Kconfig                |   13 +
 drivers/perf/arm_cspmu/Makefile               |    7 +
 drivers/perf/arm_cspmu/arm_cspmu.c            | 1301 +++++++++++++++++
 drivers/perf/arm_cspmu/arm_cspmu.h            |  151 ++
 drivers/perf/arm_cspmu/nvidia_cspmu.c         |  398 +++++
 drivers/perf/arm_cspmu/nvidia_cspmu.h         |   17 +
 11 files changed, 2191 insertions(+)
 create mode 100644 Documentation/admin-guide/perf/nvidia-pmu.rst
 create mode 100644 drivers/perf/arm_cspmu/Kconfig
 create mode 100644 drivers/perf/arm_cspmu/Makefile
 create mode 100644 drivers/perf/arm_cspmu/arm_cspmu.c
 create mode 100644 drivers/perf/arm_cspmu/arm_cspmu.h
 create mode 100644 drivers/perf/arm_cspmu/nvidia_cspmu.c
 create mode 100644 drivers/perf/arm_cspmu/nvidia_cspmu.h

base-commit: f0c4d9fc9cc9462659728d168387191387e903cc

Signature · 1 line
2.17.1