Roland Dreier wrote:
quoted text > > I am now wondering whether the usage of MSI would help in this case and
> > that i should be using enable_msi before request_irq ?
>
> MSI interrupts are never shared. So if pci_enable_msi() succeeds, you
> can be sure that the interrupts you get with that IRQ number are
> coming from your device.
>
i presume then i shouldn't be using IRQF_SHARED, if using MSI.
Another question would be if the device supports multiple messages, MSIX
should be used ?
In such a context, if i request for say more than the messages that i
need, say i request 16 messages, but use only 1 or 2, that does bear any
consequences ?
quoted text > But using MSI does not work on all systems, so your driver needs to
> work with standard (possibly shared) INTx interrupts too. And you
> should probably provide at least a module flag to disable the use of
> MSI, to avoid problems on buggy systems.
I should probably look for CONFIG_PCI_MSI and check whether the system
supports MSI pci_enable_msi() ?
-
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
PCIE , Manu Abraham , (Wed May 23, 5:15 am)
Re: PCIE , Greg KH , (Wed May 23, 8:59 am)
Re: PCIE , Manu Abraham , (Wed May 23, 1:59 pm)
Re: PCIE , Roland Dreier , (Wed May 23, 2:10 pm)
Re: PCIE , Manu Abraham , (Wed May 23, 3:11 pm)
Re: PCIE , Roland Dreier , (Wed May 23, 3:23 pm)
Re: PCIE , Manu Abraham , (Wed May 23, 4:03 pm)
Re: PCIE , Roland Dreier , (Wed May 23, 4:51 pm)
Re: PCIE , Manu Abraham , (Wed May 23, 5:07 pm)
Re: PCIE , Manu Abraham , (Thu May 24, 3:32 pm)
Re: PCIE , Roland Dreier , (Thu May 24, 8:25 pm)
Re: PCIE , Manu Abraham , (Sat May 26, 8:03 am)
Re: PCIE , Grant Grundler , (Sat May 26, 11:28 am)
Re: PCIE , Manu Abraham , (Sat May 26, 12:27 pm)
Re: PCIE , David Miller , (Sat May 26, 3:49 pm)
Re: PCIE , Manu Abraham , (Sat May 26, 3:57 pm)
Re: PCIE , Grant Grundler , (Sat May 26, 4:55 pm)
Re: PCIE , David Miller , (Sat May 26, 5:00 pm)
Re: PCIE , Grant Grundler , (Sat May 26, 5:16 pm)
Re: PCIE , David Miller , (Sat May 26, 5:30 pm)
Re: PCIE , Manu Abraham , (Sat May 26, 6:01 pm)
Re: PCIE , Grant Grundler , (Sat May 26, 6:49 pm)
Re: PCIE , H. Peter Anvin , (Sat May 26, 7:34 pm)
Re: PCIE , David Miller , (Sun May 27, 12:40 am)
Re: PCIE , Manu Abraham , (Sun May 27, 1:28 pm)
Re: PCIE , Manu Abraham , (Sun May 27, 1:31 pm)
Re: PCIE , Roland Dreier , (Sun May 27, 6:03 pm)
Re: PCIE , Roland Dreier , (Sun May 27, 6:05 pm)
Re: PCIE , Roland Dreier , (Sun May 27, 6:10 pm)
Re: PCIE , Roland Dreier , (Sun May 27, 6:15 pm)
Re: PCIE , Manu Abraham , (Sun May 27, 6:25 pm)
Re: PCIE , Manu Abraham , (Sun May 27, 7:04 pm)
Re: PCIE , Roland Dreier , (Sun May 27, 7:24 pm)
Re: PCIE , Manu Abraham , (Sun May 27, 7:47 pm)
Re: PCIE , David Miller , (Sun May 27, 7:54 pm)
Re: PCIE , Grant Grundler , (Sun May 27, 9:18 pm)
Re: PCIE , H. Peter Anvin , (Sun May 27, 10:22 pm)
Re: PCIE , H. Peter Anvin , (Sun May 27, 10:23 pm)