Thread (10 messages) 10 messages, 3 authors, 2025-09-04

Re: [PATCH v7 2/2] perf: Fujitsu: Add the Uncore PCI PMU driver

From: Robin Murphy <robin.murphy@arm.com>
Date: 2025-08-15 13:02:07
Also in: linux-doc, lkml

On 2025-08-15 4:47 am, Koichi Okuno wrote:
This adds a new dynamic PMU to the Perf Events framework to program and
control the Uncore PCI PMUs in Fujitsu chips.

This driver was created with reference to drivers/perf/qcom_l3_pmu.c.

This driver exports formatting and event information to sysfs so it can
be used by the perf user space tools with the syntaxes:

perf stat -e pci_iod0_pci0/ea-pci/ ls
perf stat -e pci_iod0_pci0/event=0x80/ ls

FUJITSU-MONAKA PMU Events Specification v1.1 URL:
https://github.com/fujitsu/FUJITSU-MONAKA

Signed-off-by: Koichi Okuno <redacted>
---
  .../admin-guide/perf/fujitsu_pci_pmu.rst      |  50 ++
  Documentation/admin-guide/perf/index.rst      |   1 +
  drivers/perf/Kconfig                          |   9 +
  drivers/perf/Makefile                         |   1 +
  drivers/perf/fujitsu_pci_pmu.c                | 536 ++++++++++++++++++
 From a quick side-by-side skim, this is a copy-paste of the exact same 
driver from patch #1 with s/mac/pci/g applied. Please don't do that. If 
the hardware is functionally the same, then it should just be a single 
driver that can then pick which PMU name and set of event alias 
attributes to use for a given instance based on the ACPI HID match 
(and/or any other ID register info you may have.)

Thanks,
Robin.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help