Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/apic/msi: Enable MSI_FLAG_PCI_MSIX_ALLOC_DYN

x86 MSI irqdomains can handle MSI-X allocation post MSI-X enable just out
of the box - on the vector domain and on the remapping domains,

Add the feature flag to the supported feature list

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124232326.787373104@linutronix.de

+1 -1
+1 -1
arch/x86/include/asm/msi.h
··· 63 63 u32 x86_msi_msg_get_destid(struct msi_msg *msg, bool extid); 64 64 65 65 #define X86_VECTOR_MSI_FLAGS_SUPPORTED \ 66 - (MSI_GENERIC_FLAGS_MASK | MSI_FLAG_PCI_MSIX) 66 + (MSI_GENERIC_FLAGS_MASK | MSI_FLAG_PCI_MSIX | MSI_FLAG_PCI_MSIX_ALLOC_DYN) 67 67 68 68 #define X86_VECTOR_MSI_FLAGS_REQUIRED \ 69 69 (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS)