diff options
author | 2021-12-10 23:19:20 +0100 | |
---|---|---|
committer | 2021-12-16 22:16:40 +0100 | |
commit | 7a823443e9b4ed1ff4a3026d184f09d23fd6d9c9 (patch) | |
tree | dcd2f1d55b5def2178f495208170863bb37e6877 /include/linux/msi.h | |
parent | PCI/MSI: Use msi_desc::msi_index (diff) | |
download | linux-7a823443e9b4ed1ff4a3026d184f09d23fd6d9c9.tar.gz linux-7a823443e9b4ed1ff4a3026d184f09d23fd6d9c9.tar.bz2 linux-7a823443e9b4ed1ff4a3026d184f09d23fd6d9c9.zip |
PCI/MSI: Provide MSI_FLAG_MSIX_CONTIGUOUS
Provide a domain info flag which makes the core code check for a contiguous
MSI-X index on allocation. That's simpler than checking it at some other
domain callback in architecture code.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20211210221814.662401116@linutronix.de
Diffstat (limited to 'include/linux/msi.h')
-rw-r--r-- | include/linux/msi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/msi.h b/include/linux/msi.h index b3d3b0bf59fe..d206239e6fa8 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -362,6 +362,8 @@ enum { MSI_FLAG_LEVEL_CAPABLE = (1 << 6), /* Populate sysfs on alloc() and destroy it on free() */ MSI_FLAG_DEV_SYSFS = (1 << 7), + /* MSI-X entries must be contiguous */ + MSI_FLAG_MSIX_CONTIGUOUS = (1 << 8), }; int msi_domain_set_affinity(struct irq_data *data, const struct cpumask *mask, |