Skip to content

Commit 2bd843c

Browse files
JamesH65popcornmix
authored andcommitted
AXI performance monitor driver (#2222)
Uses the debugfs I/F to provide access to the AXI bus performance monitors. Requires the new mailbox peripheral access for access to the VPU performance registers, system bus access is done using direct register reads. Signed-off-by: James Hughes <[email protected]> raspberrypi_axi_monitor: suppress warning Suppress the following warning by casting the pointer to and uintptr_t before to u32: Signed-off-by: Matteo Croce <[email protected]> perf/raspberry: Add support for 2712 axi performance monitors Also handle 2711 correctly which has a different configuration from 2835. Signed-off-by: Dom Cobley <[email protected]>
1 parent 7105a17 commit 2bd843c

File tree

3 files changed

+835
-0
lines changed

3 files changed

+835
-0
lines changed

drivers/perf/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ config ALIBABA_UNCORE_DRW_PMU
251251
Support for Driveway PMU events monitoring on Yitian 710 DDR
252252
Sub-system.
253253

254+
config RPI_AXIPERF
255+
depends on ARCH_BCM2835
256+
tristate "RaspberryPi AXI Performance monitors"
257+
default n
258+
help
259+
Say y if you want to use Raspberry Pi AXI performance monitors, m if
260+
you want to build it as a module.
261+
254262
source "drivers/perf/hisilicon/Kconfig"
255263

256264
config MARVELL_CN10K_DDR_PMU

drivers/perf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ obj-$(CONFIG_DWC_PCIE_PMU) += dwc_pcie_pmu.o
3232
obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += arm_cspmu/
3333
obj-$(CONFIG_MESON_DDR_PMU) += amlogic/
3434
obj-$(CONFIG_CXL_PMU) += cxl_pmu.o
35+
obj-$(CONFIG_RPI_AXIPERF) += raspberrypi_axi_monitor.o

0 commit comments

Comments
 (0)