linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Refactor the common parts to the HiSilicon Uncore PMU core and cleanups
@ 2024-10-18  9:57 Yicong Yang
  2024-10-18  9:57 ` [PATCH 1/8] drivers/perf: hisi: Define a symbol namespace for HiSilicon Uncore PMUs Yicong Yang
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Yicong Yang @ 2024-10-18  9:57 UTC (permalink / raw)
  To: jonathan.cameron, will, mark.rutland, linux-arm-kernel
  Cc: yangyicong, hejunhao3, linuxarm, wangyushan12, prime.zeng

From: Yicong Yang <yangyicong@hisilicon.com>

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:
- improve the detection of associated CPUs for PMUs locates on a SICL
- maintain the topology information in a dedicated data structure

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

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 (6):
  drivers/perf: hisi: Define a symbol namespace for HiSilicon Uncore
    PMUs
  drivers/perf: hisi: Improve 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: Refactor the attributes creation
  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  |  55 ++----
 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c |  82 +++-----
 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c  |  71 +++----
 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c  |  65 ++-----
 drivers/perf/hisilicon/hisi_uncore_pa_pmu.c   |  54 ++----
 drivers/perf/hisilicon/hisi_uncore_pmu.c      | 182 ++++++++++++++----
 drivers/perf/hisilicon/hisi_uncore_pmu.h      |  60 +++++-
 drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c |  54 ++----
 drivers/perf/hisilicon/hisi_uncore_uc_pmu.c   |  56 ++----
 10 files changed, 323 insertions(+), 361 deletions(-)

-- 
2.24.0



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2024-10-21 14:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-18  9:57 [PATCH 0/8] Refactor the common parts to the HiSilicon Uncore PMU core and cleanups Yicong Yang
2024-10-18  9:57 ` [PATCH 1/8] drivers/perf: hisi: Define a symbol namespace for HiSilicon Uncore PMUs Yicong Yang
2024-10-18 12:43   ` Jonathan Cameron
2024-10-21 12:39     ` Yicong Yang
2024-10-18  9:57 ` [PATCH 2/8] drivers/perf: hisi: Improve the detection of associated CPUs Yicong Yang
2024-10-18 12:48   ` Jonathan Cameron
2024-10-21 12:41     ` Yicong Yang
2024-10-18  9:57 ` [PATCH 3/8] drivers/perf: hisi: Extract topology information to a separate structure Yicong Yang
2024-10-18 12:54   ` Jonathan Cameron
2024-10-21 12:44     ` Yicong Yang
2024-10-18  9:57 ` [PATCH 4/8] drivers/perf: hisi: Add a common function to retrieve topology from firmware Yicong Yang
2024-10-18 12:58   ` Jonathan Cameron
2024-10-18  9:57 ` [PATCH 5/8] drivers/perf: hisi: Refactor the attributes creation Yicong Yang
2024-10-18 13:47   ` Jonathan Cameron
2024-10-21 12:54     ` Yicong Yang
2024-10-18  9:57 ` [PATCH 6/8] drivers/perf: hisi: Export associated CPUs of each PMU through sysfs Yicong Yang
2024-10-18 13:19   ` Jonathan Cameron
2024-10-18  9:57 ` [PATCH 7/8] drivers/perf: hisi: Fix incorrect variable name "hha_pmu" in DDRC PMU driver Yicong Yang
2024-10-18 13:20   ` Jonathan Cameron
2024-10-18  9:57 ` [PATCH 8/8] drivers/perf: hisi: Delete redundant blank line of DDRC PMU Yicong Yang
2024-10-18 13:21   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).