Thread (6 messages) 6 messages, 5 authors, 2018-11-07

Re: powerpc/npu-dma: Remove NPU DMA ops

From: Michael Ellerman <hidden>
Date: 2018-11-07 21:27:50
Also in: lkml

On Tue, 2018-10-30 at 11:02:03 UTC, Alistair Popple wrote:
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 <redacted>
Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/3182215dd0b2120fb942ed88430cfb

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help