From 2296a3a97131ddb9f2bec64fb6295f55f31a2732 Mon Sep 17 00:00:00 2001 From: Tharun Kumar Merugu Date: Tue, 3 Dec 2019 17:03:18 +0530 Subject: [PATCH] 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: Deepika Singh Change-Id: If84c5bcc0a136d2943ab96c137d0561b8ef8d47d Signed-off-by: Tharun Kumar Merugu --- drivers/char/adsprpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 638f2784ef12..85a2cbddb37d 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -1865,6 +1865,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 &&