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

Commit 27b17819 authored by Yu SI's avatar Yu SI
Browse files

msm: cvp: fixed cache operation func param issue



param offset and size were switched in the function signature

Change-Id: Ice7b9b6c2651940648a95bdf8fa331b62c577378
Signed-off-by: default avatarYu SI <ysi@codeaurora.org>
parent f115a8d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -448,7 +448,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;

@@ -468,7 +468,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 */