Skip to content

Commit 8404b0f

Browse files
77liuqiwilldeacon
authored andcommitted
drivers/perf: hisi: Add driver for HiSilicon PCIe PMU
PCIe PMU Root Complex Integrated End Point(RCiEP) device is supported to sample bandwidth, latency, buffer occupation etc. Each PMU RCiEP device monitors multiple Root Ports, and each RCiEP is registered as a PMU in /sys/bus/event_source/devices, so users can select target PMU, and use filter to do further sets. Filtering options contains: event - select the event. port - select target Root Ports. Information of Root Ports are shown under sysfs. bdf - select requester_id of target EP device. trig_len - set trigger condition for starting event statistics. trig_mode - set trigger mode. 0 means starting to statistic when bigger than trigger condition, and 1 means smaller. thr_len - set threshold for statistics. thr_mode - set threshold mode. 0 means count when bigger than threshold, and 1 means smaller. Acked-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: John Garry <[email protected]> Signed-off-by: Qi Liu <[email protected]> Reviewed-by: Shaokun Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent c860200 commit 8404b0f

File tree

5 files changed

+962
-0
lines changed

5 files changed

+962
-0
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8607,8 +8607,10 @@ F: drivers/misc/hisi_hikey_usb.c
86078607

86088608
HISILICON PMU DRIVER
86098609
M: Shaokun Zhang <[email protected]>
8610+
M: Qi Liu <[email protected]>
86108611
S: Supported
86118612
W: http://www.hisilicon.com
8613+
F: Documentation/admin-guide/perf/hisi-pcie-pmu.rst
86128614
F: Documentation/admin-guide/perf/hisi-pmu.rst
86138615
F: drivers/perf/hisilicon
86148616

drivers/perf/hisilicon/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ config HISI_PMU
55
help
66
Support for HiSilicon SoC L3 Cache performance monitor, Hydra Home
77
Agent performance monitor and DDR Controller performance monitor.
8+
9+
config HISI_PCIE_PMU
10+
tristate "HiSilicon PCIE PERF PMU"
11+
depends on PCI && ARM64
12+
help
13+
Provide support for HiSilicon PCIe performance monitoring unit (PMU)
14+
RCiEP devices.
15+
Adds the PCIe PMU into perf events system for monitoring latency,
16+
bandwidth etc.

drivers/perf/hisilicon/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
obj-$(CONFIG_HISI_PMU) += hisi_uncore_pmu.o hisi_uncore_l3c_pmu.o \
33
hisi_uncore_hha_pmu.o hisi_uncore_ddrc_pmu.o hisi_uncore_sllc_pmu.o \
44
hisi_uncore_pa_pmu.o
5+
6+
obj-$(CONFIG_HISI_PCIE_PMU) += hisi_pcie_pmu.o

0 commit comments

Comments
 (0)