From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752664AbdJUHTe (ORCPT ); Sat, 21 Oct 2017 03:19:34 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:42761 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbdJUHTd (ORCPT ); Sat, 21 Oct 2017 03:19:33 -0400 Date: Sat, 21 Oct 2017 09:19:24 +0200 (CEST) From: Thomas Gleixner To: Bjorn Helgaas cc: LKML , 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 0/3] x86/PCI/MSI: Make sure that irq reservation mode works everywhere In-Reply-To: <20171020230127.GW6332@bhelgaas-glaptop.roam.corp.google.com> Message-ID: References: <20171017075456.694047687@linutronix.de> <20171020230127.GW6332@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Oct 2017, Bjorn Helgaas wrote: > On Tue, Oct 17, 2017 at 09:54:56AM +0200, Thomas Gleixner wrote: > > Dexuan reported that the recent rework of the vector allocation mode in x86 > > broke HyperV PCI passtrough because the rework missed to add the > > MSI_FLAG_MUST_REACTIVATE flag to the HyperV/PCI interrupt domain info. > > > > The simple solution would be to set the flag in the HyperV/PCI driver but > > it's better to make this generic and let the PCI/MSI core code set the flag > > when reservation mode is enabled. That ensures that future users of this > > wont trip over the same problem. > > > > Thanks, > > > > tglx > > > > --- > > arch/x86/Kconfig | 2 +- > > arch/x86/kernel/apic/msi.c | 5 ++--- > > drivers/pci/msi.c | 2 ++ > > kernel/irq/Kconfig | 3 +++ > > 4 files changed, 8 insertions(+), 4 deletions(-) > > This mentions 4900be83602b ("x86/vector/msi: Switch to global reservation > mode"), which I don't have, so I assume it's an x86 thing. So I guess > you'll probably merge this via the same tree? Yes, it's in tip/x86/apic branch and the fixups are applied there now as well. Thanks, tglx