Skip to content

Conversation

@nvmochs
Copy link
Collaborator

@nvmochs nvmochs commented Jan 28, 2026

This PR backports the following two series from LKML to support the T410 PMU:

Included is a Config patch to enable the modules provided in the PMU series.

The patch also reverts the NVIDIA:SAUCE patch that added the NVIDIA Olympus definitions and picks the upstream counterpart. This was done to allow the pick of these two upstream patches (also included in this PR) that are a pre-requisite for the T410 series:

d852b838eb05 perf arm-spe: Add NVIDIA Olympus to neoverse list
d5e4c710b54a tools headers arm64: Add NVIDIA Olympus part

Tested the following:

  • 7 Uncore PMU types - System-level monitoring (UCF, PCIE, PCIE-TGT, CMEM Latency, NVLink-C2C, NV-CLink, NV-DLink)
  • 1 Infrastructure PMU - ARM CoreSight (used by Tegra410)
  • 1 CPU Core PMU - Olympus CPU events + vendor metrics (IPC, backend_bound, frontend_bound)

Each test verified:

  • PMU device presence in sysfs
  • Event enumeration
  • Basic event counting with perf stat

LP: https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2139315

nvmochs and others added 14 commits January 27, 2026 17:51
This reverts commit 93c54a5 so that it
can be replaced by the upstream equivalents.

Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Add cpu part and model macro definitions for NVIDIA Olympus core.

Signed-off-by: Shanker Donthineni <sdonthineni@nvidia.com>
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit e185c8a)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Add the part number and MIDR for NVIDIA Olympus.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
(cherry picked from commit d5e4c71)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Add NVIDIA Olympus MIDR to neoverse_spe range list.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
(backported from commit d852b83)
[mochs: Minor context cleanup due to absence of "perf arm_spe: Add CPU variants supporting common data source packet"]
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
The documentation in nvidia-pmu.rst contains PMUs specific
to NVIDIA Tegra241 SoC. Rename the file for this specific
SoC to have better distinction with other NVIDIA SoC.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Adds Unified Coherent Fabric PMU support in Tegra410 SOC.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Add interface to get ACPI device associated with the
PMU. This ACPI device may contain additional properties
not covered by the standard properties.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Adds PCIE PMU support in Tegra410 SOC.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Adds PCIE-TGT PMU support in Tegra410 SOC.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Adds CPU Memory (CMEM) Latency  PMU support in Tegra410 SOC.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Adds NVIDIA C2C PMU support in Tegra410 SOC.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
Enable driver for NVIDIA TEGRA410 CMEM Latency and C2C PMU device.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260126181155.2776097-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
… events

Add JSON files for NVIDIA Tegra410 Olympus core PMU events.
Also updated the common-and-microarch.json.

Signed-off-by: Besar Wicaksono <bwicaksono@nvidia.com>
(backported from https://lore.kernel.org/all/20260127225909.3296202-1-bwicaksono@nvidia.com/)
Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
…EGRA410_CMEM_LATENCY_PMU

Set the following kconfigs to enable these PMUs on T410:
    CONFIG_NVIDIA_TEGRA410_C2C_PMU=m
    CONFIG_NVIDIA_TEGRA410_CMEM_LATENCY_PMU=m

Signed-off-by: Matthew R. Ochs <mochs@nvidia.com>
@clsotog
Copy link
Collaborator

clsotog commented Jan 28, 2026

there is a comment for this patch[PATCH 6/8] perf: add NVIDIA Tegra410 CPU Memory Latency PMU at llkml about compile errors. Should we wait for besar to respond?

@nvmochs
Copy link
Collaborator Author

nvmochs commented Jan 28, 2026

there is a comment for this patch[PATCH 6/8] perf: add NVIDIA Tegra410 CPU Memory Latency PMU at llkml about compile errors. Should we wait for besar to respond?

That is a random config bot. I think that failure is because the Kconfigs for these new PMUs don't have a depends on ACPI - if you look at the config from the bot it doesn't have ACPI support. Our platform requires ACPI, so we won't hit this failure.

So we could wait for a v2, but I don't think this is really a blocker for getting this merged. We'll have to refresh the series to whatever the final merged version is anyway at some point.

Copy link
Collaborator

@clsotog clsotog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acked-by: Carol L Soto <csoto@nvidia.com>

@jamieNguyenNVIDIA
Copy link
Collaborator

Acked-by: Jamie Nguyen <jamien@nvidia.com>

@nvmochs
Copy link
Collaborator Author

nvmochs commented Jan 29, 2026

PR submitted to Canonical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants