From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761730AbdJQM2q (ORCPT ); Tue, 17 Oct 2017 08:28:46 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57208 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761712AbdJQM2o (ORCPT ); Tue, 17 Oct 2017 08:28:44 -0400 Date: Tue, 17 Oct 2017 14:28:39 +0200 (CEST) From: Thomas Gleixner To: LKML cc: Dexuan Cui , x86@kernel.org, Bjorn Helgaas , Marc Zyngier , KY Srinivasan , Stephen Hemminger , linux-pci@vger.kernel.org, devel@linuxdriverproject.org, Josh Poulson , Haiyang Zhang , Simon Xiao , Saeed Mahameed , Mihai Costache , Jork Loeser Subject: Re: [patch 2/3] PCI/MSI: Set MSI_FLAG_MUST_REACTIVATE in core code In-Reply-To: <20171017075600.448649905@linutronix.de> Message-ID: References: <20171017075456.694047687@linutronix.de> <20171017075600.448649905@linutronix.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Oct 2017, Thomas Gleixner wrote: > 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 > --- > drivers/pci/msi.c | 2 ++ > 1 file changed, 2 insertions(+) > > --- a/drivers/pci/msi.c > +++ b/drivers/pci/msi.c > @@ -1441,6 +1441,8 @@ struct irq_domain *pci_msi_create_irq_do > pci_msi_domain_update_chip_ops(info); > > info->flags |= MSI_FLAG_ACTIVATE_EARLY; > + if (IS_ENABLED(CONFIG_GENERIC_IRQ_RESERVATION)) Bah. quilt refresh seems overrated. Correct patch below. Thanks, tglx 8<---------------- --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -1441,6 +1441,8 @@ struct irq_domain *pci_msi_create_irq_do 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)