Skip to content

Commit

Permalink
AXI performance monitor driver (#2222)
Browse files Browse the repository at this point in the history
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 <james.hughes@raspberrypi.org>

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 <mcroce@redhat.com>
  • Loading branch information
JamesH65 authored and popcornmix committed Mar 21, 2022
1 parent 063502f commit 7903ec0
Show file tree
Hide file tree
Showing 3 changed files with 646 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/perf/Kconfig
Expand Up @@ -146,6 +146,14 @@ config MARVELL_CN10K_TAD_PMU
Provides support for Last-Level cache Tag-and-data Units (LLC-TAD)
performance monitors on CN10K family silicons.

config RPI_AXIPERF
depends on ARCH_BCM2835
tristate "RaspberryPi AXI Performance monitors"
default n
help
Say y if you want to use Raspberry Pi AXI performance monitors, m if
you want to build it as a module.

source "drivers/perf/hisilicon/Kconfig"

endmenu
1 change: 1 addition & 0 deletions drivers/perf/Makefile
Expand Up @@ -15,3 +15,4 @@ obj-$(CONFIG_XGENE_PMU) += xgene_pmu.o
obj-$(CONFIG_ARM_SPE_PMU) += arm_spe_pmu.o
obj-$(CONFIG_ARM_DMC620_PMU) += arm_dmc620_pmu.o
obj-$(CONFIG_MARVELL_CN10K_TAD_PMU) += marvell_cn10k_tad_pmu.o
obj-$(CONFIG_RPI_AXIPERF) += raspberrypi_axi_monitor.o

0 comments on commit 7903ec0

Please sign in to comment.