PCI/MSI: Provide pci_ims_alloc/free_irq()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Nov 2022 23:26:31 +0000 (00:26 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 5 Dec 2022 21:22:35 +0000 (22:22 +0100)
commitc9e5bea273834a63b5e9ba90ad94b305ba50704e
treeef5fba1bb987636dd395aab8045ed5d91afcf5cd
parent0194425af0c87acaad457989a2c6d90dba58e776
PCI/MSI: Provide pci_ims_alloc/free_irq()

Single vector allocation which allocates the next free index in the IMS
space. The free function releases.

All allocated vectors are released also via pci_free_vectors() which is
also releasing MSI/MSI-X vectors.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124232326.961711347@linutronix.de
drivers/pci/msi/api.c
include/linux/pci.h