From patchwork Tue Mar 1 18:27:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 63332 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1981613lbc; Tue, 1 Mar 2016 10:28:44 -0800 (PST) X-Received: by 10.194.58.12 with SMTP id m12mr24767230wjq.22.1456856922490; Tue, 01 Mar 2016 10:28:42 -0800 (PST) Return-Path: Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com. [2a00:1450:400c:c09::235]) by mx.google.com with ESMTPS id e18si38581263wjx.104.2016.03.01.10.28.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Mar 2016 10:28:42 -0800 (PST) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:400c:c09::235 as permitted sender) client-ip=2a00:1450:400c:c09::235; Authentication-Results: mx.google.com; spf=pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:400c:c09::235 as permitted sender) smtp.mailfrom=eric.auger@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-wm0-x235.google.com with SMTP id p65so45944412wmp.0 for ; Tue, 01 Mar 2016 10:28:42 -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=zB2wDg59XNtH3PXzpfR+aImbEOn4ilYrFwkpOh2hE6g=; b=dt1PJDHO09+y4+HYDHEaHTN86Em+EqZonIK/OyQUCG8j0w6PcakWiUtayxIEl+tEq/ T7jKlzalJnHkazlxzXjinPNavjtWfU8qHTtvve93ALwxeotY3LNquwK1yMKrRsJYkqpt K/1JTDaKLtEUwkrM/990BN1G4NDZYKcCwAlCM= 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=zB2wDg59XNtH3PXzpfR+aImbEOn4ilYrFwkpOh2hE6g=; b=W3rMNFYQ5qIGmbBuovowDC8JJ8pvm4nq9ezeHL+2KUUHmOwba8VVInKiK1oHb/q74w 47Fgfke7de8ygZFVt4LZ0fypmEseyMPv8w9WIrGVPyl/bB6PWijo0zGdb16LqrtSo2kM jM2pcxPrRWhmOYmVo7rA+mSW+ulcXB47j/sBl5jak5fCOAD7qG/hizTjOAbKodTdzSnR 9Dp9vrYkMGGYzcx/a59TbEWaOeWmLfW6qtvz51F97LUley4c/9BQd3qBvpkdBrElvCf9 7LBuA+fwu7yMJLSm94hAa6lgc63XjnK/oZ8wsOILafNP01Q2myPnK3GmRv3YQoUAIyuO 71+w== X-Gm-Message-State: AD7BkJJ7JmivZEUjUs1Ptf2F4LzEnGH2VxSql2LLJ2ln/x4ZrcDlU7DEputDgsmy8FmGNnQXWVQ= X-Received: by 10.28.170.137 with SMTP id t131mr504357wme.32.1456856922299; Tue, 01 Mar 2016 10:28:42 -0800 (PST) Return-Path: 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.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 10:28:40 -0800 (PST) From: Eric Auger 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 Cc: suravee.suthikulpanit@amd.com, patches@linaro.org, linux-kernel@vger.kernel.org, Manish.Jaggi@caviumnetworks.com, Bharat.Bhushan@freescale.com, pranav.sawargaonkar@gmail.com, p.fedin@samsung.com, iommu@lists.linux-foundation.org Subject: [RFC v5 09/17] irqchip/gic-v3-its: ITS advertises MSI_FLAG_IRQ_REMAPPING Date: Tue, 1 Mar 2016 18:27:49 +0000 Message-Id: <1456856877-4817-10-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> The ITS is the first ARM MSI controller advertising the new MSI_FLAG_IRQ_REMAPPING flag. It does so because it supports interrupt translation service. This HW support offers isolation of MSIs, feature used when using KVM device passthrough. Signed-off-by: Eric Auger --- v5: new --- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 ++- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c index aee60ed..8223765 100644 --- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c +++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c @@ -96,7 +96,8 @@ static struct msi_domain_ops its_pci_msi_ops = { static struct msi_domain_info its_pci_msi_domain_info = { .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | - MSI_FLAG_MULTI_PCI_MSI | MSI_FLAG_PCI_MSIX), + MSI_FLAG_MULTI_PCI_MSI | MSI_FLAG_PCI_MSIX | + MSI_FLAG_IRQ_REMAPPING), .ops = &its_pci_msi_ops, .chip = &its_msi_irq_chip, }; diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c b/drivers/irqchip/irq-gic-v3-its-platform-msi.c index 470b4aa..8c0d69d 100644 --- a/drivers/irqchip/irq-gic-v3-its-platform-msi.c +++ b/drivers/irqchip/irq-gic-v3-its-platform-msi.c @@ -63,7 +63,8 @@ static struct msi_domain_ops its_pmsi_ops = { }; static struct msi_domain_info its_pmsi_domain_info = { - .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS), + .flags = (MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | + MSI_FLAG_IRQ_REMAPPING), .ops = &its_pmsi_ops, .chip = &its_pmsi_irq_chip, };