Skip to contentSkip to conversation

genirq: Resend pending interrupts after handle_simple_irq()

PATCH Applied Avi Weiss 2 participants 2 messages Nov 1 – Nov 9

Subsystems (2)
lore
Share & tools
lore

Avi Weiss

author
#0 lore raw

PATCH v2 1/1 genirq: Resend pending interrupts after handle_simple_irq()

Commit 2c9e7f857400 ("genirq: Teach handle_simple_irq() to resend an in-progress interrupt") sets IRQS_PENDING when an interrupt arrives while another CPU is handling the IRQ. However, handle_simple_irq() does not check for the pending interrupt after the initial handling completes, so no resend is requested and the interrupt remains pending without being signalled.

Check IRQS_PENDING after handle_irq_event() and request a resend, as handle_fasteoi_irq() already does.

Fixes 2c9e7f857400 ("genirq: Teach handle_simple_irq() to resend an in-progress interrupt")

---
Changes in v2:
- clarify commit message - mainly that the interrupt remains pending and resend signalling is missing, as pointed out by Marc Zyngier.

Related 2025 patch/review:
https://lore.kernel.org/r/[email protected]

 kernel/irq/chip.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/irq/chip.c +2 -0
index de754db414d1..4a131dd72196 100644
@@ -626,6 +626,8 @@ void handle_simple_irq(struct irq_desc *desc)
 
 	kstat_incr_irqs_this_cpu(desc);
 	handle_irq_event(desc);
+	if (unlikely(desc->istate & IRQS_PENDING))
+		check_irq_resend(desc, false);
 }
 EXPORT_SYMBOL_GPL(handle_simple_irq);
 

base-commit: e9954f3fbddd25e1a01b7e5a0b72fb8b564204e0

Signature · 1 line
2.53.0
merge bot Applied
#1 lore raw
The following commit has been merged into the irq/core branch of tip:

The following commit has been merged into the irq/core branch of tip:

Commit-ID:     1aed0e209f0c3bb1f28d4d69c2fc23528d30981e
Gitweb:        https://git.kernel.org/tip/1aed0e209f0c3bb1f28d4d69c2fc23528d30981e
Author:        Avi Weiss <[email protected]>
AuthorDate:    Sun, 01 Nov 2026 12:16:35 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Mon, 09 Nov 2026 14:59:39 +01:00

genirq: Resend pending interrupts after handle_simple_irq()

Commit 2c9e7f857400 ("genirq: Teach handle_simple_irq() to resend an in-progress interrupt") sets IRQS_PENDING when an interrupt arrives while another CPU is handling the IRQ. However, handle_simple_irq() does not check for the pending interrupt after the initial handling completes, so no resend is requested and the interrupt remains pending without being signalled.

Check IRQS_PENDING after handle_irq_event() and request a resend, as handle_fasteoi_irq() already does.

Fixes 2c9e7f857400 ("genirq: Teach handle_simple_irq() to resend an in-progress interrupt")
---
 kernel/irq/chip.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/irq/chip.c +2 -0
index de754db..4a131dd 100644
@@ -626,6 +626,8 @@ void handle_simple_irq(struct irq_desc *desc)
 
 	kstat_incr_irqs_this_cpu(desc);
 	handle_irq_event(desc);
+	if (unlikely(desc->istate & IRQS_PENDING))
+		check_irq_resend(desc, false);
 }
 EXPORT_SYMBOL_GPL(handle_simple_irq);