1. 29 11月, 2010 1 次提交
    • V
      powerpc: Add support for new hcall H_BEST_ENERGY · 5742bd85
      Vaidyanathan Srinivasan 提交于
      Create sysfs interface to export data from H_BEST_ENERGY hcall
      that can be used by administrative tools on supported pseries
      platforms for energy management	optimizations.
      
      sys/device/system/cpu/pseries_(de)activate_hint_list and
      sys/device/system/cpu/cpuN/pseries_(de)activate_hint will provide
      hints for activation and deactivation of cpus respectively.
      
      These hints are abstract number given by the hypervisor based
      on the extended knowledge the hypervisor has regarding the
      system topology and resource mappings.
      
      The activate and the deactivate sysfs entry is for the two
      distinct operations that we could do for energy savings.  When
      we have more capacity than required, we could deactivate few
      core to save energy.  The choice of the core to deactivate
      will be based on /sys/devices/system/cpu/deactivate_hint_list.
      The comma separated list of cpus (cores) will be the preferred
      choice.  If we have to activate some of the deactivated cores,
      then /sys/devices/system/cpu/activate_hint_list will be used.
      
      The per-cpu file
      /sys/device/system/cpu/cpuN/pseries_(de)activate_hint further
      provide more fine grain information by exporting the value of
      the hint itself.
      
      Added new driver module
      	arch/powerpc/platforms/pseries/pseries_energy.c
      under new config option CONFIG_PSERIES_ENERGY
      Signed-off-by: NVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      5742bd85
  2. 18 11月, 2010 1 次提交
  3. 18 12月, 2009 1 次提交
    • M
      powerpc/pseries: Select XICS and PCI_MSI PSERIES · 8a55c4ba
      Mel Gorman 提交于
      It's possible to set CONFIG_XICS without CONFIG_PCI_MSI. When that happens,
      the kernel fails to build with
      
      arch/powerpc/platforms/built-in.o: In function `.xics_startup':
      xics.c:(.text+0x12f60): undefined reference to `.unmask_msi_irq' make: ***
      [.tmp_vmlinux1] Error 1
      
      Furthermore, as noted by Benjamin Herrenschmidt, "CONFIG_XICS should be
      made invisible and selected by PSERIES."
      
      This patch fixes PSERIES to select both options
      
      Signed-off-by: Mel Gorman <mel[at]csn.ul.ie>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      8a55c4ba
  4. 30 10月, 2009 2 次提交
    • B
      powerpc: Add kdump support to Collaborative Memory Manager · 8be8cf5b
      Brian King 提交于
      When running Active Memory Sharing, the Collaborative Memory Manager (CMM)
      may mark some pages as "loaned" with the hypervisor. Periodically, the
      CMM will query the hypervisor for a loan request, which is a single signed
      value. When kexec'ing into a kdump kernel, the CMM driver in the kdump
      kernel is not aware of the pages the previous kernel had marked as "loaned",
      so the hypervisor and the CMM driver are out of sync. Fix the CMM driver
      to handle this scenario by ignoring requests to decrease the number of loaned
      pages if we don't think we have any pages loaned. Pages that are marked as
      "loaned" which are not in the balloon will automatically get switched to "active"
      the next time we touch the page. This also fixes the case where totalram_pages
      is smaller than min_mem_mb, which can occur during kdump.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      8be8cf5b
    • B
      powerpc/chrp: Use the same RTAS daemon as pSeries · 3d541c4b
      Benjamin Herrenschmidt 提交于
      The CHRP code has some fishy timer based code to scan the RTAS event
      log, which uses a 1KB stack buffer and doesn't even use the results.
      
      The pSeries code as a nicer daemon that allows userspace to read the
      event log and basically uses the same RTAS interface
      
      This patch moves rtasd.c out of platform/pseries and makes it usable
      by CHRP, after removing the old crufty event log mechanism in there.
      
      The nvram logging part of the daemon is still only available on 64-bit
      since the underlying nvram management routines aren't currently shared.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      3d541c4b
  5. 24 3月, 2009 1 次提交
  6. 11 3月, 2009 2 次提交
  7. 21 12月, 2008 1 次提交
    • B
      powerpc: Disable Collaborative Memory Manager for kdump · 2218108e
      Brian King 提交于
      When running Active Memory Sharing, the Collaborative Memory Manager
      (CMM) may mark some pages as "loaned" with the hypervisor.
      Periodically, the CMM will query the hypervisor for a loan request,
      which is a single signed value.  When kexec'ing into a kdump kernel,
      the CMM driver in the kdump kernel is not aware of the pages the
      previous kernel had marked as "loaned", so the hypervisor and the CMM
      driver are out of sync.  This results in the CMM driver getting a
      negative loan request, which can then get treated as a large unsigned
      value and can cause kdump to hang due to the CMM driver inflating too
      large.  Since there really is no clean way for the CMM driver in the
      kdump kernel to clean this up, simply disable CMM in the kdump kernel.
      This fixes hangs we were seeing doing kdump with AMS.
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2218108e
  8. 25 7月, 2008 1 次提交
  9. 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
  10. 24 4月, 2008 1 次提交
    • M
      [POWERPC] Add CONFIG_PPC_PSERIES_DEBUG to enable debugging for platforms/pseries · 36f8a2c4
      Michael Ellerman 提交于
      Add a DEBUG config setting which turns on all (most) of the debugging
      under platforms/pseries.
      
      To have this take effect we need to remove all the #undef DEBUG's, in
      various files. We leave the #undef DEBUG in platforms/pseries/lpar.c,
      as this enables debugging printks from the low-level hash table routines,
      and tends to make your system unusable. If you want those enabled you
      still have to turn them on by hand.
      
      Also some of the RAS code has a DEBUG block which causes a functional
      change, so I've keyed this off a different (non-existant) debug #define.
      
      This is only enabled if you have PPC_EARLY_DEBUG enabled also.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      36f8a2c4
  11. 19 11月, 2007 1 次提交
  12. 22 3月, 2007 1 次提交
  13. 14 3月, 2006 1 次提交
    • P
      powerpc: Disallow lparcfg being a module · 82dfdcae
      Paul Mackerras 提交于
      The lparcfg code needs several things which are pretty arcane internal
      details and which we don't want to export, which means that lparcfg
      doesn't work when built as a module.  This makes it a bool instead of
      a tristate in the Kconfig so that users can't try to build it as a
      module.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      82dfdcae
  14. 24 2月, 2006 1 次提交
  15. 03 11月, 2005 1 次提交
  16. 26 10月, 2005 1 次提交
    • P
      powerpc: Merge rtas.c into arch/powerpc/kernel · 033ef338
      Paul Mackerras 提交于
      This splits arch/ppc64/kernel/rtas.c into arch/powerpc/kernel/rtas.c,
      which contains generic RTAS functions useful on any CHRP platform,
      and arch/powerpc/platforms/pseries/rtas-fw.[ch], which contain
      some pSeries-specific firmware flashing bits.  The parts of rtas.c
      that are to do with pSeries-specific error logging are protected
      by a new CONFIG_RTAS_ERROR_LOGGING symbol.  The inclusion of rtas.o
      is controlled by the CONFIG_PPC_RTAS symbol, and the relevant
      platforms select that.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      033ef338
  17. 26 9月, 2005 1 次提交
    • P
      powerpc: Merge enough to start building in arch/powerpc. · 14cf11af
      Paul Mackerras 提交于
      This creates the directory structure under arch/powerpc and a bunch
      of Kconfig files.  It does a first-cut merge of arch/powerpc/mm,
      arch/powerpc/lib and arch/powerpc/platforms/powermac.  This is enough
      to build a 32-bit powermac kernel with ARCH=powerpc.
      
      For now we are getting some unmerged files from arch/ppc/kernel and
      arch/ppc/syslib, or arch/ppc64/kernel.  This makes some minor changes
      to files in those directories and files outside arch/powerpc.
      
      The boot directory is still not merged.  That's going to be interesting.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      14cf11af