From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752425AbcIIOm3 (ORCPT ); Fri, 9 Sep 2016 10:42:29 -0400 Received: from foss.arm.com ([217.140.101.70]:45956 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbcIIOm0 (ORCPT ); Fri, 9 Sep 2016 10:42:26 -0400 Subject: Re: [PATCH v6.1] iommu/dma: Add support for mapping MSIs To: Robin Murphy , joro@8bytes.org, will.deacon@arm.com, iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org References: <2da5fca62886afd46cd2a5f7da1da872ee4a833d.1473173789.git.robin.murphy@arm.com> <33fb440d91a5fe8c3e7dc8a5e12d83a5253911dd.1473242018.git.robin.murphy@arm.com> Cc: devicetree@vger.kernel.org, lorenzo.pieralisi@arm.com, jean-philippe.brucker@arm.com, punit.agrawal@arm.com, thunder.leizhen@huawei.com, eric.auger@redhat.com, Thomas Gleixner , Jason Cooper , linux-kernel@vger.kernel.org From: Marc Zyngier Organization: ARM Ltd Message-ID: <57D2CA4E.3060101@arm.com> Date: Fri, 9 Sep 2016 15:42:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 MIME-Version: 1.0 In-Reply-To: <33fb440d91a5fe8c3e7dc8a5e12d83a5253911dd.1473242018.git.robin.murphy@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > CC: Jason Cooper > CC: Marc Zyngier > CC: linux-kernel@vger.kernel.org > Signed-off-by: Robin Murphy Thanks for the quick respin. Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny...