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

Commit c58afc03 authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu Committed by Gerrit - the friendly Code Review server
Browse files

msm: adsprpc: Remove output buffers from cache flush logic



Flush only input buffers during cache maintenance, removing output
buffers from flush logic, helpful when target or buffer is
non-coherent.

Acked-by: default avatarDeepika Singh <dsi@qti.qualcomm.com>
Change-Id: If84c5bcc0a136d2943ab96c137d0561b8ef8d47d
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent b2113c53
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1846,6 +1846,8 @@ static int get_args(uint32_t kernel, struct smq_invoke_ctx *ctx)
		int i = ctx->overps[oix]->raix;
		struct fastrpc_mmap *map = ctx->maps[i];

		if (i+1 > inbufs)	// Avoiding flush for outbufs
			continue;
		if (map && map->uncached)
			continue;
		if (ctx->fl->sctx->smmu.coherent &&