Re: 2.5.63: 'Debug: sleeping function called from illegal context

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Mar 02 2003 - 16:54:54 EST


On Sun, 2003-03-02 at 10:23, Manfred Spraul wrote:
> sleeping - e.g. on a NUMA arch an IPI to the right node could be necessary.
> What about fixing ide? If ide can't handle early interrupts, then it can use
>
> disable_irq();

disable_irq(n) isn't something all platforms seem to define before the
IRQ is requested, In addition disable_irq() is not supported on some
systems the IDE code supports. I have to have local CPU interrupts
disabled on the CPU at the point the IRQ becomes live.

The former we could probably solve with "SA_DISABLE" to request an IRQ
that is disabled, but I'm not sure how we deal with platforms which
plain and simply do not have 'mask irq' functionality but are using a
level triggered interrupt.

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



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:19 EST