]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefc6e174282f90d81c8dd9d11e4ff2d63421124d
treeb10a445d69819b6afe8a4d91fe4b4afc5377d1f5
parent8d66853233aa4b54f7850a1c95284aa66636f4e7
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]