Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Alan Kilian
kernel: SSE: Found a DeCypher card. kernel: ACPI: PCI interrupt 0000:13:03.0[A] -> GSI 36 (level, low) ->IRQ 217
The first message is in my driver after
pci_find_device()The second is from when I dopci_enable_device(dev);Can you decode the mysterious ACPI message?
Looks like you're requesting the wrong interrupt, 217 is the one your device is actually on. You always have to request the interrupt listed in the PCI device structure. If you're looking at your PCI device's configuration registers to get the IRQ to request, that's wrong, since that is configured by the BIOS assuming PIC IRQ routing, but APIC IRQ routing is entirely different.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Alan Kilian
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.
Signature · 3 lines
Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [email protected] Home Page: http://www.roberthancock.com/