OSDN Git Service

powerpc/powernv/npu: Remove NPU DMA ops
authorAlistair Popple <alistair@popple.id.au>
Tue, 30 Oct 2018 11:02:03 +0000 (22:02 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Nov 2018 05:05:22 +0000 (16:05 +1100)
commit3182215dd0b2120fb942ed88430cfb7c12d583e0
tree7dc67f9b41c5a535c0822eb641dc33a6769f0d62
parent651022382c7f8da46cb4872a545ee1da6d097d2a
powerpc/powernv/npu: Remove NPU DMA ops

The NPU IOMMU is setup to mirror the parent PCIe device IOMMU
setup. Therefore it does not make sense to call dma operations such as
dma_map_page(), etc. directly on these devices. The existing dma_ops
simply print a warning if they are ever called, however this is
unnecessary and the warnings are likely to go unnoticed.

It is instead simpler to remove these operations and let the generic
DMA code print warnings (eg. via a NULL pointer deref) in cases of
buggy drivers attempting dma operations on NVLink devices.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c