Thread (5 messages) flat view 5 messages, 4 authors, 2016-09-09

Re: [PATCH v6.1] iommu/dma: Add support for mapping MSIs

From: Marc Zyngier <hidden>
Date: 2016-09-09 14:42:29
Also in: linux-arm-kernel, linux-iommu, lkml

Hi Robin,

On 07/09/16 10:55, Robin Murphy wrote:
When an MSI doorbell is located downstream of an IOMMU, attaching
devices to a DMA ops domain and switching on translation leads to a rude
shock when their attempt to write to the physical address returned by
the irqchip driver faults (or worse, writes into some already-mapped
buffer) and no interrupt is forthcoming.

Address this by adding a hook for relevant irqchip drivers to call from
their compose_msi_msg() callback, to swizzle the physical address with
an appropriatly-mapped IOVA for any device attached to one of our DMA
ops domains.

CC: Thomas Gleixner <redacted>
CC: Jason Cooper <redacted>
CC: Marc Zyngier <redacted>
CC: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Signed-off-by: Robin Murphy <redacted>
Thanks for the quick respin.

Acked-by: Marc Zyngier <redacted>

	M.
-- 
Jazz is not dead. It just smells funny...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help