powerpc/dma: handle iommu bypass in dma_iommu_ops
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Feb 2019 07:01:05 +0000 (08:01 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Feb 2019 11:41:02 +0000 (22:41 +1100)
commit8617a5c5bc001e52c40d6b2ece78e8f332039217
tree79af57e1b85923c38b42c490fcc7b9c21cb32728
parenta20f507f577b04f286c88a4885ac528e69f6f308
powerpc/dma: handle iommu bypass in dma_iommu_ops

Add a new iommu_bypass flag to struct dev_archdata so that the dma_iommu
implementation can handle the direct mapping transparently instead of
switiching ops around.  Setting of this flag is controlled by new
pci_controller_ops method.

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/device.h
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/kernel/dma-iommu.c
arch/powerpc/kernel/dma.c