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

From: Robert Hancock
Date: Wed Feb 23 2005 - 19:15:46 EST


Alan Kilian wrote:
Maybe that's it.

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

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

Then I request an IRQ:

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

Yeah, that's wrong. Should be request_irq(dev->irq, ... )

PCI_INTERRUPT_LINE is assigned by the BIOS and has nothing to do with the routing used in APIC mode. That's why it works with noapic mode since then the routing is the same as the BIOS assumed.

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@xxxxxxxxxxxxx
Home Page: http://www.roberthancock.com/


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