powerpc/iommu: Support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask
This patch adds the ability to the DMA direct ops to fallback to the IOMMU ops for coherent alloc/free if the coherent mask of the device isn't suitable for accessing the direct DMA space and the device also happens to have an active IOMMU table. Signed-off-by:Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/Kconfig 4 additions, 0 deletionsarch/powerpc/Kconfig
- arch/powerpc/include/asm/dma-mapping.h 5 additions, 5 deletionsarch/powerpc/include/asm/dma-mapping.h
- arch/powerpc/kernel/dma-iommu.c 1 addition, 1 deletionarch/powerpc/kernel/dma-iommu.c
- arch/powerpc/kernel/dma-swiotlb.c 2 additions, 2 deletionsarch/powerpc/kernel/dma-swiotlb.c
- arch/powerpc/kernel/dma.c 93 additions, 18 deletionsarch/powerpc/kernel/dma.c
Please register or sign in to comment