Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758027AbZAGReK (ORCPT ); Wed, 7 Jan 2009 12:34:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753253AbZAGRdz (ORCPT ); Wed, 7 Jan 2009 12:33:55 -0500 Received: from outbound-mail-145.bluehost.com ([67.222.38.35]:47207 "HELO outbound-mail-145.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752919AbZAGRdy (ORCPT ); Wed, 7 Jan 2009 12:33:54 -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=g++VInLlbW8lo004fZ3O/voE9gZj4nXKlu+v+9vjkdNiZvt/D1s/itRsIVOTvnE9L8vAp++iFJ7Nbcp0bsCVcsHFXCd9c896fckGxb3oCxLXbdSc1xJVei87qZQ+V7Vd; From: Jesse Barnes To: Ingo Molnar Subject: Re: [PATCH] x86 PCI: Do not use interrupt links for devices using MSI-X Date: Wed, 7 Jan 2009 09:33:51 -0800 User-Agent: KMail/1.9.10 Cc: "Rafael J. Wysocki" , LKML , Linux PCI , "H. Peter Anvin" , Thomas Gleixner References: <200901042308.42625.rjw@sisk.pl> <200901051153.07860.jbarnes@virtuousgeek.org> <20090107131348.GE3529@elte.hu> In-Reply-To: <20090107131348.GE3529@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901070933.52100.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: 2597 Lines: 62 On Wednesday, January 7, 2009 5:13 am Ingo Molnar wrote: > * Jesse Barnes wrote: > > On Monday, January 5, 2009 5:04 am 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 > > > > > > > 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? > > > > Yeah, seems obviously correct, I'll queue it up. > > > > > 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? > > > > > > 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? > > > > pci_has_msi_irq surely? Otherwise we'll catch pretty much everything? > > Or did you mean !pci_has_gsi_irq() here instead? > > Well - here the check is: "if (not MSI or MSIX)" in essence. I thought > that it might be confusing to call it _msi() as well, so we could approach > it via the inverse space: general system interrupts (GSIs) - which are > device irqs that are neither MSI nor MSIX. > > But if pci_has_msi_irq() can cleanly include the MSIX portion too, that's > fine too. (MSI-X is really MSI with wider eventing capabilities but > otherwise non-GSI just as much - and we dont want to enable (or even > touch) the legacy IRQ line registers for any of them, even if they happen > to be enumerated) > > Right? Right, I see where you're coming from. However, I've queued up Rafael's last patch with some fixes for dev vs. pci_dev and a name collision (pci_msi_enabled -> pci_dev_msi_enabled). Bjorn caught the fact that some other arches may want similar treatment too, I think Rafael is checking that out. -- 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/