powerpc/dma: untangle vio_dma_mapping_ops from dma_iommu_ops
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Feb 2019 07:01:04 +0000 (08:01 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Feb 2019 11:41:02 +0000 (22:41 +1100)
commita20f507f577b04f286c88a4885ac528e69f6f308
tree4c750d74da110cb1f397e67e272574eaeb7a810e
parentfbce251baa6e357441961c78796e5e9fad682675
powerpc/dma: untangle vio_dma_mapping_ops from dma_iommu_ops

vio_dma_mapping_ops currently does a lot of indirect calls through
dma_iommu_ops, which not only make the code harder to follow but are
also expensive in the post-spectre world.  Unwind the indirect calls
by calling the ppc_iommu_* or iommu_* APIs directly applicable, or
just use the dma_iommu_* methods directly where we can.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/iommu.h
arch/powerpc/kernel/dma-iommu.c
arch/powerpc/platforms/pseries/vio.c