[PATCH 1/4] ARM: SCU: Add generic routines for secondary CPU bootup
Anton Vorontsov
cbouatmailru at gmail.com
Sat Jul 31 12:38:54 EDT 2010
On Sat, Jul 31, 2010 at 04:41:34PM +0100, Russell King - ARM Linux wrote:
> On Tue, Jul 27, 2010 at 09:11:40PM +0400, Anton Vorontsov wrote:
> > For CNS3xxx we want to reuse the original ARM approach of booting
> > secondary CPUs. This patch turns VExpress' code into "SCU library",
> > so that now platform code can call the generic routines.
>
> I'm not sure this should become a "SCU library" - the name seems wrong.
Well, how would you name it? Would you also move these routines
into a separate file (is there any preference for the file name)?
> When you consider that the SCU is the 'snoop control unit', which has
> no relation to how secondary CPUs are booted, it makes little sense.
>
> The secondary CPU boot protocol has much more to do with the boot
> loader than with the hardware.
Yup.
> I also suspect that we can get rid of the 'holding pen' stuff and just
> rely on the IPI being sent to the intended target CPU. I don't think
> anyone has really updated this since the initial ARM SMP implementation.
Sure, but I belive that this patch set is a step into the right
direction, basically it just gets rid of code duplication, and
then we can improve the bootup code for all interested machines.
With these patches, machines don't* bother with the holding pen,
it just becomes an implementation detail of the SCU/secondary
CPU bootup code.
So it makes sense to consolidate the code anyway (which exactly
what these patches do), right?
* Except realview, it also uses scu_pen_release for hotplug
handling.
--
Anton Vorontsov
email: cbouatmailru at gmail.com
irc://irc.freenode.net/bd2
More information about the linux-arm-kernel
mailing list