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

Commit 5d52e10d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sdm660: adsprpc: Map uncached buffers as non-coherent"

parents c0f69934 71733cb1
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)