powerpc/numa: Add form 1 NUMA affinity
authorAnton Blanchard <anton@samba.org>
Wed, 7 Apr 2010 15:33:44 +0000 (15:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 28 Apr 2010 06:22:33 +0000 (16:22 +1000)
commit4b83c330b4d38e869111bda6e9077d4f61ed974a
treec85d12aaea6be5dd26caa1b99ffa6adcaa50bc05
parentdbc9632a8c25c6efcc1ca3f3a2177c855b6e053e
powerpc/numa: Add form 1 NUMA affinity

Firmware changed the way it represents memory and cpu affinity on POWER7.
Unfortunately the old method now caps the topology to work around issues
with legacy operating systems. For Linux to get the correct topology we
need to use the new form 1 affinity information.

We set the form 1 field in the client architecture, and if we see "1" in the
ibm,associativity-form property firmware supports form 1 affinity and
we should look at the first field in the ibm,associativity-reference-points
array. If not we use the second field as we always have.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom_init.c
arch/powerpc/mm/numa.c