OSDN Git Service

powerpc/powernv/npu: Move IOMMU group setup into npu-dma.c
authorOliver O'Halloran <oohall@gmail.com>
Mon, 6 Apr 2020 03:07:45 +0000 (13:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 May 2020 13:24:38 +0000 (23:24 +1000)
commit03b7bf341c18ff19129cc2825b62bb0e212463f1
tree37f763a29875287ee52087608e174277dcf8d21b
parent96e2006a9dbc02cb1c103521405d457438a2e260
powerpc/powernv/npu: Move IOMMU group setup into npu-dma.c

The NVlink IOMMU group setup is only relevant to NVLink devices so move
it into the NPU containment zone. This let us remove some prototypes in
pci.h and staticfy some function definitions.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200406030745.24595-8-oohall@gmail.com
arch/powerpc/platforms/powernv/npu-dma.c
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci.h