[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250815034751.3726963-1-fj2767dz@fujitsu.com>
Date: Fri, 15 Aug 2025 12:47:27 +0900
From: Koichi Okuno <fj2767dz@...itsu.com>
To: Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Jonathan Corbet <corbet@....net>,
Catalin Marinas <catalin.marinas@....com>,
Gowthami Thiagarajan <gthiagarajan@...vell.com>,
Linu Cherian <lcherian@...vell.com>,
Robin Murphy <robin.murphy@....com>,
linux-arm-kernel@...ts.infradead.org,
Bjorn Andersson <quic_bjorande@...cinc.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Konrad Dybcio <konradybcio@...nel.org>,
Neil Armstrong <neil.armstrong@...aro.org>,
Arnd Bergmann <arnd@...db.de>,
NĂcolas F. R. A. Prado <nfraprado@...labora.com>,
Thomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org,
Koichi Okuno <fj2767dz@...itsu.com>
Subject: [PATCH v7 0/2] perf: Fujitsu: Add Uncore MAC/PCI PMU driver
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 v7:
- Modify the code as suggested. (Jonathan Cameron)
- Renamed the macros name to make it clear which register it applies to.
- Deleted unused macro.
- Changed some programming styles as suggested.
- I tested using v6.17-rc1 and confirmed that I get the same results
as before the macro name change.
- Link to v6:https://lore.kernel.org/all/20250711071404.2138816-1-fj2767dz@fujitsu.com/
Signed-off-by: Koichi Okuno <fj2767dz@...itsu.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 | 552 ++++++++++++++++++
drivers/perf/fujitsu_pci_pmu.c | 536 +++++++++++++++++
7 files changed, 1233 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
Powered by blists - more mailing lists