1
linux/arch/powerpc
Mohan Kumar M a5715d6dfc [POWERPC] pSeries/kexec: Fix for interrupt distribution
This allows any secondary CPU thread also to become boot cpu for
POWER5.  The patch is required to solve kdump boot issue when the
kdump kernel is booted with parameter "maxcpus=1".  XICS init code
tries to match the current boot cpu id with "reg" property in each CPU
node in the device tree.  But CPU node is created only for primary
thread CPU ids and "reg" property only reflects primary CPU ids.  So
when a kernel is booted on a secondary cpu thread above condition will
never meet and the default distribution server is left as zero.  This
leads to route the interrupts to CPU 0, but which is not online at
this time.

We use ibm,ppc-interrupt-server#s to check for both primary and
secondary CPU ids.  Accordingly default distribution server value is
initialized from "ibm,ppc-interrupt-gserver#s" property.  We loop
through ibm,ppc-interrupt-gserver#s property to find the global
distribution server from the last entry that matches with boot cpuid.

Signed-off-by: Mohan Kumar M <mohan@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-12-04 20:41:22 +11:00
..
boot [POWERPC] ps3: add a default zImage target 2006-12-04 20:41:17 +11:00
configs [POWERPC] update cell_defconfig for ps3 support 2006-12-04 20:41:01 +11:00
kernel [POWERPC] fix missing #include in sys_ppc32.c 2006-12-04 20:41:19 +11:00
lib [POWERPC] Disallow kprobes on emulate_step and branch_taken 2006-11-01 15:14:12 +11:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] ps3: multiplatform build fixes 2006-12-04 20:41:16 +11:00
oprofile [POWERPC] ps3: multiplatform build fixes 2006-12-04 20:41:16 +11:00
platforms [POWERPC] pSeries/kexec: Fix for interrupt distribution 2006-12-04 20:41:22 +11:00
sysdev [POWERPC] Don't compile arch/powerpc mpc52xx_pic driver for ARCH=ppc 2006-12-04 20:39:37 +11:00
xmon [POWERPC] cell: fix building without spufs 2006-12-04 20:41:12 +11:00
Kconfig [POWERPC] ps3: multiplatform build fixes 2006-12-04 20:41:16 +11:00
Kconfig.debug [POWERPC] Make xmon disassembly optional 2006-12-04 20:40:32 +11:00
Makefile [POWERPC] Create a "wrapper" script and use it in arch/powerpc/boot 2006-09-28 14:30:02 +10:00