All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/8] arm_pmu: fix lockdep issues with ACPI systems
@ 2018-02-05 16:41 Mark Rutland
  2018-02-05 16:41 ` [PATCHv2 1/8] ARM: ux500: remove PMU IRQ bouncer Mark Rutland
                   ` (7 more replies)
  0 siblings, 8 replies; 26+ messages in thread
From: Mark Rutland @ 2018-02-05 16:41 UTC (permalink / raw)
  To: linux-arm-kernel

Currently the arm_pmu ACPI code is somewhat dubious. It attempts to
allocate memory and manipulate IRQs in a hotplug callback, which is an
atomic context.

These patches (based on the arm64 for-next/core branch [1]) 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 [2].

Since v1 [3]:
* 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

Thanks,
Mark.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=for-next/core
[2] https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=arm64/acpi-pmu-lockdep
[3] https://lkml.kernel.org/r/20171101141239.45340-1-mark.rutland at arm.com

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(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2018-02-26 16:01 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 16:41 [PATCHv2 0/8] arm_pmu: fix lockdep issues with ACPI systems Mark Rutland
2018-02-05 16:41 ` [PATCHv2 1/8] ARM: ux500: remove PMU IRQ bouncer Mark Rutland
2018-02-05 19:05   ` Linus Walleij
2018-02-06 11:26     ` Mark Rutland
2018-02-05 16:41 ` [PATCHv2 2/8] arm_pmu: kill arm_pmu_platdata Mark Rutland
2018-02-05 16:41 ` [PATCHv2 3/8] arm_pmu: fold platform helpers into platform code Mark Rutland
2018-02-05 16:41 ` [PATCHv2 4/8] arm_pmu: add armpmu_alloc_atomic() Mark Rutland
2018-02-05 16:41 ` [PATCHv2 5/8] arm_pmu: acpi: check for mismatched PPIs Mark Rutland
2018-02-05 16:42 ` [PATCHv2 6/8] arm_pmu: explicitly enable/disable SPIs at hotplug Mark Rutland
2018-02-26 15:16   ` Geert Uytterhoeven
2018-02-26 15:16     ` Geert Uytterhoeven
2018-02-26 15:22     ` Will Deacon
2018-02-26 15:22       ` Will Deacon
2018-02-26 15:56       ` Geert Uytterhoeven
2018-02-26 15:56         ` Geert Uytterhoeven
2018-02-26 16:01       ` Mark Rutland
2018-02-26 16:01         ` Mark Rutland
2018-02-05 16:42 ` [PATCHv2 7/8] arm_pmu: note IRQs and PMUs per-cpu Mark Rutland
2018-02-05 17:07   ` Robin Murphy
2018-02-05 17:13     ` Mark Rutland
2018-02-14 13:11   ` Will Deacon
2018-02-14 13:24     ` Mark Rutland
2018-02-14 13:26       ` Will Deacon
2018-02-14 13:45         ` Mark Rutland
2018-02-14 18:22         ` Mark Rutland
2018-02-05 16:42 ` [PATCHv2 8/8] arm_pmu: acpi: request IRQs up-front Mark Rutland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.