lkml.org 
[lkml]   [2000]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 2.2.15 driver OK on UP - no ints on SMP (SOLVED)
Date
From
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.159 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site