[BUG][PATCH] powerpc: fix numa distance for form0 device tree

Vaidyanathan Srinivasan svaidy at linux.vnet.ibm.com
Sat Mar 23 02:56:44 EST 2013

* Vaidyanathan Srinivasan <svaidy at linux.vnet.ibm.com> [2013-03-22 21:19:35]:


>     Prior to the above commit:
>     #define node_distance(from,to)
>     	((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE)
>     Restoring compatible behavior with this patch for old powerpc systems
>     with device tree where numa distance are encoded as form0.

This patch on v3.9-rc3 has been tested on multi-node POWER7 with
different device tree combinations.

numactl -H would show local distance '10' for same node and remote
distance '20' for other nodes.  This ensures NUMA level sched domain
gets built and load balancing could work across such configurations.


More information about the Linuxppc-dev mailing list