Skip to content
Commit 40ac971e authored by Roman Skakun's avatar Roman Skakun Committed by Christoph Hellwig
Browse files

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: 1b65c4e5

 ("swiotlb-xen: use xen_alloc/free_coherent_pages")
Signed-off-by: default avatarRoman Skakun <roman_skakun@epam.com>
Reviewed-by: default avatarAndrii Anisov <andrii_anisov@epam.com>
[hch: split the patch, renamed the helpers]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent d936eb23
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment