From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0B8BDB6FE0 for ; Wed, 15 Feb 2012 08:29:15 +1100 (EST) Message-ID: <1329254900.3772.10.camel@pasglop> Subject: Re: smp: Start up non-boot CPUs asynchronously From: Benjamin Herrenschmidt To: Arjan van de Ven Date: Wed, 15 Feb 2012 08:28:20 +1100 In-Reply-To: <4F3A2DFB.5000209@linux.vnet.ibm.com> References: <20120130205444.22f5e26a@infradead.org> <20120131125232.GD4408@elte.hu> <20120131054155.371e8307@infradead.org> <20120131143130.GF13676@elte.hu> <20120131072216.1ce78e50@infradead.org> <20120131161207.GA18357@elte.hu> <20120131082439.575978c0@infradead.org> <4F3A1891.8060001@linux.vnet.ibm.com> <4F3A2DFB.5000209@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: Stephen Rothwell , mikey@neuling.org, Peter Zijlstra , gregkh@linuxfoundation.org, ppc-dev , linux-kernel@vger.kernel.org, Milton Miller , Srivatsa Vaddagiri , Andrew Morton , "Srivatsa S. Bhat" , "H. Peter Anvin" , arjanvandeven@gmail.com, Ingo Molnar , "Paul E. McKenney" , Linus Torvalds , Thomas Gleixner List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2012-02-14 at 15:18 +0530, Srivatsa S. Bhat wrote: > > 2. Just below that we have smp_cpus_done(setup_max_cpus); and this translates > > to native_smp_cpus_done() under x86, which calls impress_friends(). > > And that means, the bogosum calculation and the total activated processor > > count which is printed, may get messed up. We also have code on powerpc that relies on the bringup having been completed in smp_cpus_done(), especially on platforms that don't support CPU hotplug (or fake it using sleep loops). In some case we unmap MMIO space or close access to components (i2c for example) that we use during the bringup for things like hard synchro of CPU timebases, etc... on some G5s we disable the elastic interface on the northbridge for CPUs that weren't brought up, that sort of thing... So this patch will break a LOT of stuff for us, it must at least be a config option for now, until we find another way to fix these things. Cheers, Ben.