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

Commit eee67459 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: npu: Don't sync dma buffer after mapping"

parents f9bb9f5f d4a114de
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -298,8 +298,6 @@ int npu_mem_map(struct npu_client *client, int buf_hdl, uint32_t size,
		goto map_end;
		goto map_end;
	}
	}


	dma_sync_sg_for_device(&(npu_dev->pdev->dev), ion_buf->table->sgl,
		ion_buf->table->nents, DMA_BIDIRECTIONAL);
	ion_buf->iova = ion_buf->table->sgl->dma_address;
	ion_buf->iova = ion_buf->table->sgl->dma_address;
	ion_buf->size = ion_buf->dma_buf->size;
	ion_buf->size = ion_buf->dma_buf->size;
	*addr = ion_buf->iova;
	*addr = ion_buf->iova;