1. 07 2月, 2008 9 次提交
    • N
      [POWERPC] Update irq descriptor affinity · a52572dd
      Nathan Fontenot 提交于
      The affinity mask in the virq descriptor needs to be set before we
      reset the affinity for the virq.  Without doing this the call to get
      the new irq server fails and we end up leaving the virq pinned to the
      cpu we are removing.
      
      This does not fail the cpu remove from the kernel, but it does prevent
      cpu dlpar remove operations from returning the cpu to the hypervisor.
      Signed-off-by: NNathan Fontenot <nfont@austin.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a52572dd
    • G
      [POWERPC] bootwrapper: Build multiple cuImages · 25431333
      Grant Likely 提交于
      Currently, the kernel uses CONFIG_DEVICE_TREE to wrap a kernel image
      with a fdt blob which means for any given configuration only one dts
      file can be selected and so support for only one board can be built
      
      This moves the selection of the default .dts file out of the kernel
      config and into the bootwrapper makefile.  The makefile chooses which
      images to build based on the kernel config and the dts source file
      name is taken directly from the image name.  For example "cuImage.ebony"
      will use "ebony.dts" as the device tree source file.
      
      In addition, this patch allows a specific image to be requested from the
      command line by adding "cuImage.%" and "treeImage.%" targets to the list
      of valid built targets in arch/powerpc/Makefile.  This allows the default
      dts selection to be overridden.
      
      Another advantage to this change is it allows a single defconfig to be
      supplied for all boards using the same chip family and only differing in
      the device tree.
      
      Important note: This patch adds two new zImage targets; zImage.dtb.% and
      zImage.dtb.initrd.% for zImages with embedded dtb files.  Currently
      there are 5 platforms which require this: ps3, ep405, mpc885ads, ep88xc,
      adder875-redboot and ep8248e.  This patch *changes the zImage filenames*
      for those platforms.  ie. 'zImage.ps3' is now 'zImage.dtb.ps3'.
      
      This new zImage.dtb targets were added so that the .dts file could be
      part of the dependancies list for building them.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      25431333
    • B
      [POWERPC] Fake NUMA emulation for PowerPC · 1daa6d08
      Balbir Singh 提交于
      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: NBalbir Singh <balbir@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      1daa6d08
    • O
      [POWERPC] Fix compilation for CONFIG_DEBUGGER=n and CONFIG_KEXEC=y · 7dbb922c
      Olof Johansson 提交于
      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: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      7dbb922c
    • P
    • J
      [POWERPC] mpc512x: Add MPC512x PSC support to MPC52xx psc driver · 25ae3a07
      John Rigby 提交于
      Add 512x support using the psc_ops framework established
      with the previous patch.
      
      All 512x PSCs share the same interrupt so add
      IRQF_SHARED to irq flags.
      Signed-off-by: NJohn Rigby <jrigby@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      25ae3a07
    • J
      [POWERPC] mpc512x: Factor out 5200 dependencies from 52xx psc driver · 599f030c
      John Rigby 提交于
      PSC devices are different between the mpc5200 and the mpc5121
      this patch localizes the differences in preparation for adding mpc5121
      support to the psc uart driver.
      Signed-off-by: NJohn Rigby <jrigby@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      599f030c
    • J
      [POWERPC] mpc512x: Device tree for MPC5121 ADS · bd05f91f
      John Rigby 提交于
      Minimal /dts-v1/ device tree for mpc5121 ads.
      
      port-number property in uart nodes
      will go away after the driver learns to use aliases
      Signed-off-by: NJohn Rigby <jrigby@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      bd05f91f
    • J
      [POWERPC] mpc512x: Basic platform support · e177edcd
      John Rigby 提交于
      512x is very similar to 83xx and most
      of this is patterned after code from 83xx.
      
      New platform:
          changed:
      	arch/powerpc/Kconfig
      	arch/powerpc/platforms/Kconfig
      	arch/powerpc/platforms/Kconfig.cputype
      	arch/powerpc/platforms/Makefile
          new:
      	arch/powerpc/platforms/512x/*
      	include/asm-powerpc/mpc512x.h
      Signed-off-by: NJohn Rigby <jrigby@freescale.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      e177edcd
  2. 06 2月, 2008 31 次提交