[PATCH v3 0/8] perf: add NVIDIA Tegra410 Uncore PMU support

Besar Wicaksono posted 8 patches 1 week, 3 days ago
Documentation/admin-guide/perf/index.rst      |    3 +-
...nvidia-pmu.rst => nvidia-tegra241-pmu.rst} |    8 +-
.../admin-guide/perf/nvidia-tegra410-pmu.rst  |  522 ++++++++
arch/arm64/configs/defconfig                  |    2 +
drivers/perf/Kconfig                          |   14 +
drivers/perf/Makefile                         |    2 +
drivers/perf/arm_cspmu/arm_cspmu.c            |   19 +-
drivers/perf/arm_cspmu/arm_cspmu.h            |   17 +-
drivers/perf/arm_cspmu/nvidia_cspmu.c         |  618 +++++++++-
drivers/perf/nvidia_t410_c2c_pmu.c            | 1051 +++++++++++++++++
drivers/perf/nvidia_t410_cmem_latency_pmu.c   |  736 ++++++++++++
11 files changed, 2979 insertions(+), 13 deletions(-)
rename Documentation/admin-guide/perf/{nvidia-pmu.rst => nvidia-tegra241-pmu.rst} (98%)
create mode 100644 Documentation/admin-guide/perf/nvidia-tegra410-pmu.rst
create mode 100644 drivers/perf/nvidia_t410_c2c_pmu.c
create mode 100644 drivers/perf/nvidia_t410_cmem_latency_pmu.c
[PATCH v3 0/8] perf: add NVIDIA Tegra410 Uncore PMU support
Posted by Besar Wicaksono 1 week, 3 days ago
This series adds driver support for the following Uncore PMUs in
NVIDIA Tegra410 SoC:
  - Unified Coherence Fabric (UCF)
  - PCIE
  - PCIE-TGT
  - CPU Memory (CMEM) Latency
  - NVLink-C2C
  - NV-CLink
  - NV-DLink

Changes from v2:
  * Addressed comment on arm_cspmu_acpi_dev_get buffer initialization and matching
    CONFIG_* guard.
  * Addressed comment on nvidia_cspmu attribute table and match-entry style,
    validation scoping, and ACPI+ARM64 around instance-id lookup.
  * Addressed comment on PCIe documentation (fabric placement and cycles event).
  * Rework CMEM latency PMU (separate broadcast MMIO, CMEM_LAT_* macro
    names, event_init and formatting).
  * Rework C2C PMU sysfs using static attribute groups and nv_c2c_pmu_data in
    ACPI match data; drop dynamic group allocation, is_visible, and ACPI_PTR.
v2: https://lore.kernel.org/all/20260218145809.1622856-1-bwicaksono@nvidia.com/T/#t

Changes from v1:
  * Add more clarity on the commit message.
  * Fix build error reported by kernel test robot on PATCH 6/8.
    * It was missing ACPI dependency on Kconfig for the CPU Memory
      Latency PMU.
  * Apply code formatting suggestions from Ilkka.
  * Added Reviewed-by from Ilkka.
v1: https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/T/#t

Thanks to Ilkka, Krzysztof, Jon, and Jonathan Cameron for the comments.

Thanks,
Besar

Besar Wicaksono (8):
  perf/arm_cspmu: nvidia: Rename doc to Tegra241
  perf/arm_cspmu: nvidia: Add Tegra410 UCF PMU
  perf/arm_cspmu: Add arm_cspmu_acpi_dev_get
  perf/arm_cspmu: nvidia: Add Tegra410 PCIE PMU
  perf/arm_cspmu: nvidia: Add Tegra410 PCIE-TGT PMU
  perf: add NVIDIA Tegra410 CPU Memory Latency PMU
  perf: add NVIDIA Tegra410 C2C PMU
  arm64: defconfig: Enable NVIDIA TEGRA410 PMU

 Documentation/admin-guide/perf/index.rst      |    3 +-
 ...nvidia-pmu.rst => nvidia-tegra241-pmu.rst} |    8 +-
 .../admin-guide/perf/nvidia-tegra410-pmu.rst  |  522 ++++++++
 arch/arm64/configs/defconfig                  |    2 +
 drivers/perf/Kconfig                          |   14 +
 drivers/perf/Makefile                         |    2 +
 drivers/perf/arm_cspmu/arm_cspmu.c            |   19 +-
 drivers/perf/arm_cspmu/arm_cspmu.h            |   17 +-
 drivers/perf/arm_cspmu/nvidia_cspmu.c         |  618 +++++++++-
 drivers/perf/nvidia_t410_c2c_pmu.c            | 1051 +++++++++++++++++
 drivers/perf/nvidia_t410_cmem_latency_pmu.c   |  736 ++++++++++++
 11 files changed, 2979 insertions(+), 13 deletions(-)
 rename Documentation/admin-guide/perf/{nvidia-pmu.rst => nvidia-tegra241-pmu.rst} (98%)
 create mode 100644 Documentation/admin-guide/perf/nvidia-tegra410-pmu.rst
 create mode 100644 drivers/perf/nvidia_t410_c2c_pmu.c
 create mode 100644 drivers/perf/nvidia_t410_cmem_latency_pmu.c

-- 
2.43.0
Re: [PATCH v3 0/8] perf: add NVIDIA Tegra410 Uncore PMU support
Posted by Will Deacon 1 week, 2 days ago
On Tue, 24 Mar 2026 01:29:44 +0000, Besar Wicaksono wrote:
> This series adds driver support for the following Uncore PMUs in
> NVIDIA Tegra410 SoC:
>   - Unified Coherence Fabric (UCF)
>   - PCIE
>   - PCIE-TGT
>   - CPU Memory (CMEM) Latency
>   - NVLink-C2C
>   - NV-CLink
>   - NV-DLink
> 
> [...]

Applied first seven to will (for-next/perf), thanks!

[1/8] perf/arm_cspmu: nvidia: Rename doc to Tegra241
      https://git.kernel.org/will/c/d332424d1d06
[2/8] perf/arm_cspmu: nvidia: Add Tegra410 UCF PMU
      https://git.kernel.org/will/c/f5caf26fd6c7
[3/8] perf/arm_cspmu: Add arm_cspmu_acpi_dev_get
      https://git.kernel.org/will/c/bc86281fe4bd
[4/8] perf/arm_cspmu: nvidia: Add Tegra410 PCIE PMU
      https://git.kernel.org/will/c/bf585ba14726
[5/8] perf/arm_cspmu: nvidia: Add Tegra410 PCIE-TGT PMU
      https://git.kernel.org/will/c/3dd73022306b
[6/8] perf: add NVIDIA Tegra410 CPU Memory Latency PMU
      https://git.kernel.org/will/c/429b7638b2df
[7/8] perf: add NVIDIA Tegra410 C2C PMU
      https://git.kernel.org/will/c/2f89b7f78c50

The defconfig change should go separately via arm-soc (Arnd).

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev