debugging "irq 7: nobody cared" in my module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

What can cause "irq x: nobody cared" ? On exit from my IRQ handler, I am
checking to make sure that there are no residual/pending unhandled
events on exit. Here is part of my handler:

irqreturn_t scx200_acb_irq(int irq_no, void *dev_id, struct pt_regs *regs)
{
    struct scx200_acb_iface *iface = dev_id;
    unsigned long flags;
    spin_lock_irqsave(lock, flags);
    if (inb(ACBST)) {
//      tasklet_schedule(&iface->tasklet);
        scx200_acb_machine(iface, inb(ACBST));
        if (iface->state == state_idle)     /* Finished */
            wake_up_interruptible(&iface->acb_queue);
    } else {
        /* Should never get here */
        printk("causeless IRQ!\n");
        /* Reset the ACB to clear any pending IRQ */
        outb((inb(ACBCTL2) & 0xfe), ACBCTL2);
        outb((inb(ACBCTL2) | 0x01), ACBCTL2);
    }
    /* Check to see if some event was not handled */
    if (inb(ACBST) & 0xBC)
        printk("============== ACBST=%#x ===============\n",inb(ACBST));
    spin_unlock_irqrestore(lock, flags);
    return IRQ_RETVAL(0);
}

I've also had the problem when I move everything into a tasklet, and
just have a very short IRQ handler.

Many thanks,
Thomas
-
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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux