Skip to content

Commit

Permalink
PCI: Provide sensible IRQ vector alloc/free routines
Browse files Browse the repository at this point in the history
Add a function to allocate and free a range of interrupt vectors, using
MSI-X, MSI or legacy vectors (in that order) based on the capabilities of
the underlying device and PCIe complex.

Additionally a new helper is provided to get the Linux IRQ number for given
device-relative vector so that the drivers don't need to allocate their own
arrays to keep track of the vectors for the multi vector MSI-X case.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alexander Gordeev <agordeev@redhat.com>
  • Loading branch information
Christoph Hellwig authored and Bjorn Helgaas committed Jul 21, 2016
1 parent 3ac020e commit aff1716
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 391 deletions.
Loading

0 comments on commit aff1716

Please sign in to comment.