[Skiboot] [PATCH] external/mambo: Handle greater than 16 CPUs

Cédric Le Goater clg at kaod.org
Fri Feb 4 23:22:14 AEDT 2022


On 2/4/22 08:01, Michael Neuling wrote:
> In OF mambo pads zeros in the CPU node names. So if you have more than
> 16 CPUs, the first core will be at /cpus/PowerPC at 00. Currently we
> always look for /cpus/PowerPC at 0.
> 
> Fix by zero padding based on the max CPU count. This also converts to
> hex since that's what's actually needed.
> 
> This fix should handle any topology. I've tested upto 128 threads (16
> cores * 8 threads) but past that the mambo I have starts throwing
> internal errors.
> 
> Signed-off-by: Michael Neuling <mikey at neuling.org>

Applied to master.

Thanks,

C.


More information about the Skiboot mailing list