Skip to content

perf/smmuv3: Add runtime PM support

Amita Mishra linux-arm-kernel linux-devicetree linux-iommu linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: perf: arm,smmu-v3-pmcg: Allow power-domainsDocumentation/devicetree/bindings/perf/arm,smmu-v3-pmcg.yaml+3 -01 reply
2/2perf/smmuv3: Add runtime PM supportdrivers/perf/arm_smmuv3_pmu.c+115 -193 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] perf/smmuv3: Add runtime PM support

On some SoCs, SMMUv3 Performance Monitor Counter Groups (PMCGs) reside in switchable subsystem power domains rather than an always-on domain. Currently, when such a PMCG is probed, the power domain is attached and powered on, and remains powered on indefinitely even when no perf events are active.

This series adds runtime power management support for SMMUv3 PMCG devices that are attached to a PM domain:

- Patch 1 documents the optional power-domains property in the arm,smmu-v3-pmcg devicetree binding.
- Patch 2 adds runtime PM support to the arm_smmuv3_pmu driver, keeping the PMCG powered only while probe or at least one perf event is active, and guarding post-event perf context and shared IRQ callbacks against accessing registers of a suspended PMCG.

Amita Mishra (2):
dt-bindings: perf: arm,smmu-v3-pmcg: Allow power-domains perf/smmuv3: Add runtime PM support

 .../bindings/perf/arm,smmu-v3-pmcg.yaml       |   3 +
 drivers/perf/arm_smmuv3_pmu.c                 | 134 +++++++++++++++---
 2 files changed, 118 insertions(+), 19 deletions(-)

base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3

Signature · 1 line
2.56.1.703.gf848ed807c-goog