MIPS: DEC: Remove IRQF_ONESHOT reference for IOASIC DMA error IRQs
Subsystems (2)
Maciej W. Rozycki
maintainerPATCH 1/1 MIPS: DEC: Remove IRQF_ONESHOT reference for IOASIC DMA error IRQs
There is no need for IOASIC DMA error interrupts to use the IRQF_ONESHOT flag, because while they do need to have the source cleared only at the conclusion of handling, the action handler supplied is either run in the hardirq context with interrupts disabled at the CPU level or, where IRQ threading has been forced, the primary handler has the IRQF_ONESHOT flag implicitly added and therefore the original action handler, now run as the thread handler and with interrupts enabled in the CPU, is executed with the originating interrupt line masked. Therefore no interrupt will retrigger regardless until the original request has been handled.
--- arch/mips/dec/ioasic-irq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
linux-dec-ioasic-irq-irqf-oneshot.diff
arch/mips/dec/ioasic-irq.c +1 -4
@@ -78,10 +78,7 @@ static struct irq_chip ioasic_dma_irq_ty* cleared. This cannot be done until after a corrective action has been * taken and this also means they will not retrigger. Therefore they use * the `handle_fasteoi_irq' handler that only clears the request on the -* way out. Because MIPS processor interrupt inputs, one of which the I/O -* ASIC is cascaded to, are level-triggered it is recommended that error -* DMA interrupt action handlers are registered with the IRQF_ONESHOT flag -* set so that they are run with the interrupt line masked. +* way out. * * This mask has `1' bits in the positions of informational interrupts. */
Quoted 10 lines · Maciej W. Rozycki
There is no need for IOASIC DMA error interrupts to use the
IRQF_ONESHOTflag, because while they do need to have the source cleared only at the conclusion of handling, the action handler supplied is either run in the hardirq context with interrupts disabled at the CPU level or, where IRQ threading has been forced, the primary handler has theIRQF_ONESHOTflag implicitly added and therefore the original action handler, now run as the thread handler and with interrupts enabled in the CPU, is executed with the originating interrupt line masked. Therefore no interrupt will retrigger regardless until the original request has been handled.
Quoted 3 lines
Sebastian
Quoted 10 lines · Maciej W. Rozycki
There is no need for IOASIC DMA error interrupts to use the
IRQF_ONESHOTflag, because while they do need to have the source cleared only at the conclusion of handling, the action handler supplied is either run in the hardirq context with interrupts disabled at the CPU level or, where IRQ threading has been forced, the primary handler has theIRQF_ONESHOTflag implicitly added and therefore the original action handler, now run as the thread handler and with interrupts enabled in the CPU, is executed with the originating interrupt line masked. Therefore no interrupt will retrigger regardless until the original request has been handled.
Quoted 6 lines
Reported-by Sebastian Andrzej Siewior <[email protected]>Signed-off-by Maciej W. Rozycki <[email protected]>--- arch/mips/dec/ioasic-irq.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
applied to mips-next
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]