Skip to content

Refactor the common parts to the HiSilicon Uncore PMU core and cleanups

Yicong Yang linux-arm-kernel 5 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. v5 Latest10 patches 1 replyApplied
  2. v410 patches 6 repliesSuperseded
  3. v38 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches2 repliesSuperseded
v18 patches12 repliesSuperseded

Changes in v5 from the cover letter

- rebase on 6.13-rc2 to meet the change of EXPORT_SYMBOL_NS_GPL/MODULE_IMPORT_NS

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/10drivers/perf: hisi: Define a symbol namespace for HiSilicon Uncore PMUsdrivers/perf/hisilicon/hisi_uncore_cpa_pmu.c drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c drivers/perf/hisilicon/hisi_uncore_hha_pmu.c +5 more+25 -180 replies
2/10drivers/perf: hisi: Don't update the associated_cpus on CPU offlinedrivers/perf/hisilicon/hisi_uncore_pmu.c+0 -30 replies
3/10drivers/perf: hisi: Migrate to one online CPU if no associated one onlinedrivers/perf/hisilicon/hisi_uncore_pmu.c+8 -10 replies
4/10drivers/perf: hisi: Refactor the detection of associated CPUsdrivers/perf/hisilicon/hisi_uncore_pmu.c drivers/perf/hisilicon/hisi_uncore_pmu.h+20 -80 replies
5/10drivers/perf: hisi: Extract topology information to a separate structuredrivers/perf/hisilicon/hisi_uncore_cpa_pmu.c drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c drivers/perf/hisilicon/hisi_uncore_hha_pmu.c +6 more+78 -520 replies
6/10drivers/perf: hisi: Add a common function to retrieve topology from firmwaredrivers/perf/hisilicon/hisi_uncore_cpa_pmu.c drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c drivers/perf/hisilicon/hisi_uncore_hha_pmu.c +6 more+60 -430 replies
7/10drivers/perf: hisi: Provide a generic implementation of cpumask/identifierdrivers/perf/hisilicon/hisi_uncore_cpa_pmu.c drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c drivers/perf/hisilicon/hisi_uncore_hha_pmu.c +6 more+63 -1950 replies
8/10drivers/perf: hisi: Export associated CPUs of each PMU through sysfsDocumentation/admin-guide/perf/hisi-pmu.rst drivers/perf/hisilicon/hisi_uncore_pmu.c+14 -10 replies
9/10drivers/perf: hisi: Fix incorrect variable name "hha_pmu" in DDRC PMU driverdrivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c+3 -30 replies
10/10drivers/perf: hisi: Delete redundant blank line of DDRC PMUdrivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c+0 -10 replies

Reviews trailers per patch

7 of 10 patches have a Reviewed-by or Acked-by.

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

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

Read the v5 thread

Cover letter [PATCH v5 00/10] Refactor the common parts to the HiSilicon Uncore PMU core and cleanups

From: Yicong Yang <[email protected]>

This series mainly contains the refactor of the HiSilicon Uncore PMU by extracting the common parts from each drivers into the core:
- the retrieving of the PMU topology ID
- the common sysfs attributes like cpumask and identifier

In order to achieve this, we need to do below preparation:
- refactor the detection of associated CPUs for PMUs locates on a SICL
- maintain the topology information in a dedicated data structure
- provides a generic implementation of cpumask/identifier attributes

Besides also include below changes/cleanups in this patchset
- add one new sysfs attributes for better describing the topology information of the associated CPUs of the PMU.
- define a symbol namespace for HiSilicon Uncore PMUs to avoid pollute the common ones
- two minor nonfunctional cleanups of DDRC PMU

Change since v4:
- rebase on 6.13-rc2 to meet the change of EXPORT_SYMBOL_NS_GPL/MODULE_IMPORT_NS

Change since v3:
- Split the associated_cpus refactor patches according to the functions, hope will be easier to review
- Drop the use of cpu_online_mask out of cpuhp

Change since v2:
- remove one redundant newline and add Jonathan's tag for Patch 1 and 5

Changes since v1:
Address Jonathan's comments and add tags for some patches
- Provide a generic cpumask/identifier attribute group
- refine the comments/commit as suggested

Junhao He (2):
drivers/perf: hisi: Fix incorrect variable name "hha_pmu" in DDRC PMU
driver
drivers/perf: hisi: Delete redundant blank line of DDRC PMU

Yicong Yang (8):
drivers/perf: hisi: Define a symbol namespace for HiSilicon Uncore
PMUs
drivers/perf: hisi: Don't update the associated_cpus on CPU offline drivers/perf: hisi: Migrate to one online CPU if no associated one
online
drivers/perf: hisi: Refactor the detection of associated CPUs drivers/perf: hisi: Extract topology information to a separate
structure
drivers/perf: hisi: Add a common function to retrieve topology from
firmware
drivers/perf: hisi: Provide a generic implementation of
cpumask/identifier
drivers/perf: hisi: Export associated CPUs of each PMU through sysfs

 Documentation/admin-guide/perf/hisi-pmu.rst   |   5 +-
 drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c  |  42 +----
 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c |  61 ++-----
 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c  |  48 ++----
 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c  |  44 ++---
 drivers/perf/hisilicon/hisi_uncore_pa_pmu.c   |  53 ++----
 drivers/perf/hisilicon/hisi_uncore_pmu.c      | 160 +++++++++++++-----
 drivers/perf/hisilicon/hisi_uncore_pmu.h      |  49 +++++-
 drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c |  43 +----
 drivers/perf/hisilicon/hisi_uncore_uc_pmu.c   |  45 ++---
 10 files changed, 248 insertions(+), 302 deletions(-)
Signature · 1 line
2.24.0