|
@@ -146,7 +146,7 @@ struct drm_i915_private *mock_gem_device(void)
|
|
dev_set_name(&pdev->dev, "mock");
|
|
dev_set_name(&pdev->dev, "mock");
|
|
dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
|
|
dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
|
|
|
|
|
|
-#if IS_ENABLED(CONFIG_IOMMU_API)
|
|
|
|
|
|
+#if IS_ENABLED(CONFIG_IOMMU_API) && defined(CONFIG_INTEL_IOMMU)
|
|
/* hack to disable iommu for the fake device; force identity mapping */
|
|
/* hack to disable iommu for the fake device; force identity mapping */
|
|
pdev->dev.archdata.iommu = (void *)-1;
|
|
pdev->dev.archdata.iommu = (void *)-1;
|
|
#endif
|
|
#endif
|