[PATCHv2 0/8] arm_pmu: fix lockdep issues with ACPI systems
mark.rutland at arm.com
Mon Feb 5 08:41:54 PST 2018
Currently the arm_pmu ACPI code is somewhat dubious. It attempts to
allocate memory and manipulate IRQs in a hotplug callback, which is an
These patches (based on the arm64 for-next/core branch ) attempt to
address this by moving work out of hotplug callback, requiring a
reorganisation of the common arm_pmu code.
I've given these a boot-test on a Juno R1 system, both with DT and ACPI.
In either case the PMU works as expected, and lockdep seems happy.
I've pushed the series out to my arm64/acpi-pmu-lockdep branch .
Since v1 :
* Kill arm_pmu_platdata (and ux500 IRQ bouncer)
* Make PMU/CPU binding implicit in hotplug notifier
* Explicitly enable/disable SPIs at hogplug
* Add armpmu_alloc_atomic
* Cleanup per Will's comments
Mark Rutland (8):
ARM: ux500: remove PMU IRQ bouncer
arm_pmu: kill arm_pmu_platdata
arm_pmu: fold platform helpers into platform code
arm_pmu: add armpmu_alloc_atomic()
arm_pmu: acpi: check for mismatched PPIs
arm_pmu: explicitly enable/disable SPIs at hotplug
arm_pmu: note IRQs and PMUs per-cpu
arm_pmu: acpi: request IRQs up-front
arch/arm/mach-ux500/cpu-db8500.c | 35 ---------
drivers/perf/arm_pmu.c | 149 +++++++++++++++++----------------------
drivers/perf/arm_pmu_acpi.c | 61 +++++++++++-----
drivers/perf/arm_pmu_platform.c | 37 ++++++++--
include/linux/perf/arm_pmu.h | 26 ++-----
5 files changed, 142 insertions(+), 166 deletions(-)
More information about the linux-arm-kernel