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

Commit 83be2e6b 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 bd7870c9 17e555f8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -295,8 +295,6 @@ int npu_mem_map(struct npu_client *client, int buf_hdl, uint32_t size,
		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->size = ion_buf->dma_buf->size;
	*addr = ion_buf->iova;