]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fd5c0842185795e606aa6a47997ac410a6f6d26
tree7dc67f9b41c5a535c0822eb641dc33a6769f0d62
parenta9e80a095d95d1159b26f73bd6d9c2fadc7fb411
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