1. 21 10月, 2008 2 次提交
  2. 13 10月, 2008 12 次提交
  3. 10 10月, 2008 1 次提交
  4. 07 10月, 2008 1 次提交
  5. 16 9月, 2008 2 次提交
    • S
      powerpc: Separate the irq radix tree insertion and lookup · 967e012e
      Sebastien Dugue 提交于
      irq_radix_revmap() currently serves 2 purposes, irq mapping lookup
      and insertion which happen in interrupt and process context respectively.
      
      Separate the function into its 2 components, one for lookup only and one
      for insertion only.
      
      Fix the only user of the revmap tree (XICS) to use the new functions.
      
      Also, move the insertion into the radix tree of those irqs that were
      requested before it was initialized at said tree initialization.
      
      Mutual exclusion between the tree initialization and readers/writers is
      handled via a state variable (revmap_trees_allocated) set to 1 when the tree
      has been initialized and set to 2 after the already requested irqs have been
      inserted in the tree by the init path. This state is checked before any reader
      or writer access just like we used to check for tree.gfp_mask != 0 before.
      
      Finally, now that we're not any longer inserting nodes into the radix-tree
      in interrupt context, turn the GFP_ATOMIC allocations into GFP_KERNEL ones.
      Signed-off-by: NSebastien Dugue <sebastien.dugue@bull.net>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Michael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      967e012e
    • N
      powerpc: Check rc of notifier chain for memory remove · 525c411d
      Nathan Fontenot 提交于
      The return code from invocation of the notifier for
      pSeries_reconfig_chain during update of the device tree is not
      checked.  This causes writes to /proc/ppc64/ofdt to update memory
      properties (i.e. ibm,dyamic-reconfiguration-memory) to always
      return success, instead of the result of the notifier chain.
      
      This happens specifically when we remove/add memory from the
      device tree on machines using memory specified in the
      ibm,dynamic-reconfiguration-memory property of the device tree.
      Signed-off-by: NNathan Fontenot <nfont@austin.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      525c411d
  6. 07 9月, 2008 1 次提交
  7. 26 8月, 2008 1 次提交
  8. 20 8月, 2008 2 次提交
  9. 18 8月, 2008 2 次提交
  10. 28 7月, 2008 1 次提交
  11. 25 7月, 2008 4 次提交
  12. 22 7月, 2008 2 次提交
  13. 17 7月, 2008 1 次提交
    • J
      powerpc: pci config cleanup · b500563b
      John Rigby 提交于
      Choosing PCI or not at config time is allowed on some
      platforms via an if expression in arch/powerpc/Kconfig.
      To add a new platform with PCI support selectable at
      config time, you must change the if expression.  This
      patch makes this easier by changing:
          bool "PCI support" if <long expression>
      to
          bool "PCI support" if PPC_PCI_CHOICE
      and adding select PPC_PCI_CHOICE to all the config nodes that
      were previously in the PCI if expression.
      
      Platforms with unconditional PCI support continue to
      just select PCI in their config nodes.
      Signed-off-by: NJohn Rigby <jrigby@freescale.com>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      b500563b
  14. 15 7月, 2008 1 次提交
  15. 09 7月, 2008 2 次提交
  16. 03 7月, 2008 3 次提交
    • N
      powerpc/pseries: Update the device tree correctly for drconf memory add/remove · 3c3f67ea
      Nathan Fontenot 提交于
      This updates the device tree manipulation routines so that memory
      add/remove of lmbs represented under the
      ibm,dynamic-reconfiguration-memory node of the device tree invokes the
      hotplug notifier chain.
      
      This change is needed because of the change in the way memory is
      represented under the ibm,dynamic-reconfiguration-memory node.  All lmbs
      are described in the ibm,dynamic-memory property instead of having a
      separate node for each lmb as in previous device tree layouts.  This
      requires the update_node() routine to check for updates to the
      ibm,dynamic-memory property and invoke the hotplug notifier chain.
      
      This also updates the pseries hotplug notifier to be able to gather information
      for lmbs represented under the ibm,dynamic-reconfiguration-memory node and
      have the lmbs added/removed.
      Signed-off-by: NNathan Fontenot <nfont@austin.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      3c3f67ea
    • N
      powerpc/pseries: Use base address to derive starting page frame number · 92ecd179
      Nathan Fontenot 提交于
      Use the base address of the lmb to derive the starting page frame number
      instead of trying to extract it from the drc index of the lmb.  The drc
      index should not be used for this as it will, and did, break.
      
      Until this point, systems that have had memory represented in the device
      tree with a node for each lmb the drc index would (luckily) closely
      track the base address of the lmb.  For example a lmb with a drc index
      of 8000000a would have a base address of a0000000.  This correlation
      allowed the current code to derive the starting page frame number from
      the drc inddex
      
      Device tree layouts where lmbs are represented under the
      ibm,dynamic-reconfiguration-memory node in the ibm,dynamic-memory
      property do not have this correlation between the drc index and base
      address of the lmb.
      Signed-off-by: NNathan Fontenot <nfont@austin.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      92ecd179
    • N
      powerpc/pseries: Allow phandle to be specified in formats other than decimal · 4b6e805e
      Nathan Fontenot 提交于
      Allow the phandle passed to the /proc/ppc64/ofdt file to be specified
      in formats other than decimal.  This allows us to easily specify phandle
      values in hex that would otherwise appear as negative integers.
      
      This is an issue on systems where the value of
      /proc/device-tree/ibm,dynamic-reconfiguration-memory.ibm,phandle is
      fffffff9.  Having to pass this to the ofdt file as a string results in
      a large negative number, and simple_strtoul() does not handle negative
      numbers.
      Signed-off-by: NNathan Fontenot <nfont@austin.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      4b6e805e
  17. 30 6月, 2008 1 次提交
  18. 26 6月, 2008 1 次提交