Re: 2.2.15 driver OK on UP - no ints on SMP (SOLVED)

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Jul 06 2000 - 12:54:59 EST


> So how can my driver my driver work fine in UP and not in SMP when
> using the pci_read_config* calls?
>
> My workaround is to use
> struct pci_dev *dev;
> and when pci_find_device() inits dev, I use dev->irq instead of
> pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &irq);
>
> Can anyone explain this?

On an SMP machine PCI interrupts are APIC routed and tend to appear higher
than 16. The value in the PCI_INTERRUPT_LINE isnt what you need to know as
it is before the apic directs it. dev->irq is adjusted automatically for you
by the OS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:19 EST