summaryrefslogtreecommitdiff
path: root/arch/arm64/mm/hugetlbpage.c
diff options
context:
space:
mode:
authorRobin Murphy <Robin.Murphy@arm.com>2015-07-17 15:58:21 (GMT)
committerWill Deacon <will.deacon@arm.com>2015-07-27 10:08:40 (GMT)
commit1d1ddf67dc3bfd80f60b216fa1fedfb242bee299 (patch)
treee62ad9b0949e30bc058c8aea75ce11dcb38e72da /arch/arm64/mm/hugetlbpage.c
parent4b3dc9679cf779339d9049800803dfc3c83433d1 (diff)
downloadlinux-1d1ddf67dc3bfd80f60b216fa1fedfb242bee299.tar.xz
arm64: dma-mapping: implement dma_get_sgtable()
The default dma_common_get_sgtable() implementation relies on the CPU address of the buffer being a regular lowmem address. This is not always the case on arm64, since allocations from the various DMA pools may have remapped vmalloc addresses, rendering the use of virt_to_page() invalid. Fix this by providing our own implementation based on the fact that we can safely derive a physical address from the DMA address in both cases. CC: Jon Medhurst <tixy@linaro.org> Signed-off-by: Robin Murphy <robin.murphy@arm.com> [will: made static] Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/hugetlbpage.c')
0 files changed, 0 insertions, 0 deletions