Skip to content

General updates and two new drivers for HiSilicon Uncore PMU

Yicong Yang linux-arm-kernel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 3/38 patches 6 repliesIn review
  2. v3 posting 2/38 patches 1 replySuperseded
  3. v3 posting 1/38 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches2 repliesSuperseded
v19 patches13 repliesSuperseded

Changes in v3 from the cover letter

- Rebase on 6.15-rc1, add Jonathan's tag.

Patches in v3 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8drivers/perf: hisi: Simplify the probe process for each DDRC versiondrivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c drivers/perf/hisilicon/hisi_uncore_pmu.h+142 -1880 replies
2/8drivers/perf: hisi: Add support for HiSilicon DDRC v3 PMU driverdrivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c+24 -00 replies
3/8drivers/perf: hisi: Use ACPI driver_data to retrieve SLLC PMU informationdrivers/perf/hisilicon/hisi_uncore_sllc_pmu.c+118 -600 replies
4/8drivers/perf: hisi: Add support for HiSilicon SLLC v3 PMU driverdrivers/perf/hisilicon/hisi_uncore_sllc_pmu.c+40 -00 replies
5/8drivers/perf: hisi: Relax the event number check of v2 PMUsdrivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c drivers/perf/hisilicon/hisi_uncore_hha_pmu.c drivers/perf/hisilicon/hisi_uncore_pa_pmu.c +1 more+6 -60 replies
6/8drivers/perf: hisi: Support PMUs with no interruptdrivers/perf/hisilicon/hisi_uncore_pmu.c+8 -30 replies
7/8drivers/perf: hisi: Add support for HiSilicon NoC PMUDocumentation/admin-guide/perf/hisi-pmu.rst drivers/perf/hisilicon/Makefile drivers/perf/hisilicon/hisi_uncore_noc_pmu.c+405 -12 replies
8/8drivers/perf: hisi: Add support for HiSilicon MN PMU driverdrivers/perf/hisilicon/Makefile drivers/perf/hisilicon/hisi_uncore_mn_pmu.c+356 -10 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchJonathan Cameron
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v3 thread

Cover letter [RESEND PATCH v3 0/8] General updates and two new drivers for HiSilicon Uncore PMU

From: Yicong Yang <[email protected]>

Support new version of DDRC/SLLC PMU identified with updated ACPI HID and register definition. In order to support this, we do a preliminary refactor to initialize device of each version by using driver data of each HID rather than checking the version. This will also make the driver easier to maintain and extend, since only the HID specific information along with the new HID will be added to support the new version without touching the common logic.

Two new Uncore PMU drivers is also added to support the monitoring the events of the system bus (by NoC PMU) and the DVM operations (by MN PMU).

Change since v2:
- Rebase on 6.15-rc1, add Jonathan's tag.

Change since v1:
- Fold patch which extending the struct hisi_pmu_dev_info into its user
- Use bit shift rather than bit mask for SLLC PMU registers configuration
- Address other comments by Jonathan, thanks

Junhao He (6):
drivers/perf: hisi: Simplify the probe process for each DDRC version drivers/perf: hisi: Add support for HiSilicon DDRC v3 PMU driver drivers/perf: hisi: Use ACPI driver_data to retrieve SLLC PMU
information
drivers/perf: hisi: Add support for HiSilicon SLLC v3 PMU driver drivers/perf: hisi: Relax the event number check of v2 PMUs drivers/perf: hisi: Add support for HiSilicon MN PMU driver

Yicong Yang (2):
drivers/perf: hisi: Support PMUs with no interrupt drivers/perf: hisi: Add support for HiSilicon NoC PMU

 Documentation/admin-guide/perf/hisi-pmu.rst   |  11 +
 drivers/perf/hisilicon/Makefile               |   3 +-
 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 354 ++++++++--------
 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c  |   6 +-
 drivers/perf/hisilicon/hisi_uncore_mn_pmu.c   | 355 ++++++++++++++++
 drivers/perf/hisilicon/hisi_uncore_noc_pmu.c  | 392 ++++++++++++++++++
 drivers/perf/hisilicon/hisi_uncore_pa_pmu.c   |   2 +-
 drivers/perf/hisilicon/hisi_uncore_pmu.c      |  11 +-
 drivers/perf/hisilicon/hisi_uncore_pmu.h      |   2 +
 drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c | 220 +++++++---
 10 files changed, 1098 insertions(+), 258 deletions(-)
 create mode 100644 drivers/perf/hisilicon/hisi_uncore_mn_pmu.c
 create mode 100644 drivers/perf/hisilicon/hisi_uncore_noc_pmu.c
Signature · 1 line
2.24.0