[PATCHv2 1/3] arm64: Implement custom mmap functions for dma mapping
Catalin Marinas
catalin.marinas at arm.com
Mon Mar 24 06:33:03 EDT 2014
On Fri, Mar 14, 2014 at 07:52:23PM +0000, Laura Abbott wrote:
> 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 at codeaurora.org>
I thought there was still some update needed to this series but it turns
out that patch 2/3 was what I was expecting already, so I merged the
first two patches (with minor changes for s/arm64_/__/ prefix). Patch 3
seems to be folded onto my patch already.
Thanks.
--
Catalin
More information about the linux-arm-kernel
mailing list