Skip to content

Commit e87a45b

Browse files
hoshinolinajannau
authored andcommitted
media: apple: isp: Use cached IOMMU mappings
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 75e54bb commit e87a45b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/media/platform/apple/isp/isp-iommu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static int isp_surf_iommu_map(struct apple_isp *isp, struct isp_surf *surf)
113113
}
114114

115115
size = iommu_map_sgtable(isp->domain, surf->iova, &surf->sgt,
116-
IOMMU_READ | IOMMU_WRITE);
116+
IOMMU_READ | IOMMU_WRITE | IOMMU_CACHE);
117117
if (size < surf->size) {
118118
dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\n",
119119
surf->iova);
@@ -231,7 +231,7 @@ int apple_isp_iommu_map_sgt(struct apple_isp *isp, struct isp_surf *surf,
231231
}
232232

233233
mapped = iommu_map_sgtable(isp->domain, surf->iova, sgt,
234-
IOMMU_READ | IOMMU_WRITE);
234+
IOMMU_READ | IOMMU_WRITE | IOMMU_CACHE);
235235
if (mapped < surf->size) {
236236
dev_err(isp->dev, "failed to iommu_map sgt to iova 0x%llx\n",
237237
surf->iova);

0 commit comments

Comments
 (0)