]> git.baikalelectronics.ru Git - kernel.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)
commit74e0f6762b4c71c124081cecc5c8facbf2700ae9
tree0133b5ca9bc0889985dc3c4021fa3268e97ae6ea
parentdb17b5267752a80688cfebba01fe1da6013c79cf
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