From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753674AbdJRNpj (ORCPT ); Wed, 18 Oct 2017 09:45:39 -0400 Received: from terminus.zytor.com ([65.50.211.136]:60311 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbdJRNpi (ORCPT ); Wed, 18 Oct 2017 09:45:38 -0400 Date: Wed, 18 Oct 2017 06:43:22 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: haiyangz@microsoft.com, jopoulso@microsoft.com, sixiao@microsoft.com, sthemmin@microsoft.com, marc.zyngier@arm.com, decui@microsoft.com, kys@microsoft.com, linux-kernel@vger.kernel.org, Jork.Loeser@microsoft.com, tglx@linutronix.de, saeedm@mellanox.com, mingo@kernel.org, bhelgaas@google.com, hpa@zytor.com, v-micos@microsoft.com Reply-To: saeedm@mellanox.com, tglx@linutronix.de, v-micos@microsoft.com, hpa@zytor.com, mingo@kernel.org, bhelgaas@google.com, decui@microsoft.com, sthemmin@microsoft.com, marc.zyngier@arm.com, sixiao@microsoft.com, haiyangz@microsoft.com, jopoulso@microsoft.com, Jork.Loeser@microsoft.com, linux-kernel@vger.kernel.org, kys@microsoft.com In-Reply-To: <20171017075600.448649905@linutronix.de> References: <20171017075600.448649905@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] PCI/MSI: Set MSI_FLAG_MUST_REACTIVATE in core code Git-Commit-ID: 25e960efc63852b84d1c3739aef586285b177395 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 25e960efc63852b84d1c3739aef586285b177395 Gitweb: https://git.kernel.org/tip/25e960efc63852b84d1c3739aef586285b177395 Author: Thomas Gleixner AuthorDate: Tue, 17 Oct 2017 09:54:58 +0200 Committer: Thomas Gleixner CommitDate: Wed, 18 Oct 2017 15:38:31 +0200 PCI/MSI: Set MSI_FLAG_MUST_REACTIVATE in core code If interrupt reservation mode is enabled then the PCI/MSI interrupts must be reactivated after early activation. Make sure that all callers of pci_msi_create_irq_domain() have the MSI_FLAG_MUST_REACTIVATE set when reservation mode is enabled. Signed-off-by: Thomas Gleixner Cc: Josh Poulson Cc: Mihai Costache Cc: Stephen Hemminger Cc: Marc Zyngier Cc: linux-pci@vger.kernel.org Cc: Haiyang Zhang Cc: Dexuan Cui Cc: Simon Xiao Cc: Saeed Mahameed Cc: Jork Loeser Cc: Bjorn Helgaas Cc: devel@linuxdriverproject.org Cc: KY Srinivasan Link: https://lkml.kernel.org/r/20171017075600.448649905@linutronix.de --- drivers/pci/msi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 496ed91..e066071 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -1441,6 +1441,8 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode, pci_msi_domain_update_chip_ops(info); info->flags |= MSI_FLAG_ACTIVATE_EARLY; + if (IS_ENABLED(CONFIG_GENERIC_IRQ_RESERVATION_MODE)) + info->flags |= MSI_FLAG_MUST_REACTIVATE; domain = msi_create_irq_domain(fwnode, info, parent); if (!domain)