]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - arch/arm64/Kconfig
arm64: use the generic swiotlb_dma_ops
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Oct 2018 07:12:01 +0000 (09:12 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 19 Oct 2018 06:53:24 +0000 (08:53 +0200)
commit886643b766321f15f63bd950be618cbb6dd22bbc
treed84cbe166a610723a06937fbb09c89ffcb608246
parenta4a4330db46a17289cf2ca5f9fb153d536267b97
arm64: use the generic swiotlb_dma_ops

Now that the generic swiotlb code supports non-coherent DMA we can switch
to it for arm64.  For that we need to refactor the existing
alloc/free/mmap/pgprot helpers to be used as the architecture hooks,
and implement the standard arch_sync_dma_for_{device,cpu} hooks for
cache maintaincance in the streaming dma hooks, which also implies
using the generic dma_coherent flag in struct device.

Note that we need to keep the old is_device_dma_coherent function around
for now, so that the shared arm/arm64 Xen code keeps working.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/include/asm/device.h
arch/arm64/include/asm/dma-mapping.h
arch/arm64/mm/dma-mapping.c