Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cea03712 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Revert "msm: camera: Skip cache CPU SYNC for non-secure buffers""

parents 909f5c10 157161d9
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1022,9 +1022,6 @@ static int cam_smmu_map_buffer_and_add_to_list(int idx, int ion_fd,
		goto err_put;
	}

	/* cache flush/invalidation is done by buffer provider */
	attach->dma_map_attrs |= DMA_ATTR_SKIP_CPU_SYNC;

	table = dma_buf_map_attachment(attach, dma_dir);
	if (IS_ERR_OR_NULL(table)) {
		rc = PTR_ERR(table);
@@ -1107,9 +1104,6 @@ static int cam_smmu_unmap_buf_and_remove_from_list(
		return -EINVAL;
	}

	/* skip cache operations */
	mapping_info->attach->dma_map_attrs |= DMA_ATTR_SKIP_CPU_SYNC;

	/* iommu buffer clean up */
	dma_buf_unmap_attachment(mapping_info->attach,
		mapping_info->table, mapping_info->dir);