Skip to content

Commit 9b4a824

Browse files
Jon DerrickLorenzo Pieralisi
authored andcommitted
iommu/vt-d: Use Real PCI DMA device for IRTE
VMD retransmits child device MSI-X with the VMD endpoint's requester-id. In order to support direct interrupt remapping of VMD child devices, ensure that the IRTE is programmed with the VMD endpoint's requester-id using pci_real_dma_dev(). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jon Derrick <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Lu Baolu <[email protected]> Acked-by: Joerg Roedel <[email protected]>
1 parent a38fd87 commit 9b4a824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iommu/intel/irq_remapping.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,8 @@ static void intel_irq_remapping_prepare_irte(struct intel_ir_data *data,
12801280
break;
12811281
case X86_IRQ_ALLOC_TYPE_PCI_MSI:
12821282
case X86_IRQ_ALLOC_TYPE_PCI_MSIX:
1283-
set_msi_sid(irte, msi_desc_to_pci_dev(info->desc));
1283+
set_msi_sid(irte,
1284+
pci_real_dma_dev(msi_desc_to_pci_dev(info->desc)));
12841285
break;
12851286
default:
12861287
BUG_ON(1);

0 commit comments

Comments
 (0)