summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorLaura Abbott <lauraa@codeaurora.org>2014-03-14 19:52:23 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2014-03-24 10:01:17 +0000
commit6e8d7968e92f7668a2a615773ad3940f0219dcbd (patch)
tree5a8f533606bb3d3e611472f72ec369714c5f450e /include/asm-generic
parent31b1e940c5d47ee1a01baeccfb1b2b8890822d1a (diff)
downloadlinux-6e8d7968e92f7668a2a615773ad3940f0219dcbd.tar.bz2
arm64: Implement custom mmap functions for dma mapping
The current dma_ops do not specify an mmap function so maping falls back to the default implementation. There are at least two issues with using the default implementation: 1) The pgprot is always pgprot_noncached (strongly ordered) memory even with coherent operations 2) dma_common_mmap calls virt_to_page on the remapped non-coherent address which leads to invalid memory being mapped. Fix both these issue by implementing a custom mmap function which correctly accounts for remapped addresses and sets vm_pg_prot appropriately. Signed-off-by: Laura Abbott <lauraa@codeaurora.org> [catalin.marinas@arm.com: replaced "arm64_" with "__" prefix for consistency] Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions