|
@@ -146,8 +146,10 @@ 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)
|
|
/* 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
|
|
|
|
|
|
dev_pm_domain_set(&pdev->dev, &pm_domain);
|
|
dev_pm_domain_set(&pdev->dev, &pm_domain);
|
|
pm_runtime_enable(&pdev->dev);
|
|
pm_runtime_enable(&pdev->dev);
|