dma-mapping: handle vmalloc addresses in dma_common_{mmap,get_sgtable}
authorRoman Skakun <Roman_Skakun@epam.com>
Fri, 16 Jul 2021 08:39:34 +0000 (11:39 +0300)
committerChristoph Hellwig <hch@lst.de>
Fri, 16 Jul 2021 09:30:26 +0000 (11:30 +0200)
commit40ac971eab89330d6153e7721e88acd2d98833f9
treef1f13dcd951190dff748b3a929742e117c699913
parentd936eb23874433caa3e3d841cfa16f5434b85dcf
dma-mapping: handle vmalloc addresses in dma_common_{mmap,get_sgtable}

xen-swiotlb can use vmalloc backed addresses for dma coherent allocations
and uses the common helpers.  Properly handle them to unbreak Xen on
ARM platforms.

Fixes: 1b65c4e5a9af ("swiotlb-xen: use xen_alloc/free_coherent_pages")
Signed-off-by: Roman Skakun <roman_skakun@epam.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
[hch: split the patch, renamed the helpers]
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/ops_helpers.c