]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0af2e0c539e1f7713d10b39b80982e70a1ff67f3
tree79af57e1b85923c38b42c490fcc7b9c21cb32728
parent8839e8dfee80e15c801d2000ad2ed8de58f6ab1d
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