Created
February 17, 2014 17:35
-
-
Save vassilevsky/9055269 to your computer and use it in GitHub Desktop.
kcl_iommu.c patch for processors without IOMMU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/src/fglrx-13.251/kcl_iommu.c 2014-02-17 21:29:13.223891465 +0400 | |
+++ /usr/src/fglrx-13.251/kcl_iommu.c 2014-02-17 21:29:54.562852777 +0400 | |
@@ -187,11 +187,13 @@ | |
*/ | |
int ATI_API_CALL KCL_IOMMU_CheckInfo( KCL_PCI_DevHandle pcidev) | |
{ | |
+#ifdef IOMMUV2_SUPPORT | |
struct pci_dev* pdev = (struct pci_dev*)pcidev; | |
if ( pdev->dev.archdata.iommu ) | |
{ | |
return 1; | |
} | |
+#endif | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment