[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 9 Sep 2016 15:42:22 +0100
From: Marc Zyngier <marc.zyngier@....com>
To: Robin Murphy <robin.murphy@....com>, joro@...tes.org,
will.deacon@....com, iommu@...ts.linux-foundation.org,
linux-arm-kernel@...ts.infradead.org
Cc: devicetree@...r.kernel.org, lorenzo.pieralisi@....com,
jean-philippe.brucker@....com, punit.agrawal@....com,
thunder.leizhen@...wei.com, eric.auger@...hat.com,
Thomas Gleixner <tglx@...utronix.de>,
Jason Cooper <jason@...edaemon.net>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6.1] iommu/dma: Add support for mapping MSIs
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 <tglx@...utronix.de>
> CC: Jason Cooper <jason@...edaemon.net>
> CC: Marc Zyngier <marc.zyngier@....com>
> CC: linux-kernel@...r.kernel.org
> Signed-off-by: Robin Murphy <robin.murphy@....com>
Thanks for the quick respin.
Acked-by: Marc Zyngier <marc.zyngier@....com>
M.
--
Jazz is not dead. It just smells funny...
Powered by blists - more mailing lists