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

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

Merge "msm: cvp: fixed cache operation func param issue"

parents 5bcf7e3e 27b17819
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -453,7 +453,7 @@ u32 msm_cvp_map_frame_buf(struct msm_cvp_inst *inst,
	frame->nr++;

	type = CVP_KMD_BUFTYPE_INPUT | CVP_KMD_BUFTYPE_OUTPUT;
	msm_cvp_cache_operations(smem, type, buf->size, buf->offset);
	msm_cvp_cache_operations(smem, type, buf->offset, buf->size);

	iova = smem->device_addr + buf->offset;

@@ -473,7 +473,7 @@ static void msm_cvp_unmap_frame_buf(struct msm_cvp_inst *inst,
	for (i = 0; i < frame->nr; ++i) {
		buf = &frame->bufs[i];
		smem = buf->smem;
		msm_cvp_cache_operations(smem, type, buf->size, buf->offset);
		msm_cvp_cache_operations(smem, type, buf->offset, buf->size);

		if (smem->bitmap_index >= MAX_DMABUF_NUMS) {
			/* smem not in dmamap cache */