android_kernel_google_msm/arch/powerpc
Nathan Fontenot c79a54264d powerpc/pseries: Correct cpu affinity for dlpar added cpus
commit f32393c943e297b8ae180c8f83d81a156c7d0412 upstream.

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: 1a8061c46c ("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>
[lizf: Backported to 3.4:
 - adjust context
 - jump to the "out" lable instead of returning -EINVAL]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-09-18 09:20:35 +08:00
..
boot powerpc/mpc85xx: Add ranges to etsec2 nodes 2015-06-19 11:40:32 +08:00
configs Merge remote-tracking branch 'kumar/next' into merge 2012-04-02 13:57:46 +10:00
include/asm powerpc: Fix 64 bit builds with binutils 2.24 2014-06-16 13:45:45 -07:00
kernel powerpc: Fix missing L2 cache size in /sys/devices/system/cpu 2015-09-18 09:20:29 +08:00
kvm KVM: PPC: Emulate dcbf 2014-03-11 16:10:03 -07:00
lib powerpc: Restore registers on error exit from csum_partial_copy_generic() 2014-07-09 10:51:21 -07:00
math-emu powerpc/math_emu/efp: Look for errata handler when type mismatches 2011-10-06 23:36:47 -05:00
mm vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
net bpf jit: Let the powerpc jit handle negative offsets 2012-04-30 13:40:50 -04:00
oprofile Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
perf powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH 2015-09-18 09:20:30 +08:00
platforms powerpc/pseries: Correct cpu affinity for dlpar added cpus 2015-09-18 09:20:35 +08:00
sysdev axonram: Fix bug in direct_access 2015-06-19 11:40:11 +08:00
xmon powerpc/xmon: Fix another endiannes issue in RTAS call from xmon 2015-04-14 17:33:55 +08:00
Kconfig powerpc: Work around gcc miscompilation of __pa() on 64-bit 2013-09-07 21:58:14 -07:00
Kconfig.debug irqdomain: Remove powerpc dependency from debugfs file 2012-03-29 14:31:02 -06:00
Makefile powerpc: Fix 64 bit builds with binutils 2.24 2014-06-16 13:45:45 -07:00
relocs_check.pl powerpc: Process dynamic relocations for kernel 2011-12-20 10:21:08 -05:00