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

Commit 71733cb1 authored by c_mtharu's avatar c_mtharu Committed by Gerrit - the friendly Code Review server
Browse files

sdm660: adsprpc: Map uncached buffers as non-coherent



Map un-cached buffers as non io-coherent to avoid snooping overhead.

Change-Id: Iddbde76d6d8a13cd48c737f1046a53a2bc1ef2a5
Acked-by: default avatarViswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent c1a24720
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -670,7 +670,8 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd, unsigned attr,
			init_dma_attrs(&attrs);
			dma_set_attr(DMA_ATTR_EXEC_MAPPING, &attrs);

			if (map->attr & FASTRPC_ATTR_NON_COHERENT)
			if ((map->attr & FASTRPC_ATTR_NON_COHERENT) ||
				(sess->smmu.coherent && map->uncached))
				dma_set_attr(DMA_ATTR_FORCE_NON_COHERENT,
								 &attrs);
			else if (map->attr & FASTRPC_ATTR_COHERENT)