Re: [PATCH] powerpc/64: Don't recurse irq replay

2023-02-15 Thread Michael Ellerman
On Sat, 21 Jan 2023 20:26:18 +1000, Nicholas Piggin wrote: > Interrupt handlers called by soft-pending irq replay code can run > softirqs, softirq replay enables and disables local irqs, which allows > interrupts to come in including soft-masked interrupts, and it can > cause pending irqs to be

[PATCH] powerpc/64: Don't recurse irq replay

2023-01-21 Thread Nicholas Piggin
Interrupt handlers called by soft-pending irq replay code can run softirqs, softirq replay enables and disables local irqs, which allows interrupts to come in including soft-masked interrupts, and it can cause pending irqs to be replayed again. That makes the soft irq replay state machine and

[RFC PATCH] powerpc/64: Don't recurse irq replay

2022-10-06 Thread Nicholas Piggin
Use irq_enter/irq_exit around irq replay to prevent softirqs running while interrupts are being replayed. Instead they run at the irq_exit() call where reentrancy is less problematic. A new PACA_IRQ_REPLAYING is added to prevent interrupt handlers hard-enabling EE while being replayed. --- I