1. 07 Feb, 2008 3 commits
    • Balbir Singh's avatar
      [POWERPC] Fake NUMA emulation for PowerPC · 1daa6d08
      Balbir Singh authored
      Here's a dumb simple implementation of fake NUMA nodes for PowerPC.
      Fake NUMA nodes can be specified using the following command line
      option
      
      numa=fake=<node range>
      
      node range is of the format <range1>,<range2>,...<rangeN>
      
      Each of the rangeX parameters is passed using memparse().  I find the
      patch useful for fake NUMA emulation on my simple PowerPC machine.
      I've tested it on a numa box with the following arguments
      
      numa=fake=512M
      numa=fake=512M,768M
      numa=fake=256M,512M mem=512M
      numa=fake=1G mem=768M
      numa=fake=
      without any numa= argument
      
      The other side-effect introduced by this patch is that; in the case
      where we don't have NUMA information, we now set a node online after
      adding each LMB.  This node could very well be node 0, but in the case
      that we enable fake NUMA nodes, when we cross node boundaries, we need
      to set the new node online.
      Signed-off-by: default avatarBalbir Singh <balbir@linux.vnet.ibm.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      1daa6d08
    • Olof Johansson's avatar
      [POWERPC] Fix compilation for CONFIG_DEBUGGER=n and CONFIG_KEXEC=y · 7dbb922c
      Olof Johansson authored
      Looks like "[POWERPC] kdump shutdown hook support" broke builds when
      CONFIG_DEBUGGER=n and CONFIG_KEXEC=y, such as in g5_defconfig:
      
      arch/powerpc/kernel/crash.c: In function 'default_machine_crash_shutdown':
      arch/powerpc/kernel/crash.c:388: error: '__debugger_fault_handler' undeclared (first use in this function)
      arch/powerpc/kernel/crash.c:388: error: (Each undeclared identifier is reported only once
      arch/powerpc/kernel/crash.c:388: error: for each function it appears in.)
      
      Move the debugger hooks to under CONFIG_DEBUGGER || CONFIG_KEXEC, since
      that's when the crash code is enabled.
      
      (I should have caught this with my build-script pre-merge, my bad. :( )
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      7dbb922c
    • Paul Mackerras's avatar
  2. 06 Feb, 2008 37 commits