On Fri, 30 Nov 2018, Martin Husemann wrote:
On Fri, Nov 30, 2018 at 02:22:37PM -0400, Jared McNeill wrote:The driver can call pci_intr_type on the handle returned by pci_intr_alloc to see what kind of interrupt (INTx/MSI/MSI-X) was negotiated.Yeah, but the fear was that some hardware could either do a single INT or (lots of) MSI{X}, and now you end up with (lots of) INT returned from pci_intr_alloc() and can just use the first. Does this not happen for real world hardware, or is the driver supposed to check with pci_*_count() upfront?
I don't think pci_intr_alloc will ever return more than one INTx..