-
Anumula Murali Mohan Reddy authored
dma_alloc_coherent() allocates contiguous memory irrespective of iommu mode, but after commit f5ff79fd ("dma-mapping: remove CONFIG_DMA_REMAP") if iommu is enabled in translate mode, dma_alloc_coherent() may allocate non-contiguous memory. Attempt to map this memory results in panic. This patch fixes the issue by using dma_mmap_coherent() to map each page to user space. Signed-off-by:
Anumula Murali Mohan Reddy <anumula@chelsio.com> Signed-off-by:
Potnuri Bharat Teja <bharat@chelsio.com> Link: https://lore.kernel.org/r/20240716142532.97423-1-anumula@chelsio.comSigned-off-by:
Leon Romanovsky <leon@kernel.org>
75ab1533