Message ID | 1519661456-30445-1-git-send-email-will.deacon@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Feb 26, 2018 at 04:10:56PM +0000, Will Deacon wrote: > Commit 6de3f79112cc ("arm_pmu: explicitly enable/disable SPIs at hotplug") > moved all of the arm_pmu IRQ enable/disable calls to the CPU hotplug hooks, > regardless of whether they are implemented as PPIs or SPIs. This can > lead to us sleeping from atomic context due to disable_irq blocking: > Acked-by: Acked-by: Mark Rutland <mark.rutland@arm.com> I think something went wrong here when you applied the tag. ;) Mark.
On Wed, Feb 28, 2018 at 2:57 PM, Mark Rutland <mark.rutland@arm.com> wrote: > On Mon, Feb 26, 2018 at 04:10:56PM +0000, Will Deacon wrote: >> Commit 6de3f79112cc ("arm_pmu: explicitly enable/disable SPIs at hotplug") >> moved all of the arm_pmu IRQ enable/disable calls to the CPU hotplug hooks, >> regardless of whether they are implemented as PPIs or SPIs. This can >> lead to us sleeping from atomic context due to disable_irq blocking: > >> Acked-by: Acked-by: Mark Rutland <mark.rutland@arm.com> > > I think something went wrong here when you applied the tag. ;) In case of respinning: Fixes: 6de3f79112cc26bf ("arm_pmu: explicitly enable/disable SPIs at hotplug") Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
On Wed, Feb 28, 2018 at 03:23:28PM +0100, Geert Uytterhoeven wrote: > On Wed, Feb 28, 2018 at 2:57 PM, Mark Rutland <mark.rutland@arm.com> wrote: > > On Mon, Feb 26, 2018 at 04:10:56PM +0000, Will Deacon wrote: > >> Commit 6de3f79112cc ("arm_pmu: explicitly enable/disable SPIs at hotplug") > >> moved all of the arm_pmu IRQ enable/disable calls to the CPU hotplug hooks, > >> regardless of whether they are implemented as PPIs or SPIs. This can > >> lead to us sleeping from atomic context due to disable_irq blocking: > > > >> Acked-by: Acked-by: Mark Rutland <mark.rutland@arm.com> > > > > I think something went wrong here when you applied the tag. ;) > > In case of respinning: > Fixes: 6de3f79112cc26bf ("arm_pmu: explicitly enable/disable SPIs at hotplug") This is already pushed to fixes/core, so I'll leave it up to Catalin whether he wants to rebase it for that. Will
diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c index 0c2ed11c0603..f63db346c219 100644 --- a/drivers/perf/arm_pmu.c +++ b/drivers/perf/arm_pmu.c @@ -638,7 +638,7 @@ static int arm_perf_teardown_cpu(unsigned int cpu, struct hlist_node *node) if (irq_is_percpu_devid(irq)) disable_percpu_irq(irq); else - disable_irq(irq); + disable_irq_nosync(irq); } per_cpu(cpu_armpmu, cpu) = NULL;