]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Correct cpu affinity for dlpar added cpus
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Thu, 30 Apr 2015 01:42:06 +0000 (20:42 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 May 2015 03:47:24 +0000 (13:47 +1000)
commit3f8d728b93742d7a8165f3a61f6ca44ea7160371
tree5a3ff4a1c86aee07da2c65264068912ea91035f9
parentb6a1e38efbe01129d610386f530a9e903e0785f6
powerpc/pseries: Correct cpu affinity for dlpar added cpus

The incorrect ordering of operations during cpu dlpar add results in invalid
affinity for the cpu being added. The ibm,associativity property in the
device tree is populated with all zeroes for the added cpu which results in
invalid affinity mappings and all cpus appear to belong to node 0.

This occurs because rtas configure-connector is called prior to making the
rtas set-indicator calls. Phyp does not assign affinity information
for a cpu until the rtas set-indicator calls are made to set the isolation
and allocation state.

Correct the order of operations to make the rtas set-indicator
calls (done in dlpar_acquire_drc) before calling rtas configure-connector.

Fixes: d2a098e26b5b ("powerpc/pseries: Add kernel based CPU DLPAR handling")
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/dlpar.c