Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

From: Roland Dreier
Date: Wed Feb 23 2005 - 19:42:25 EST


Alan> I ask the card which interrupt line it was given at
Alan> boot-time:

Alan> pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &softp->interrupt_line);

Alan> Then I request an IRQ:

Alan> request_irq(softp->interrupt_line, sseintr, SA_INTERRUPT, "sse", softp);

Don't do that. The kernel may need you to use a different interrupt
number than you read from the PCI config header. Use dev->irq, as in

request_irq(dev->irq, sseintr, SA_SHIRQ | SA_INTERRUPT, "sse", softp);

Also, make sure that you do pci_enable_device(dev) before you look at
dev->irq, since the field will not be initialized until you do that.

- R.
-
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/