[PATCH] ppc64: Fix issue with non zero boot cpu

David Gibson david at gibson.dropbear.id.au
Mon Oct 10 11:55:38 EST 2005


On Mon, Sep 19, 2005 at 06:51:05PM +1000, Anton Blanchard wrote:
> 
> Hi,
> 
> The new version of the flattened device tree passes the boot cpuid in the
> header instead of via a linux,boot-cpu property.
> 
> We need to update the in kernel OF parsing code to do this, otherwise
> machines with a non zero boot cpuid fail to come up.

Ok, so I can get this write in dtc as well, what should the overall
semantics for finding the boot CPU be?  At present I'm guessing:

1) If the blob version is >=2, then take the CPU with physical ID
   given in the header.
2) Otherwise, if there is a linux,boot-cpu property on one of the CPU
   nodes, use that CPU.
3) Otherwise, if there's a node with 'reg' property equal to 0, use
   that one.
4) Otherwise, use the first listed CPU node.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/people/dgibson



More information about the Linuxppc64-dev mailing list