android_kernel_google_msm/arch/powerpc/platforms
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
..
8xx Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
40x powerpc: Add missing NULL terminator to avoid boot panic on PPC40x 2013-01-17 08:50:42 -08:00
44x powerpc/44x: Add support PCI-E for APM821xx SoC and Bluestone board 2012-03-17 08:49:34 -04:00
52xx powerpc: Mark const init data with __initconst instead of __initdata 2012-04-02 14:00:03 +10:00
82xx Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
83xx Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
85xx powerpc/85xx: p1022ds: fix DIU/LBC switching with NAND enabled 2012-10-02 10:30:37 -07:00
86xx Merge remote-tracking branch 'kumar/next' into merge 2012-04-02 13:57:46 +10:00
512x irq_domain/powerpc: constify irq_domain_ops 2012-02-16 06:11:24 -07:00
amigaone pcspkr: Cleanup Kconfig dependencies 2011-06-09 15:01:41 +02:00
cell move d_rcu from overlapping d_child to overlapping d_alias 2015-04-14 17:33:58 +08:00
chrp powerpc/mpic: Remove duplicate MPIC_WANTS_RESET flag 2012-02-23 10:50:00 +11:00
embedded6xx Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
maple Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
pasemi Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
powermac powerpc/irqdomain: Fix broken NR_IRQ references 2012-04-30 10:45:26 +10:00
powernv PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
prep powerpc: drop unused Kconfig symbols 2011-10-31 23:39:52 +01:00
ps3 irq_domain: Move irq_virq_count into NOMAP revmap 2012-04-12 00:37:48 -06:00
pseries powerpc/pseries: Correct cpu affinity for dlpar added cpus 2015-09-18 09:20:35 +08:00
wsp Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
fsl_uli1575.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
Kconfig powerpc: add support for MPIC message register API 2012-03-16 16:15:28 -05:00
Kconfig.cputype powerpc: Kconfig updates for FSL BookE HUGETLB 64-bit 2011-12-07 16:26:23 +11:00
Makefile powerpc: Remove the main legacy iSerie platform code 2012-03-09 10:35:11 +11:00