[RFC PATCH] powerpc: fix get_arch_dma_ops() for NTB devices
Michael Ellerman
mpe at ellerman.id.au
Wed Jan 30 23:58:40 AEDT 2019
Alexander Fomichev <fomichev.ru at gmail.com> writes:
> 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.
What's an NTB device?
drivers/ntb I assume?
So it's a PCI device of some sort, but presumably the device you're
calling dma_set_mask() on is an NTB device not a PCI device?
But then it works if you tell it to use the PCI DMA ops?
At the very least the code should be checking for the NTB bus type and
only returning the PCI ops in that specific case, not for all devices.
cheers
More information about the Linuxppc-dev
mailing list