powerpc: Add support for swiotlb on 32-bit
This patch includes the basic infrastructure to use swiotlb bounce buffering on 32-bit powerpc. It is not yet enabled on any platforms. Probably the most interesting bit is the addition of addr_needs_map to dma_ops - we need this as a dma_op because the decision of whether or not an addr can be mapped by a device is device-specific. Signed-off-by:Becky Bruce <beckyb@kernel.crashing.org> Acked-by:
Kumar Gala <galak@kernel.crashing.org> Signed-off-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Showing
- arch/powerpc/Kconfig 11 additions, 1 deletionarch/powerpc/Kconfig
- arch/powerpc/include/asm/dma-mapping.h 11 additions, 0 deletionsarch/powerpc/include/asm/dma-mapping.h
- arch/powerpc/include/asm/swiotlb.h 27 additions, 0 deletionsarch/powerpc/include/asm/swiotlb.h
- arch/powerpc/kernel/Makefile 1 addition, 0 deletionsarch/powerpc/kernel/Makefile
- arch/powerpc/kernel/dma-swiotlb.c 163 additions, 0 deletionsarch/powerpc/kernel/dma-swiotlb.c
- arch/powerpc/kernel/dma.c 1 addition, 1 deletionarch/powerpc/kernel/dma.c
- arch/powerpc/kernel/setup_32.c 6 additions, 0 deletionsarch/powerpc/kernel/setup_32.c
- arch/powerpc/kernel/setup_64.c 6 additions, 0 deletionsarch/powerpc/kernel/setup_64.c
Loading
Please register or sign in to comment