[ PATCH ] PowerPC cascade UIC IRQ handler fix.
Valentine Barshak
vbarshak at ru.mvista.com
Fri Aug 3 21:09:29 EST 2007
Josh Boyer wrote:
> On Thu, 2 Aug 2007 13:48:48 +1000
> David Gibson <david at gibson.dropbear.id.au> wrote:
>
>> On Mon, Jul 30, 2007 at 08:35:17PM +0400, Valentine Barshak wrote:
>>> PPC44x cascade UIC irq handler fix.
>>>
>>> According to PPC44x UM, if an interrupt is configured as
>>> level-sensitive, and a clear is attempted on the UIC_SR, the UIC_SR
>>> field is not cleared if the incoming interrupt signal is at the
>>> asserted polarity. This causes us to enter a cascade handler twice,
>>> since we first ack parent UIC interrupt and ack child UIC one after
>>> that. The patch checks child UIC msr value and returns IRQ_HANDLED
>>> if there're no pending interrupts. Otherwise we get a kernel panic
>>> with a "Fatal exception in interrupt" (illegal vector).
>>> The patch also fixes status flags.
>>>
>>> Signed-off-by: Valentine Barshak <vbarshak at ru.mvista.com>
>> Hrm... This doesn't seem like the right fix to me. Instead, I think
>> the cascaded IRQ handler should ack the interrupt on the child first.
>> I'm a little surprised it doesn't at the moment.
>
> Agreed. Anyone going to hack up a patch for that?
>
> josh
Anyways, I don't see why kernel should panic if we get a spurious interrupt.
More information about the Linuxppc-dev
mailing list