linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] perf: Fujitsu: Add Uncore MAC/PCI PMU driver
@ 2025-06-17 10:27 Koichi Okuno
  2025-06-17 10:27 ` [PATCH v5 1/2] perf: Fujitsu: Add the Uncore MAC " Koichi Okuno
  2025-06-17 10:27 ` [PATCH v5 2/2] perf: Fujitsu: Add the Uncore PCI " Koichi Okuno
  0 siblings, 2 replies; 10+ messages in thread
From: Koichi Okuno @ 2025-06-17 10:27 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, Jonathan Corbet, Catalin Marinas,
	linux-arm-kernel, Bjorn Andersson, Geert Uytterhoeven,
	Krzysztof Kozlowski, Dmitry Baryshkov, Konrad Dybcio,
	Neil Armstrong, Arnd Bergmann, Nícolas F. R. A. Prado,
	Thomas Gleixner, Peter Zijlstra, Jonathan Cameron, linux-doc,
	linux-kernel, Koichi Okuno

This adds two new dynamic PMUs to the Perf Events framework to program
and control the Uncore MAC/PCI PMUs in Fujitsu chips.

These drivers were created with reference to drivers/perf/qcom_l3_pmu.c.

These drivers export formatting and event information to sysfs so they can
be used by the perf user space tools with the syntaxes:

perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls
perf stat -e mac_iod0_mac0_ch0/event=0x80/ ls

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

Changes in v5:
- Update PMU events for FUJITSU-MONAKA to latest(v1.1) spec.
  The changed events are as follows:
  - Removed events:
    ea-memory-mac-read
    ea-memory-mac-pwrite
  - Description changed events:
    read-count-return
    read-count-return-pftgt-hit
    read-count-return-pftgt-miss
    ea-mac
    ea-memory
    ea-ha
    ea-pci
- Modify the code as suggested. (Jonathan Cameron)
  - Added include mod_devicetable.h.
  - EA events that share the same description as MAC events have been
    removed.
    These events will remain in the specification, but will be removed
    from the code.
    These events will be supported in future enhancements as the
    specification changes.
  - Changed MAC events with the same description to different
    description.
  - Changed some programming styles as suggested.
- Link to v4:https://lore.kernel.org/all/20250116045911.3382537-1-fj5100bi@fujitsu.com/

Koichi Okuno (2):
  perf: Fujitsu: Add the Uncore MAC PMU driver
  perf: Fujitsu: Add the Uncore PCI PMU driver

 .../admin-guide/perf/fujitsu_mac_pmu.rst      |  73 +++
 .../admin-guide/perf/fujitsu_pci_pmu.rst      |  50 ++
 Documentation/admin-guide/perf/index.rst      |   2 +
 drivers/perf/Kconfig                          |  18 +
 drivers/perf/Makefile                         |   2 +
 drivers/perf/fujitsu_mac_pmu.c                | 569 ++++++++++++++++++
 drivers/perf/fujitsu_pci_pmu.c                | 553 +++++++++++++++++
 7 files changed, 1267 insertions(+)
 create mode 100644 Documentation/admin-guide/perf/fujitsu_mac_pmu.rst
 create mode 100644 Documentation/admin-guide/perf/fujitsu_pci_pmu.rst
 create mode 100644 drivers/perf/fujitsu_mac_pmu.c
 create mode 100644 drivers/perf/fujitsu_pci_pmu.c

-- 
2.43.0


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

end of thread, other threads:[~2025-07-14 13:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-17 10:27 [PATCH v5 0/2] perf: Fujitsu: Add Uncore MAC/PCI PMU driver Koichi Okuno
2025-06-17 10:27 ` [PATCH v5 1/2] perf: Fujitsu: Add the Uncore MAC " Koichi Okuno
2025-06-17 10:27 ` [PATCH v5 2/2] perf: Fujitsu: Add the Uncore PCI " Koichi Okuno
2025-06-17 10:36   ` Peter Zijlstra
2025-06-19 13:57     ` Mark Rutland
2025-06-19 14:04       ` Peter Zijlstra
2025-06-19 14:36         ` Mark Rutland
2025-06-19 14:42           ` Peter Zijlstra
2025-07-01  6:13     ` Koichi Okuno (Fujitsu)
2025-07-14 13:32       ` Mark Rutland

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).