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: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com> Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
This commit is contained in:
parent
c1a2472056
commit
71733cb184
1 changed files with 2 additions and 1 deletions
|
@ -670,7 +670,8 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd, unsigned attr,
|
||||||
init_dma_attrs(&attrs);
|
init_dma_attrs(&attrs);
|
||||||
dma_set_attr(DMA_ATTR_EXEC_MAPPING, &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,
|
dma_set_attr(DMA_ATTR_FORCE_NON_COHERENT,
|
||||||
&attrs);
|
&attrs);
|
||||||
else if (map->attr & FASTRPC_ATTR_COHERENT)
|
else if (map->attr & FASTRPC_ATTR_COHERENT)
|
||||||
|
|
Loading…
Add table
Reference in a new issue