1. 07 3月, 2014 1 次提交
    • N
      powerpc/pseries: Use remove_memory() to remove memory · 9ac8cde9
      Nathan Fontenot 提交于
      The memory remove code for powerpc/pseries should call remove_memory()
      so that we are holding the hotplug_memory lock during memory remove
      operations.
      
      This patch updates the memory node remove handler to call remove_memory()
      and adds a ppc_md.remove_memory() entry to handle pseries specific work
      that is called from arch_remove_memory().
      
      During memory remove in pseries_remove_memblock() we have to stay with
      removing memory one section at a time. This is needed because of how memory
      resources are handled. During memory add for pseries (via the probe file in
      sysfs) we add memory one section at a time which gives us a memory resource
      for each section. Future patches will aim to address this so will not have
      to remove memory one section at a time.
      Signed-off-by: NNathan Fontenot <nfont@linux.vnet.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      9ac8cde9
  2. 10 10月, 2013 1 次提交
    • R
      powerpc: add explicit OF includes · 26a2056e
      Rob Herring 提交于
      When removing prom.h include by of.h, several OF headers will no longer
      be implicitly included. Add explicit includes of of_*.h as needed.
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      Acked-by: NGrant Likely <grant.likely@linaro.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Olof Johansson <olof@lixom.net>
      Cc: linuxppc-dev@lists.ozlabs.org
      26a2056e
  3. 30 4月, 2013 1 次提交
  4. 15 11月, 2012 1 次提交
  5. 11 10月, 2012 2 次提交
  6. 09 10月, 2012 1 次提交
    • Y
      memory-hotplug: suppress "Trying to free nonexistent resource... · d760afd4
      Yasuaki Ishimatsu 提交于
      memory-hotplug: suppress "Trying to free nonexistent resource <XXXXXXXXXXXXXXXX-YYYYYYYYYYYYYYYY>" warning
      
      When our x86 box calls __remove_pages(), release_mem_region() shows many
      warnings.  And x86 box cannot unregister iomem_resource.
      
        "Trying to free nonexistent resource <XXXXXXXXXXXXXXXX-YYYYYYYYYYYYYYYY>"
      
      release_mem_region() has been changed to be called in each
      PAGES_PER_SECTION by commit de7f0cba ("memory hotplug: release
      memory regions in PAGES_PER_SECTION chunks").  Because powerpc registers
      iomem_resource in each PAGES_PER_SECTION chunk.  But when I hot add
      memory on x86 box, iomem_resource is register in each _CRS not
      PAGES_PER_SECTION chunk.  So x86 box unregisters iomem_resource.
      
      The patch fixes the problem.
      Signed-off-by: NYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Jiang Liu <liuj97@gmail.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Christoph Lameter <cl@linux.com>
      Cc: Minchan Kim <minchan.kim@gmail.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Wen Congyang <wency@cn.fujitsu.com>
      Cc: Dave Hansen <dave@linux.vnet.ibm.com>
      Cc: Nathan Fontenot <nfont@austin.ibm.com>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d760afd4
  7. 12 7月, 2011 1 次提交
    • B
      powerpc/mm: Fix memory_block_size_bytes() for non-pseries · 770e1ac5
      Benjamin Herrenschmidt 提交于
      Just compiling pseries in the kernel causes it to override
      memory_block_size_bytes() regardless of what is the runtime
      platform.
      
      This cleans up the implementation of that function, fixing
      a bug or two while at it, so that it's harmless (and potentially
      useful) for other platforms. Without this, bugs in that code
      would trigger a WARN_ON() in drivers/base/memory.c when
      booting some different platforms.
      
      If/when we have another platform supporting memory hotplug we
      might want to either move that out to a generic place or
      make it a ppc_md. callback.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      770e1ac5
  8. 29 6月, 2011 1 次提交
  9. 04 2月, 2011 1 次提交
  10. 23 7月, 2010 1 次提交
  11. 14 7月, 2010 1 次提交
  12. 28 4月, 2010 1 次提交
  13. 10 2月, 2009 1 次提交
  14. 21 10月, 2008 1 次提交
  15. 10 10月, 2008 1 次提交
  16. 03 7月, 2008 2 次提交
    • 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
  17. 29 4月, 2008 2 次提交