Skip to content
Commit 57df79dd authored by Roman Skakun's avatar Roman Skakun Committed by Greg Kroah-Hartman
Browse files

dma-mapping: handle vmalloc addresses in dma_common_{mmap,get_sgtable}

[ Upstream commit 40ac971e ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent eeaa4b8d
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