Skip to content

Commit 85aed13

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

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
@@ -112,7 +112,7 @@ static int isp_surf_iommu_map(struct apple_isp *isp, struct isp_surf *surf)
112112
}
113113

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

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

0 commit comments

Comments
 (0)