From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 0/8] arm_pmu: fix lockdep issues with ACPI systems
Date: Mon, 5 Feb 2018 16:41:54 +0000 [thread overview]
Message-ID: <20180205164202.26502-1-mark.rutland@arm.com> (raw)
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
next reply other threads:[~2018-02-05 16:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 16:41 Mark Rutland [this message]
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:22 ` Will Deacon
2018-02-26 15:56 ` Geert Uytterhoeven
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180205164202.26502-1-mark.rutland@arm.com \
--to=mark.rutland@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).