Skip to content

perf: marvell: LLC-TAD PMU MPAM filtering support

Geetha sowjanya linux-arm-kernel linux-devicetree linux-perf-users lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 4 repliesIn review
  2. v33 patches 0 repliesSuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches2 repliesSuperseded

Changes in v4 from the cover letter

----------------
- Add perf_ready: tad_pmu_offline_cpu skips perf_pmu_migrate_context until after successful perf_pmu_register, so a CPU offline between hotplug add and perf register does not touch perf core state for an unregistered PMU.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf: marvell: Add MPAM partid filtering to CN10K TAD PMUdrivers/perf/marvell_cn10k_tad_pmu.c+171 -494 replies
2/3perf: marvell: Add CN20K LLC-TAD PMU supportdrivers/perf/marvell_cn10k_tad_pmu.c+52 -20 replies
3/3dt-bindings: perf: marvell: add CN20K TAD PMU supportDocumentation/devicetree/bindings/perf/marvell-cn10k-tad.yaml+17 -80 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/3
2/3
3/3A-b

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

Read the v4 thread

Cover letter [PATCH v4 0/3] perf: marvell: LLC-TAD PMU MPAM filtering support

This series extends the Marvell LLC-TAD performance driver used on CN10K and CN20K systems.

Patch 1 adds optional MPAM partition-id filtering for the subset of TAD events that support it, exposes partid / partid_en in the PMU format string, and keeps the reduced Odyssey event surface without advertising partid where it does not apply. It also fixes probe resource handling (no in-place mutation of platform_get_resource() bounds, validate MMIO window vs tad-cnt), registers CPU hotplug before perf_pmu_register with unwind, and aligns the filter-enable bit in config1 with the sysfs format (bit 9).

Patch 2 introduces CN20K LLC-TAD support: non-standard PFC/PRF offsets, additional programmable events with visibility checks so CN10K does not advertise V3-only events, CN20K-specific MPAM encoding for the V3 profile, local64_set(prev_count) on counter start, and device discovery via OF and ACPI.

Patch 3 extends the DeviceTree binding for marvell,cn20k-tad-pmu.

Changes since v3
----------------
- Add perf_ready: tad_pmu_offline_cpu skips perf_pmu_migrate_context until after successful perf_pmu_register, so a CPU offline between hotplug add and perf register does not touch perf core state for an unregistered PMU.

Changes since v2
----------------
- Validate the eventId using an appropriate mask to ensure it is restricted to 8 bits.

Changes since v1
----------------
- config1: use bit 9 for MPAM filter enable consistently with partid_en in the PMU format; allow only bits 0..9 in event_init on CN10K/CN20K paths.
- Reject reserved bits in attr.config and use the same 8-bit event index in start_counter as in event_init so MPAM validation cannot be bypassed.
- Register CPU hotplug before perf_pmu_register in probe (mainline order); add perf_ready so offline migration is skipped until after perf registration (reconciles v1 vs v2 ordering feedback).
- Hide V3-only sysfs events on V1.
- Reset prev_count when starting counters after clearing hardware.
- DT binding: explain non-fallback compatibles for CN10K vs CN20K.

Tanmay Jagdale (1):
perf: marvell: Add MPAM partid filtering to CN10K TAD PMU

Geetha sowjanya (2):
perf: marvell: Add CN20K LLC-TAD PMU support
dt-bindings: perf: marvell: Extend CN10K TAD PMU binding for CN20K

Signature · 1 line
2.25.1