drivers/perf: Add Apple icestorm/firestorm CPU PMU driver
authorMarc Zyngier <maz@kernel.org>
Tue, 8 Feb 2022 18:56:04 +0000 (18:56 +0000)
committerWill Deacon <will@kernel.org>
Tue, 8 Mar 2022 13:32:48 +0000 (13:32 +0000)
commita639027a1be1d68437e1c2cac6ed16306c84ab3c
treeb10a445d69819b6afe8a4d91fe4b4afc5377d1f5
parent1280f12f56a15abde23503ba876343e5f201c9c2
drivers/perf: Add Apple icestorm/firestorm CPU PMU driver

Add a new, weird and wonderful driver for the equally weird Apple
PMU HW. Although the PMU itself is functional, we don't know much
about the events yet, so this can be considered as yet another
random number generator...

Nonetheless, it can reliably count at least cycles and instructions
in the usually wonky big-little way. For anything else, it of course
supports raw event numbers.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/apple_m1_pmu.h
drivers/perf/Kconfig
drivers/perf/Makefile
drivers/perf/apple_m1_cpu_pmu.c [new file with mode: 0644]