diff options
author | Anumula Murali Mohan Reddy <anumula@chelsio.com> | 2024-07-16 16:25:32 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-07-29 10:41:16 +0200 |
commit | 75ab1533d79b046152d424ffe947f79f9d15682c (patch) | |
tree | 7722822a6bc89af6bd6cc2c4ce3bc7416388eb78 /fs/orangefs/super.c | |
parent | Linux 6.11-rc1 (diff) | |
download | linux-75ab1533d79b046152d424ffe947f79f9d15682c.tar.xz linux-75ab1533d79b046152d424ffe947f79f9d15682c.zip |
RDMA/cxgb4: use dma_mmap_coherent() for mapping non-contiguous memory
dma_alloc_coherent() allocates contiguous memory irrespective of
iommu mode, but after commit f5ff79fddf0e ("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.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'fs/orangefs/super.c')
0 files changed, 0 insertions, 0 deletions