We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eadd88 commit 4c08f01Copy full SHA for 4c08f01
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -666,11 +666,12 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv)
666
[vmw_dma_map_populate] = "Caching DMA mappings.",
667
[vmw_dma_map_bind] = "Giving up DMA mappings early."};
668
669
- /* TTM currently doesn't fully support SEV encryption. */
670
- if (cc_platform_has(CC_ATTR_MEM_ENCRYPT))
671
- return -EINVAL;
672
-
673
- if (vmw_force_coherent)
+ /*
+ * When running with SEV we always want dma mappings, because
+ * otherwise ttm tt pool pages will bounce through swiotlb running
+ * out of available space.
+ */
674
+ if (vmw_force_coherent || cc_platform_has(CC_ATTR_MEM_ENCRYPT))
675
dev_priv->map_mode = vmw_dma_alloc_coherent;
676
else if (vmw_restrict_iommu)
677
dev_priv->map_mode = vmw_dma_map_bind;
0 commit comments