Re: lockdep and threaded IRQs (was: ...)

From: Ingo Molnar
Date: Tue Mar 03 2009 - 06:19:47 EST



* Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
>
> > > _without_ IRQF_ENABLED: where an IRQ handler can take a long
> > > time to execute, the handler can be converted to a threaded
> > > IRQ handler - where it's fine to enable IRQs as there are no
> > > stack nesting issues.
> >
> > Only if you can mask the interrupt on the APIC without
> > losing it or having the APIC throw a fit.
>
> Hm, that reads like the boot IRQ erratas of certain chipsets -
> the APIC could throw a fit essentially locking up the system.
> FYI, we have fixes for that upstream already.
>
> Do you have any description about that problem, which hardware
> it affects, whether it's manufactured today and any (ballpark
> figure) estimation about the Linux installed base on it? Can
> they live with the quirk flag?

btw., i definitely do not say that threaded IRQ handlers will
work in each an every case (it changes the hardware programming
pattern and as such it can bring out new erratas) so i
definitely agree with the argument that the conversion has to be
careful and case by case.

The plan Peter outlined looks sane. In case you worry about a
forced removal of irq-enable - you should not.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/