Merge "disp: msm: sde: add sys cache usage for static image"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
dfc3e3ddc8
@@ -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
|
||||
|
Reference in New Issue
Block a user