Re: [PATCH -v2 9/9] x86: handle HW IOMMU initialization failuregracely

From: Ingo Molnar
Date: Tue Nov 10 2009 - 06:27:43 EST



this patch needed the fixlet below. (it could be cleaned up later
perhaps to not need the #ifdef - but wanted to keep it simple for now.)

Ingo

------------->
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
index c7a8bcf..43d755a 100644
--- a/drivers/pci/intel-iommu.c
+++ b/drivers/pci/intel-iommu.c
@@ -3252,7 +3252,9 @@ int __init intel_iommu_init(void)
"PCI-DMA: Intel(R) Virtualization Technology for Directed I/O\n");

init_timer(&unmap_timer);
+#ifdef CONFIG_SWIOTLB
swiotlb = 0;
+#endif
dma_ops = &intel_dma_ops;

init_iommu_sysfs();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/