Merge tag 'irq_urgent_for_v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fix from Borislav Petkov: - Have msix_mask_all() check a global control which says whether MSI-X masking should be done and thus make it usable on Xen-PV too * tag 'irq_urgent_for_v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: PCI/MSI: Skip masking MSI-X on Xen PV
This commit is contained in:
@@ -776,6 +776,9 @@ static void msix_mask_all(void __iomem *base, int tsize)
|
|||||||
u32 ctrl = PCI_MSIX_ENTRY_CTRL_MASKBIT;
|
u32 ctrl = PCI_MSIX_ENTRY_CTRL_MASKBIT;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (pci_msi_ignore_mask)
|
||||||
|
return;
|
||||||
|
|
||||||
for (i = 0; i < tsize; i++, base += PCI_MSIX_ENTRY_SIZE)
|
for (i = 0; i < tsize; i++, base += PCI_MSIX_ENTRY_SIZE)
|
||||||
writel(ctrl, base + PCI_MSIX_ENTRY_VECTOR_CTRL);
|
writel(ctrl, base + PCI_MSIX_ENTRY_VECTOR_CTRL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user