Thread (83 messages) flat view 83 messages, 10 authors, 2022-01-31

Re: [patch V3 26/35] genirq/msi: Provide interface to retrieve Linux interrupt number

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-12-13 14:22:58
Also in: dmaengine, linux-iommu, linux-pci, linuxppc-dev, lkml, xen-devel

On Fri, Dec 10, 2021 at 11:19:23PM +0100, Thomas Gleixner wrote:
From: Thomas Gleixner <redacted>

This allows drivers to retrieve the Linux interrupt number instead of
fiddling with MSI descriptors.

msi_get_virq() returns the Linux interrupt number or 0 in case that there
is no entry for the given MSI index.

Signed-off-by: Thomas Gleixner <redacted>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
V2: Simplify the implementation and let PCI deal with the PCI specialities - Marc
---
 include/linux/msi.h |    2 ++
 kernel/irq/msi.c    |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help