Skip to content

perf: arm_cspmu: ampere: Add support for Ampere SoC PMUs

Ilkka Koskinen linux-arm-kernel linux-doc lkml 6 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 Latest4 patches 1 replyApplied
  2. v64 patches 5 repliesSuperseded
  3. v54 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v34 patches5 repliesSuperseded
v25 patches10 repliesSuperseded
v11 patch2 repliesSuperseded

Changes in v7 from the cover letter

* Rebased on top of Besar's updated patch

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/4perf: arm_cspmu: Split 64-bit write to 32-bit writesdrivers/perf/arm_cspmu/arm_cspmu.c+4 -10 replies
2/4perf: arm_cspmu: Support implementation specific filtersdrivers/perf/arm_cspmu/arm_cspmu.c drivers/perf/arm_cspmu/arm_cspmu.h+11 -40 replies
3/4perf: arm_cspmu: Support implementation specific validationdrivers/perf/arm_cspmu/arm_cspmu.c drivers/perf/arm_cspmu/arm_cspmu.h+10 -10 replies
4/4perf: arm_cspmu: ampere_cspmu: Add support for Ampere SoC PMUDocumentation/admin-guide/perf/ampere_cspmu.rst drivers/perf/arm_cspmu/Kconfig drivers/perf/arm_cspmu/Makefile +3 more+321 -00 replies

Reviews trailers per patch

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

PatchBesar WicaksonoSuzuki K PouloseJonathan Cameron
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/4] perf: arm_cspmu: ampere: Add support for Ampere SoC PMUs

Changes since v6:
* Rebased on top of Besar's updated patch

[PATCH v6] perf: arm_cspmu: Separate Arm and vendor module
https://lore.kernel.org/all/[email protected]/

* Changed Ampere specific module to use ida/ida_alloc() instead of idr/idr_alloc()

Changes since v5:
* Implemented the needed parts for vendor registration API
* Rebased on top of Besar's patch

[PATCH v5] perf: arm_cspmu: Separate Arm and vendor module
https://lore.kernel.org/all/[email protected]/

* v5: https://lore.kernel.org/all/[email protected]/

Changes since v4:
* "Support implementation specific filters" patch:
- Added comment about filter and impdef registers and reference to the Coresight PMU specification to the commit message

* "Add support for Ampere SoC PMU" patch:
- Fixed the documentation and added more comments
- Changed the incrementing PMU index number to idr_alloc() (Needs a impdef release hook patch to release unused index)
- Fixed style in init_ops() to more reasonable
- Moved bank parameter to config1

Changes since v3:
* use_64b_counter_reg => has_atomic_dword (patch 1/4)
* Removed the unnecessary hook for group validation (patch 3/4)
* Added group config validation to ampere_cspmu_validate_event() (patch 4/4)
* Rebased the patchset

Changes since v2:
* Changed to use supports_64bits_atomics() and replaced the split writes with lo_hi_writeq()
* Added implementation specific group validation to patch 3
* Dropped shared interrupt patch
* Removed unnecessary filter_enable parameter from ampere module
* Added group validation to ampere module

Changes since v1:
* Rather than creating a completely new driver, implemented as a submodule of Arm CoreSight PMU driver
* Fixed shared filter handling

Ilkka Koskinen (4):
perf: arm_cspmu: Split 64-bit write to 32-bit writes
perf: arm_cspmu: Support implementation specific filters
perf: arm_cspmu: Support implementation specific validation
perf: arm_cspmu: ampere_cspmu: Add support for Ampere SoC PMU

 .../admin-guide/perf/ampere_cspmu.rst         |  29 ++
 drivers/perf/arm_cspmu/Kconfig                |  10 +
 drivers/perf/arm_cspmu/Makefile               |   2 +
 drivers/perf/arm_cspmu/ampere_cspmu.c         | 271 ++++++++++++++++++
 drivers/perf/arm_cspmu/arm_cspmu.c            |  33 ++-
 drivers/perf/arm_cspmu/arm_cspmu.h            |   7 +
 6 files changed, 346 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/admin-guide/perf/ampere_cspmu.rst
 create mode 100644 drivers/perf/arm_cspmu/ampere_cspmu.c
Signature · 1 line
2.40.1