Skip to content
Commit 1d1ddf67 authored by Robin Murphy's avatar Robin Murphy Committed by Will Deacon
Browse files

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: default avatarRobin Murphy <robin.murphy@arm.com>
[will: made static]
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 4b3dc967
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