]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/dma: use the dma-direct allocator for coherent platforms
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Feb 2019 07:01:28 +0000 (08:01 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Feb 2019 11:41:04 +0000 (22:41 +1100)
commit31f940afda6add7a7bb182adde97e615e5355c6d
tree0133b5ca9bc0889985dc3c4021fa3268e97ae6ea
parentfeee96440c9c5fdf47f8c8079c104fc8082924a0
powerpc/dma: use the dma-direct allocator for coherent platforms

The generic code allows a few nice things such as node local allocations
and dipping into the CMA area.  The lookup of the right zone for a given
dma mask works a little different, but the results should be the same.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pgtable.h
arch/powerpc/kernel/dma-iommu.c
arch/powerpc/kernel/dma-swiotlb.c
arch/powerpc/kernel/dma.c
arch/powerpc/mm/mem.c