dma-mapping: support non-coherent devices in dma_common_get_sgtable
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Aug 2018 07:39:38 +0000 (09:39 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Sep 2018 07:01:17 +0000 (09:01 +0200)
commit9406a49fd1f4379409ed87b29fdaa259b0441912
treeb159725e0441d30234c84eb6b3a061e0788febb8
parent58b0440663ec11372befb8ead0ee7099d8878590
dma-mapping: support non-coherent devices in dma_common_get_sgtable

We can use the arch_dma_coherent_to_pfn hook to provide a ->get_sgtable
implementation.  Note that this isn't an endorsement of this interface
(which is a horrible bad idea), but it is required to move arm64 over
to the generic code without a loss of functionality.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/xen/swiotlb-xen.c
include/linux/dma-mapping.h
kernel/dma/mapping.c