mbox series

[v2,0/2] perf: Fujitsu: Add Uncore MAC/PCI PMU driver

Message ID 20241122061753.2598688-1-fj5100bi@fujitsu.com (mailing list archive)
Headers show
Series perf: Fujitsu: Add Uncore MAC/PCI PMU driver | expand

Message

Yoshihiro Furudera Nov. 22, 2024, 6:17 a.m. UTC
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 Specification URL:
https://github.com/fujitsu/FUJITSU-MONAKA

Changes in v2:
- Remove changes to arch/arm64/configs/defconfig
  (will post patch separately) (Krzysztof Kozlowski)
- Add document file name to Documentation/admin-guide/perf/index.rst
  (Jonathan Cameron)
- Modify files according to the suggestions (Jonathan Cameron)
- Link to v1: https://lore.kernel.org/all/20241108054006.2550856-1-fj5100bi@fujitsu.com/

Yoshihiro Furudera (2):
  perf: Fujitsu: Add the Uncore MAC PMU driver
  perf: Fujitsu: Add the Uncore PCI PMU driver

 .../admin-guide/perf/fujitsu_mac_pmu.rst      |  75 +++
 .../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                | 570 ++++++++++++++++++
 drivers/perf/fujitsu_pci_pmu.c                | 550 +++++++++++++++++
 include/linux/cpuhotplug.h                    |   2 +
 8 files changed, 1269 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