File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -666,11 +666,12 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv)
666
666
[vmw_dma_map_populate ] = "Caching DMA mappings." ,
667
667
[vmw_dma_map_bind ] = "Giving up DMA mappings early." };
668
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 )
669
+ /*
670
+ * When running with SEV we always want dma mappings, because
671
+ * otherwise ttm tt pool pages will bounce through swiotlb running
672
+ * out of available space.
673
+ */
674
+ if (vmw_force_coherent || cc_platform_has (CC_ATTR_MEM_ENCRYPT ))
674
675
dev_priv -> map_mode = vmw_dma_alloc_coherent ;
675
676
else if (vmw_restrict_iommu )
676
677
dev_priv -> map_mode = vmw_dma_map_bind ;
You can’t perform that action at this time.
0 commit comments