Skip to content

Add max CPU nodes field to ibm,client-architecture call

Joel Schopp linuxppc-dev 2 versions – In review

Get series with b4
b4 am 1265064639.5391.17.camel@jschopp-laptop

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add static fields to ibm,client-architecture callarch/powerpc/kernel/prom_init.c+17 -20 replies
2/2Update ibm,client-architecture call field based on device treearch/powerpc/kernel/prom_init.c+42 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] Add max CPU nodes field to ibm,client-architecture call

Large NUMA machines require Linux to indicate support for more than 64 cpu cores. This is done through the ibm,client-architecture call, and is documented in the PAPR. There is also another new field added to indicate that the OS is Linux as a hint for possible future performance settings.

The first patch attempts to statically initialize the number of supported cores with NR_CPUS, the maximum Linux could boot if the cpus did not have multi-threading (SMT). It can overestimate by the factor of SMT. For instance on Power6 with 2 way SMT it would overestimate by a factor of 2. The result of this overestimation is that Linux might not be able boot all the cpus assigned to it, but would still boot NR_CPUS worth of SMT threads.

The second patch adjusts for SMT by reading the device tree before unflattening.

I've updated patch 1 from previous comments. Patch 1 can be taken on its own if Patch 2 seems like overkill.

v2 - Updated patch 2 style and messages. Basic functionality is the same as v1.