Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kcl_iommu.c patch for processors without IOMMU
--- /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