From patchwork Thu Apr 28 08:22:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 66868 Delivered-To: patches@linaro.org Received: by 10.140.93.198 with SMTP id d64csp78114qge; Thu, 28 Apr 2016 01:22:37 -0700 (PDT) X-Received: by 10.195.11.197 with SMTP id ek5mr13831723wjd.58.1461831757645; Thu, 28 Apr 2016 01:22:37 -0700 (PDT) Return-Path: Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com. [2a00:1450:400c:c09::234]) by mx.google.com with ESMTPS id je6si9340680wjb.162.2016.04.28.01.22.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Apr 2016 01:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:400c:c09::234 as permitted sender) client-ip=2a00:1450:400c:c09::234; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of eric.auger@linaro.org designates 2a00:1450:400c:c09::234 as permitted sender) smtp.mailfrom=eric.auger@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x234.google.com with SMTP id a17so51919468wme.0 for ; Thu, 28 Apr 2016 01:22:37 -0700 (PDT) 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=YisOiY+78N4Td/OSVkR564f62YcqmOI7DYDeNb1Y2bk1GimmHQPhz+UakYhuZxXM4+ xj55iUatczYGDndNLhGhxYvgiAdWs4Ti/dl6d1ctlNlpaxjP1e/DChsK6PBBE5BAGm8p HfoQPlCKWDqt5WKsM9Piq/O6LAyvAxAjs96Do= 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=fZ/XqExADZULAJfNAKMjPKrD3ooAH9dQaTcGwGLqRH6+rTIubWGiW+6GpluHswYM1k JKLXje0qHNNczcI5At7GpGz41L5knDdEUZ9pnYMbX1lODVD9jEvBng1E8s2FXKtd4bbu xr4qXJ13AQBjNAj/v3wp7P4/qAiSPYsmtiRG9Rgg1r6EZq8iaSdNAUcQtVgQfave3Roj b42BGYN1UrcAA1nIG5lLogKg2wx+C1P49yO+ixFGkN04ehZJ3vXf5yzLsvFMu2BBl+cN 8am1bSs36BAtup4xHk0k5W6TrJA7AVLcaAm06V7y4lvewyjjc9Viwv1/sbNtRNF2OZgC o6FA== X-Gm-Message-State: AOPr4FXC9LLf/w0u7ZFVvp4Qy+jKVJDxiwkoVVEErOe4RBb1VVzEZkWyTAC9YSv1oKOROjo8wWY= X-Received: by 10.28.148.149 with SMTP id w143mr14652448wmd.10.1461831757436; Thu, 28 Apr 2016 01:22:37 -0700 (PDT) Return-Path: Received: from new-host-46.home (LMontsouris-657-1-37-90.w80-11.abo.wanadoo.fr. [80.11.198.90]) by smtp.gmail.com with ESMTPSA id b124sm3568725wmb.1.2016.04.28.01.22.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Apr 2016 01:22:35 -0700 (PDT) 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 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 Subject: [PATCH v8 2/8] irqchip/gic-v3-its: ITS advertises MSI_FLAG_IRQ_REMAPPING Date: Thu, 28 Apr 2016 08:22:04 +0000 Message-Id: <1461831730-5575-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461831730-5575-1-git-send-email-eric.auger@linaro.org> References: <1461831730-5575-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, };