Skip to contentSkip to conversation

iommu/amd: Work around broken IVRS tables

PATCH New Joerg Roedel 1 participant 1 message Jan 23, 2012 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/amd: Work around broken IVRS tables

On some systems the IVRS table does not contain all PCI devices present in the system. In case a device not present in the IVRS table is translated by the IOMMU no DMA is possible from that device by default.
This patch fixes this by removing the DTE entry for every PCI device present in the system and not covered by IVRS.

---
 drivers/iommu/amd_iommu.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/iommu/amd_iommu.c +3 -0
index cce1f03..f75e060 100644
@@ -2863,6 +2863,9 @@ static unsigned device_dma_ops_init(void)
 
 	for_each_pci_dev(pdev) {
 		if (!check_device(&pdev->dev)) {
+
+			iommu_ignore_device(&pdev->dev);
+
 			unhandled += 1;
 			continue;
 		}
Signature · 1 line
1.7.5.4