Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752538AbcDVLCI (ORCPT ); Fri, 22 Apr 2016 07:02:08 -0400 Received: from foss.arm.com ([217.140.101.70]:33010 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984AbcDVLCG (ORCPT ); Fri, 22 Apr 2016 07:02:06 -0400 Subject: Re: [PATCH v7 1/8] genirq/msi: Add a new MSI_FLAG_IRQ_REMAPPING flag To: Eric Auger , eric.auger@st.com, alex.williamson@redhat.com, will.deacon@arm.com, joro@8bytes.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, christoffer.dall@linaro.org, linux-arm-kernel@lists.infradead.org References: <1461085990-2547-1-git-send-email-eric.auger@linaro.org> <1461085990-2547-2-git-send-email-eric.auger@linaro.org> Cc: patches@linaro.org, linux-kernel@vger.kernel.org, Bharat.Bhushan@freescale.com, pranav.sawargaonkar@gmail.com, p.fedin@samsung.com, iommu@lists.linux-foundation.org, Jean-Philippe.Brucker@arm.com, julien.grall@arm.com From: Robin Murphy Message-ID: <571A04A9.1010104@arm.com> Date: Fri, 22 Apr 2016 12:02:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1461085990-2547-2-git-send-email-eric.auger@linaro.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1524 Lines: 43 Hi Eric, On 19/04/16 18:13, Eric Auger wrote: > Let's introduce a new msi_domain_info flag value, MSI_FLAG_IRQ_REMAPPING > meant to tell the domain supports IRQ REMAPPING, also known as Interrupt > Translation Service. On Intel HW this IRQ remapping capability is > abstracted on IOMMU side while on ARM it is abstracted on MSI controller > side. This flag will be used to know whether the MSI passthrough is > safe. Perhaps a nitpick, but given the earlier confusion about what the IOMMU flag actually meant this prompts me to wonder if it's worth adjusting the general terminology before we propagate it further. What I think we actually care about is that one thing or the other "provides MSI isolation" rather than "supports MSI remapping", since the latter is all to easy to misinterpret the way we did in the SMMU drivers. Robin. > Signed-off-by: Eric Auger > > --- > > v4 -> v5: > - seperate flag introduction from first user addition (ITS) > --- > include/linux/msi.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/msi.h b/include/linux/msi.h > index 8b425c6..08441b1 100644 > --- a/include/linux/msi.h > +++ b/include/linux/msi.h > @@ -270,6 +270,8 @@ enum { > MSI_FLAG_MULTI_PCI_MSI = (1 << 3), > /* Support PCI MSIX interrupts */ > MSI_FLAG_PCI_MSIX = (1 << 4), > + /* Support MSI IRQ remapping service */ > + MSI_FLAG_IRQ_REMAPPING = (1 << 5), > }; > > int msi_domain_set_affinity(struct irq_data *data, const struct cpumask *mask, >