Re: Race in setup_irq?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dmitry Adamushko
Date: Sunday, November 11, 2007 - 2:11 pm

On 11/11/2007, Adrian McMenamin <lkmladrian@gmail.com> wrote

I guess, you are referring to setup_irq() (the line without a
particular kernel version doesn't make much sense).

What do you mean by "never seems to return"? Does your machine hang?

If so, the reason might be some kind of (logical) error in your ISR.
spin_unlock_irqrestore() unmasks the interrupts and your target device
might have already generated an interrupt by this moment (sure, it
depends on the initialization logic of your code and device spec.)...
--> ISR runs and due to some error e.g. loops endlessly/deadlocks/etc.

Tried placing printk() at the beginning of ISR?

-- 
Best regards,
Dmitry Adamushko
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Race in setup_irq?, Adrian McMenamin, (Sun Nov 11, 12:52 pm)
Re: Race in setup_irq?, Dmitry Adamushko, (Sun Nov 11, 2:11 pm)
Re: Race in setup_irq?, Adrian McMenamin, (Sun Nov 11, 2:21 pm)