Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754773AbZAETzh (ORCPT ); Mon, 5 Jan 2009 14:55:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752694AbZAETz3 (ORCPT ); Mon, 5 Jan 2009 14:55:29 -0500 Received: from outbound-mail-125.bluehost.com ([67.222.38.25]:59959 "HELO outbound-mail-125.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752634AbZAETz2 (ORCPT ); Mon, 5 Jan 2009 14:55:28 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=virtuousgeek.org; h=Received:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id:X-Identified-User; b=jY5hEM7vPUNynqGe4QFDLZgZiSCorvZGI9wJVhVhQLrmMN2NmmlM9DFrmc2bdl9DRnO4HKky8sTb+ZySRW/1cQ1qSKC+V3TuAnOCQXvxNAunliIfekP0vr7p3fUnCDUb; From: Jesse Barnes To: "Rafael J. Wysocki" Subject: Re: [PATCH] x86 PCI: Do not use interrupt links for devices using MSI-X Date: Mon, 5 Jan 2009 11:55:25 -0800 User-Agent: KMail/1.10.1 (Linux/2.6.27.9-73.fc9.x86_64; KDE/4.1.3; x86_64; ; ) Cc: Ingo Molnar , LKML , Linux PCI , "H. Peter Anvin" , Thomas Gleixner References: <200901042308.42625.rjw@sisk.pl> <20090105130439.GA6014@elte.hu> <200901051450.28310.rjw@sisk.pl> In-Reply-To: <200901051450.28310.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901051155.26209.jbarnes@virtuousgeek.org> X-Identified-User: {642:box128.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 75.111.27.49 authed with jbarnes@virtuousgeek.org} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1992 Lines: 62 On Monday, January 5, 2009 5:50 am Rafael J. Wysocki wrote: > On Monday 05 January 2009, Ingo Molnar wrote: > > * Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > pcibios_enable_device() and pcibios_disable_device() don't handle > > > IRQs for devices that have MSI enabled and it should tread the > > > > s/tread/treat > > Ah, thanks. > > > > devices with MSI-X enabled in the same way. > > > > > > Signed-off-by: Rafael J. Wysocki > > > --- > > > arch/x86/pci/common.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > looks good - Jesse, what do you think? > > > > Rafael, i'm curious is this in response to some regression/bug? Did some > > box or driver get confused by us enabling/disabling the GSI? Some IRQ > > flood perhaps? > > Well, I don't have any MSI-X capable boxes around. :-) > > I was just reviewing the code and spotted this. > > > btw., there's a small observation: > > > + if (!dev->msi_enabled && !dev->msix_enabled) > > > > maybe a "pci_has_gsi_irq()" wrapper would make these checks cleaner and > > would make things more robust, should there be any new IRQ delivery > > method be introduced in the future? > > Well, perhaps something like the patch below? > > Thanks, > Rafael > > --- > Subject: x86 PCI: Do not use interrupt links for devices using MSI-X (rev. > 2) From: Rafael J. Wysocki > > pcibios_enable_device() and pcibios_disable_device() don't handle > IRQs for devices that have MSI enabled and it should treat the > devices with MSI-X enabled in the same way. > > Signed-off-by: Rafael J. Wysocki Looks good, applied this one. Thanks, -- Jesse Barnes, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/