[PATCH 1/2] PCI: Provide sensible irq vector alloc/free routines
Bjorn Helgaas
helgaas at kernel.org
Mon May 16 12:39:29 PDT 2016
On Mon, May 09, 2016 at 05:46:31PM -0500, Bjorn Helgaas wrote:
> On Thu, May 05, 2016 at 04:04:55PM +0200, Christoph Hellwig wrote:
> > Add a new pci_alloc_irq_vectors helper that allocates MSI-X or multi-MSI
> > vectors for PCI device while isolating the driver from the arcane details.
> >
> > This include handling both MSI-X, MSI and legacy interrupt fallbacks
> > transparently, automatic capping to the available vectors as well as storing
> > the information needed for request_irq in the PCI device itself so that
> > a lot of boiler plate code in the driver can be removed.
> >
> > In the future this will also allow us to automatically set up spreading
> > for interrupt vectors without having to duplicate it in all the drivers.
> >
> > Signed-off-by: Christoph Hellwig <hch at lst.de>
>
> Thanks, I applied this to pci/msi for v4.7.
Given the subsequent discussion, it seems a little premature to merge
this for v4.7, so I'm dropping this for now.
Bjorn
More information about the Linux-nvme
mailing list