Re: [PATCH] handle IRQ_PENDING for simple irq handler
Note, that should have been [PATCH RT], this is NOT for mainline! -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] handle IRQ_PENDING for simple irq handler
With the IO-APIC pcix hack (level=>edge masking), we can receive interrupts while masked. But these interrupts might be missed. Also, normal "simple" interrupts might be missed too on leaving of thread handler. Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> Index: linux-2.6.21-rt-hack/kernel/irq/manage.c === --- linux-2.6.21-rt-hack.orig/kernel/irq/manage.c +++ linux-2.6.21-rt-hack/kernel/irq/manage.c @@ -628,14 +628,17 @@ static void thread_simple_irq(irq_desc_t unsigned int irq = desc - irq_desc; irqreturn_t action_ret; - if (action && !desc->depth) { + do { + if (!action || desc->depth) + break; + desc->status &= ~IRQ_PENDING; spin_unlock(>lock); action_ret = handle_IRQ_event(irq, action); cond_resched_hardirq_context(); spin_lock_irq(>lock); if (!noirqdebug) note_interrupt(irq, desc, action_ret); - } + } while (desc->status & IRQ_PENDING); desc->status &= ~IRQ_INPROGRESS; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH] handle IRQ_PENDING for simple irq handler
Note, that should have been [PATCH RT], this is NOT for mainline! -- Steve -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] handle IRQ_PENDING for simple irq handler
With the IO-APIC pcix hack (level=edge masking), we can receive interrupts while masked. But these interrupts might be missed. Also, normal simple interrupts might be missed too on leaving of thread handler. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] Index: linux-2.6.21-rt-hack/kernel/irq/manage.c === --- linux-2.6.21-rt-hack.orig/kernel/irq/manage.c +++ linux-2.6.21-rt-hack/kernel/irq/manage.c @@ -628,14 +628,17 @@ static void thread_simple_irq(irq_desc_t unsigned int irq = desc - irq_desc; irqreturn_t action_ret; - if (action !desc-depth) { + do { + if (!action || desc-depth) + break; + desc-status = ~IRQ_PENDING; spin_unlock(desc-lock); action_ret = handle_IRQ_event(irq, action); cond_resched_hardirq_context(); spin_lock_irq(desc-lock); if (!noirqdebug) note_interrupt(irq, desc, action_ret); - } + } while (desc-status IRQ_PENDING); desc-status = ~IRQ_INPROGRESS; } -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/