Message ID | 1456856877-4817-9-git-send-email-eric.auger@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 653B5C0553 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 1 Mar 2016 18:33:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8E68D202C8 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 1 Mar 2016 18:33:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BEBBE20115 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 1 Mar 2016 18:33:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aap50-0005bO-6j; Tue, 01 Mar 2016 18:31:30 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aap2a-0001f6-Sk for linux-arm-kernel@lists.infradead.org; Tue, 01 Mar 2016 18:29:03 +0000 Received: by mail-wm0-x229.google.com with SMTP id l68so50620277wml.0 for <linux-arm-kernel@lists.infradead.org>; Tue, 01 Mar 2016 10:28:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mA+3qBDSTvM1BgPScA4kHmu5Lv2T5MTQHN+hvr/7s7Y=; b=P6HBcX33QPRJwnYDdFlUsbNQaTakyE54M7lf6kQwY3nes8L2uWg98FpeU/xbCzkGTP OFowfyhMyA0Cq4LKwV8JF/e2Em0IjmHgghW+1MIQgOI1tFyQw/j9nUf98wyAkhwmwxhq OoSbPDXdlY8hbUOl5rNfmsgq2xeEB0nebU2N0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mA+3qBDSTvM1BgPScA4kHmu5Lv2T5MTQHN+hvr/7s7Y=; b=DetPokRL5xwg/gd8jt0THHDdh2f0ll+OLU0xMdhCWpEyNO4ACShJtvqkw7+A6w27qr F7B9rWH0eSjhrDg4nZMfbvirT9D6uqrB8UHhZOKcXpWbYFSO5ouMvnksM/BqAtD+AQK2 MHiSjBDKqKg2LZhR4Rh5hwHT3MYABvhARD9baPd/3WFYqkUaOwWw+7mRtmitFZDZ/2z/ fHPwPkuU2q7hiYx6kSOaTLdXtMtYD3gRcHXdhp/QdGzfBi5IIK/grTiwwTmShTZEqkth 3KYwY6CwZYUG83aBNziqx3j+oDW1gzd2rd/ix1iIil9Of9k6D2xZawUhqqD5yhsNs1uL bAxg== X-Gm-Message-State: AD7BkJJgX2PcIw4PXypPbpWYjVe7iVF7OWOHqs+LuyY5LwETURRga8u3PHHiggu8J5B7etkU X-Received: by 10.194.58.12 with SMTP id m12mr24767001wjq.22.1456856919181; Tue, 01 Mar 2016 10:28:39 -0800 (PST) Received: from new-host-8.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id k8sm32176385wjr.38.2016.03.01.10.28.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 10:28:35 -0800 (PST) From: Eric Auger <eric.auger@linaro.org> To: eric.auger@st.com, eric.auger@linaro.org, robin.murphy@arm.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, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [RFC v5 08/17] msi: Add a new MSI_FLAG_IRQ_REMAPPING flag Date: Tue, 1 Mar 2016 18:27:48 +0000 Message-Id: <1456856877-4817-9-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456856877-4817-1-git-send-email-eric.auger@linaro.org> References: <1456856877-4817-1-git-send-email-eric.auger@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160301_102901_308044_27BA43F8 X-CRM114-Status: GOOD ( 11.19 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: patches@linaro.org, Manish.Jaggi@caviumnetworks.com, p.fedin@samsung.com, linux-kernel@vger.kernel.org, Bharat.Bhushan@freescale.com, iommu@lists.linux-foundation.org, pranav.sawargaonkar@gmail.com, suravee.suthikulpanit@amd.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/msi.h b/include/linux/msi.h index a2a0068..03eda72 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -261,6 +261,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,
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. Signed-off-by: Eric Auger <eric.auger@linaro.org> --- v4 -> v5: - seperate flag introduction from first user addition (ITS) --- include/linux/msi.h | 2 ++ 1 file changed, 2 insertions(+)