[RFC PATCH] powerpc: fix get_arch_dma_ops() for NTB devices

Christoph Hellwig hch at lst.de
Wed Feb 6 03:13:00 AEDT 2019


On Tue, Feb 05, 2019 at 10:20:32PM +1100, Michael Ellerman wrote:
> get_dma_ops() falls into arch-dependant get_arch_dma_ops(), which
> historically returns NULL on PowerPC. Therefore dma_set_mask() fails.
> This affects Switchtec (and probably other) NTB devices, that they fail
> to initialize.
> The proposed patch should fix the issue.

I'm not a fan of this.  powerpc, just like arm64 for example has
required that we set a specific per-device dma ops, which keeps
the assignments clear.  Where do the NTB devices come from?

Might be worth adding the NTB maintainers to the CC list and maybe
linux-iommu.


More information about the Linuxppc-dev mailing list