[PATCH 2/2] vmd: Assign vector zero to all bridges

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We don't want slower IRQ handlers impacting faster devices that happen
to be assigned the same VMD interrupt vector. The driver was trying to
separate such devices by checking if MSI-x wasn't used, but really we
just don't want to end devices to share with bridges. Most bridges may
use MSI currently, so that criteria happened to work, but newer ones may
use MSI-x, so this patch explicity checks the device type when choosing
a vector.

Signed-off-by: Keith Busch <keith.busch@xxxxxxxxx>
---
 drivers/pci/host/vmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c
index 8cddf30..031eef2 100644
--- a/drivers/pci/host/vmd.c
+++ b/drivers/pci/host/vmd.c
@@ -183,7 +183,7 @@ static struct vmd_irq_list *vmd_next_irq(struct vmd_dev *vmd, struct msi_desc *d
 	int i, best = 1;
 	unsigned long flags;
 
-	if (!desc->msi_attrib.is_msix || vmd->msix_count == 1)
+	if (pci_is_bridge(msi_desc_to_pci_dev(desc)) || vmd->msix_count == 1)
 		return &vmd->irqs[0];
 
 	raw_spin_lock_irqsave(&list_lock, flags);
-- 
2.5.5




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux