Linux Perf Users
 help / color / mirror / Atom feed
* [PATCH 0/3] perf/x86/amd/uncore: Add common helpers and Hygon support
@ 2026-07-01  3:44 Qi Liu
  2026-07-01  3:44 ` [PATCH 1/3] perf/x86/amd/uncore: Add common PMU helper functions Qi Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Qi Liu @ 2026-07-01  3:44 UTC (permalink / raw)
  To: peterz, mingo, namhyung, alexander.shishkin, jolsa, x86
  Cc: linux-perf-users, linux-kernel, lijing, liuqi

This series adds initial Hygon uncore PMU support.

Hygon uncore PMUs use a programming model close to the AMD uncore PMU,
so this series factors out a small set of common helpers for perf event
handling, counter assignment and per-CPU context management.

The Hygon-specific support is kept in the Hygon driver. This series
supports the Hygon DF and DF IOD PMUs. No Hygon-specific logic is
added to the AMD driver.

There is also an Hygon L3 PMU patch currently under review:
https://lore.kernel.org/lkml/9a4731a46cc0a7645838bd848a40a6574a97bad6.1775548724.git.fuhao@open-hieco.net/
That support can be rebased onto this common helper structure in
follow-up patches.

Changes since RFC:
  - Address sashiko bot review.

Qi Liu (3):
  perf/x86/amd/uncore: Add common PMU helper functions
  perf/x86/amd/uncore: Convert AMD driver to common PMU helpers
  perf/x86/amd/uncore: Add Hygon uncore PMU support

 arch/x86/events/Kconfig             |  17 +
 arch/x86/events/amd/Makefile        |   4 +
 arch/x86/events/amd/hygon_uncore.c  | 551 ++++++++++++++++++++++++++
 arch/x86/events/amd/uncore.c        | 578 ++++------------------------
 arch/x86/events/amd/uncore_common.c | 403 +++++++++++++++++++
 arch/x86/events/amd/uncore_common.h | 114 ++++++
 arch/x86/include/asm/msr-index.h    |   2 +
 arch/x86/include/asm/perf_event.h   |  20 +
 include/linux/cpuhotplug.h          |   3 +
 9 files changed, 1187 insertions(+), 505 deletions(-)
 create mode 100644 arch/x86/events/amd/hygon_uncore.c
 create mode 100644 arch/x86/events/amd/uncore_common.c
 create mode 100644 arch/x86/events/amd/uncore_common.h

-- 
2.34.1



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

end of thread, other threads:[~2026-07-01  7:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01  3:44 [PATCH 0/3] perf/x86/amd/uncore: Add common helpers and Hygon support Qi Liu
2026-07-01  3:44 ` [PATCH 1/3] perf/x86/amd/uncore: Add common PMU helper functions Qi Liu
2026-07-01  4:04   ` sashiko-bot
2026-07-01  7:00   ` Peter Zijlstra
2026-07-01  7:50     ` 答复: " Qi Liu
2026-07-01  7:51       ` Peter Zijlstra
2026-07-01  7:55         ` 答复: " Qi Liu
2026-07-01  3:44 ` [PATCH 2/3] perf/x86/amd/uncore: Convert AMD driver to common PMU helpers Qi Liu
2026-07-01  4:00   ` sashiko-bot
2026-07-01  3:44 ` [PATCH 3/3] perf/x86/amd/uncore: Add Hygon uncore PMU support Qi Liu
2026-07-01  3:56   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox