From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [PATCH 1/8] ARM: SCU: Add common routines for secondary CPU bootup Date: Thu, 2 Dec 2010 17:38:24 +0000 Message-ID: <20101202173824.GE10461@n2100.arm.linux.org.uk> References: <20101130171626.GA6165@oksana.dev.rtsoft.ru> <20101130171658.GA24034@oksana.dev.rtsoft.ru> <20101130233204.GB14383@n2100.arm.linux.org.uk> <20101201002527.GC14383@n2100.arm.linux.org.uk> <20101202152428.GD10461@n2100.arm.linux.org.uk> <1291307320.11271.51.camel@e102109-lin.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from caramon.arm.linux.org.uk ([78.32.30.218]:33878 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757670Ab0LBRjD (ORCPT ); Thu, 2 Dec 2010 12:39:03 -0500 Content-Disposition: inline In-Reply-To: <1291307320.11271.51.camel@e102109-lin.cambridge.arm.com> Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: Catalin Marinas Cc: Anton Vorontsov , Kukjin Kim , Srinidhi Kasagar , Tony Lindgren , Jamie Iles , Colin Cross , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org On Thu, Dec 02, 2010 at 04:28:40PM +0000, Catalin Marinas wrote: > The SCU is part of the core TRM, so I don't expect it to be the same > across various MP cores (and A15 is an example). > > You may want to consolidate functions like scu_prepare_cpus (maybe call > it smp_prepare_cpus) You do realise the function called from architecture independent code is called 'smp_prepare_cpus' ? > and something that calls set_cpu_possible() but > with platform callbacks for getting the number of calls and initialising > the SMP (SCU for most platforms). What if a platform, for what ever reason, wants to have 3 CPUs, numbered 0, 2, 3 ? That's the reason why the code which sets the possible and present maps isn't in the ARM core code - Eg, we don't know if a platform wants to keep CPU 1 in AMP mode to run some special software on it. > Whether this is worth, I don't know. I don't think it's worth it because I think trying to considate this is going to cripple the code structure in the future. What we currently have is a nice sane separation of the core SMP support from the platform specific parts of the SMP support. BTW, is it worth making sure that the IC and SCU standby mode bits are set for A9 MPCore ?