Skip to content

Commit 06a3f0c

Browse files
Ryceancurryamalon
authored andcommitted
MIPS: BMIPS: Do not mask IPIs during suspend
Commit a3e6c1e ("MIPS: IRQ: Fix disable_irq on CPU IRQs") fixes an issue where disable_irq did not actually disable the irq. The bug caused our IPIs to not be disabled, which actually is the correct behavior. With the addition of commit a3e6c1e ("MIPS: IRQ: Fix disable_irq on CPU IRQs"), the IPIs were getting disabled going into suspend, thus schedule_ipi() was not being called. This caused deadlocks where schedulable task were not being scheduled and other cpus were waiting for them to do something. Add the IRQF_NO_SUSPEND flag so an irq_disable will not be called on the IPIs during suspend. Signed-off-by: Justin Chen <justinpopo6@gmail.com> Fixes: a3e6c1e ("MIPS: IRQ: Fix disabled_irq on CPU IRQs") Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: linux-mips@linux-mips.org Cc: stable@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/17385/ [jhogan@kernel.org: checkpatch: wrap long lines and fix commit refs] Signed-off-by: James Hogan <jhogan@kernel.org>
1 parent ee2515d commit 06a3f0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/mips/kernel/smp-bmips.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ static void bmips_prepare_cpus(unsigned int max_cpus)
168168
return;
169169
}
170170

171-
if (request_irq(IPI0_IRQ, bmips_ipi_interrupt, IRQF_PERCPU,
172-
"smp_ipi0", NULL))
171+
if (request_irq(IPI0_IRQ, bmips_ipi_interrupt,
172+
IRQF_PERCPU | IRQF_NO_SUSPEND, "smp_ipi0", NULL))
173173
panic("Can't request IPI0 interrupt");
174-
if (request_irq(IPI1_IRQ, bmips_ipi_interrupt, IRQF_PERCPU,
175-
"smp_ipi1", NULL))
174+
if (request_irq(IPI1_IRQ, bmips_ipi_interrupt,
175+
IRQF_PERCPU | IRQF_NO_SUSPEND, "smp_ipi1", NULL))
176176
panic("Can't request IPI1 interrupt");
177177
}
178178

0 commit comments

Comments
 (0)