Merge "disp: msm: sde: add sys cache usage for static image"

This commit is contained in:
qctecmdr
2020-05-01 17:58:08 -07:00
committed by Gerrit - the friendly Code Review server
15 changed files with 637 additions and 227 deletions

View File

@@ -1223,9 +1223,14 @@ int msm_gem_delayed_import(struct drm_gem_object *obj)
if (msm_obj->flags & MSM_BO_SKIPSYNC)
attach->dma_map_attrs |= DMA_ATTR_SKIP_CPU_SYNC;
/*
* All SMMU mapping are generated with cache hint.
* SSPP cache hint will control the LLCC access.
*/
if (msm_obj->flags & MSM_BO_KEEPATTRS)
attach->dma_map_attrs |=
DMA_ATTR_IOMMU_USE_UPSTREAM_HINT;
(DMA_ATTR_IOMMU_USE_UPSTREAM_HINT |
DMA_ATTR_IOMMU_USE_LLC_NWA);
/*
* dma_buf_map_attachment will call dma_map_sg for ion buffer