Skip to content

Instantly share code, notes, and snippets.

@vassilevsky
Created February 17, 2014 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vassilevsky/9055269 to your computer and use it in GitHub Desktop.
Save vassilevsky/9055269 to your computer and use it in GitHub Desktop.
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