From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755539AbYDWSdD (ORCPT ); Wed, 23 Apr 2008 14:33:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753201AbYDWScw (ORCPT ); Wed, 23 Apr 2008 14:32:52 -0400 Received: from outbound-mail-121.bluehost.com ([67.222.38.21]:40705 "HELO outbound-mail-121.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755060AbYDWScv (ORCPT ); Wed, 23 Apr 2008 14:32:51 -0400 From: Jesse Barnes To: "Maciej W. Rozycki" Subject: Re: PCI MSI breaks when booting with nosmp Date: Wed, 23 Apr 2008 11:32:18 -0700 User-Agent: KMail/1.9.9 Cc: Jean Delvare , Andi Kleen , linux-pci@atrey.karlin.mff.cuni.cz, LKML , Pavel Machek , Tejun Heo , Tom Long Nguyen , Randy Dunlap , Jeff Garzik , Thomas Gleixner References: <200804172140.02311.jdelvare@suse.de> <200804231123.46506.jbarnes@virtuousgeek.org> In-Reply-To: <200804231123.46506.jbarnes@virtuousgeek.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804231132.19874.jbarnes@virtuousgeek.org> X-Identified-User: {642:box128.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 131.252.210.190 authed with jbarnes@virtuousgeek.org} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, April 23, 2008 11:23 am Jesse Barnes wrote: > On Wednesday, April 23, 2008 11:13 am Maciej W. Rozycki wrote: > > On Wed, 23 Apr 2008, Jesse Barnes wrote: > > > Yeah I think the patch is reasonable, would be good to get feedback > > > from Thomas/Andi/Ingo though... > > > > FWIW, the original idea behind "nosmp" or "maxcpus=0" (just as an > > implementation detail) vs "maxcpus=1" was that the two formers would > > disable the APIC circuitry altogether (including resisting from switching > > from the PIC compatibility mode on systems supporting it), while the > > latter would still boot UP, but with interrupts routed through the APICs. > > Essentially SMP implied all the MP circuitry/provisions in this context, > > the APICs being an inherent part of which. Therefore I think the > > original idea of implying "pci=nomsi" with "nosmp" certainly looks more > > in the spirit of the original setup to me. > > > > However we have "nolapic" these days as well and with this new proposal > > this option could effectively take over the old meaning of "nosmp" (you > > cannot do SMP without the local APIC, so "nolapic nosmp" is redundant). > > I am not entirely convinced it is the right way though... > > Yeah, I'm not particularly attached to either meaning. It looks like we'll > setup the local apic on 32 bit if the NMI vector is a local apic one, so in > that case at least the behavior will be the same. > > Anyway, we have two options: > 1) make nosmp/maxcpus=1 imply nolapic (and therefore disable MSI too) > 2) make nosmp enable the lapic (so MSI will work) Err, nosmp/maxcpus=0...