[RFC PATCH] ARM64: PCI: inherit root controller's dma-coherent

Robin Murphy robin.murphy at arm.com
Wed Dec 10 08:23:06 PST 2014


Hi Arnd,

On 10/12/14 16:06, Arnd Bergmann wrote:
[...]
>> Arnd, given it isn't easy to figure out one good solution for moving
>> dma configuration into generic code(driver core, pci, .) now, could
>> the issue be fixed first?
>
> We have just merged a new arch_setup_dma_ops callback based on patches
> from Will Deacon, and this is required to get iommu drivers to work
> properly. The callback is used correctly by of_dma_configure, and we
> just need to hook it up on arm64 (I think Robin already has a patch,
> if Will doesn't) and call it from the PCI core. There really isn't
> any magic involved here.
>

Indeed, I have that as part of my arm64 IOMMU stuff, albeit with an 
additional dependency on the new Xen is_device_dma_coherent. Once the 
dust has settled on -rc1 I'll see what's in good enough shape to send out.

Robin.




More information about the linux-arm-kernel mailing list