1. 24 3月, 2014 1 次提交
  2. 11 2月, 2014 1 次提交
  3. 29 1月, 2014 1 次提交
  4. 02 12月, 2013 1 次提交
  5. 24 7月, 2013 1 次提交
  6. 20 6月, 2013 1 次提交
  7. 01 6月, 2013 1 次提交
    • S
      powerpc/pseries: Always enable CONFIG_HOTPLUG_CPU on PSERIES SMP · f274ef87
      Srivatsa S. Bhat 提交于
      Adam Lackorzynski reported the following build failure on
      !CONFIG_HOTPLUG_CPU configuration:
      
        CC      arch/powerpc/kernel/rtas.o
      arch/powerpc/kernel/rtas.c: In function ‘rtas_cpu_state_change_mask’:
      arch/powerpc/kernel/rtas.c:843:4: error: implicit declaration of function ‘cpu_down’ [-Werror=implicit-function-declaration]
      cc1: all warnings being treated as errors
      make[1]: *** [arch/powerpc/kernel/rtas.o] Error 1
      make: *** [arch/powerpc/kernel] Error 2
      
      The build fails because cpu_down() is defined only under CONFIG_HOTPLUG_CPU.
      
      Looking further, the mobility code in pseries is one of the call-sites which
      uses rtas_ibm_suspend_me(), which in turn calls rtas_cpu_state_change_mask().
      And the mobility code is unconditionally compiled-in (it does not fall under
      any Kconfig option). And commit 120496ac (powerpc: Bring all threads online
      prior to migration/hibernation) which introduced this build regression is
      critical for the proper functioning of the migration code. So it appears
      that the only solution to this problem is to enable CONFIG_HOTPLUG_CPU if
      SMP is enabled on PPC_PSERIES platforms. So make that change in the Kconfig.
      Reported-by: NAdam Lackorzynski <adam@os.inf.tu-dresden.de>
      Cc: stable@vger.kernel.org
      Signed-off-by: NSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      f274ef87
  8. 14 5月, 2013 1 次提交
  9. 10 1月, 2013 1 次提交
    • I
      powerpc: Hook up doorbells on server · e5e84f0a
      Ian Munsie 提交于
      This patch actually hooks up doorbell interrupts on POWER8:
      
      - Select the PPC_DOORBELL Kconfig option from PPC_PSERIES
      
      - Add the doorbell CPU feature bit to POWER8
      
      - We define a new pSeries_cause_ipi_mux() function that issues a
        doorbell interrupt if the recipient is another thread within the same
        core as the sender. If the recipient is in a different core it falls
        back to using XICS to deliver the IPI as before.
      
      - During pSeries_smp_probe() at boot, we check if doorbell interrupts
        are supported. If they are we set the cause_ipi function pointer to
        the above mentioned function, otherwise we leave it as whichever XICS
        cause_ipi function was determined by xics_smp_probe().
      Signed-off-by: NIan Munsie <imunsie@au1.ibm.com>
      Tested-by: NMichael Neuling <mikey@neuling.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      e5e84f0a
  10. 30 4月, 2012 1 次提交
  11. 16 4月, 2012 1 次提交
  12. 27 2月, 2012 1 次提交
  13. 22 2月, 2012 1 次提交
  14. 25 1月, 2012 1 次提交
  15. 08 12月, 2011 1 次提交
  16. 20 9月, 2011 1 次提交
  17. 09 6月, 2011 1 次提交
  18. 06 5月, 2011 1 次提交
    • T
      powerpc/pseries: Add support for IO event interrupts · 77eafe10
      Tseng-Hui (Frank) Lin 提交于
      This patch adds support for handling IO Event interrupts which come
      through at the /event-sources/ibm,io-events device tree node.
      
      The interrupts come through ibm,io-events device tree node are generated
      by the firmware to report IO events. The firmware uses the same interrupt
      to report multiple types of events for multiple devices. Each device may
      have its own event handler. This patch implements a plateform interrupt
      handler that is triggered by the IO event interrupts come through
      ibm,io-events device tree node, pull in the IO events from RTAS and call
      device event handlers registered in the notifier list.
      
      Device event handlers are expected to use atomic_notifier_chain_register()
      and atomic_notifier_chain_unregister() to register/unregister their
      event handler in pseries_ioei_notifier_list list with IO event interrupt.
      Device event handlers are responsible to identify if the event belongs
      to the device event handler. The device event handle should return NOTIFY_OK
      after the event is handled if the event belongs to the device event handler,
      or NOTIFY_DONE otherwise.
      Signed-off-by: NTseng-Hui (Frank) Lin <thlin@us.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      77eafe10
  19. 20 4月, 2011 1 次提交
    • B
      powerpc/xics: Rewrite XICS driver · 0b05ac6e
      Benjamin Herrenschmidt 提交于
      This is a significant rework of the XICS driver, too significant to
      conveniently break it up into a series of smaller patches to be honest.
      
      The driver is moved to a more generic location to allow new platforms
      to use it, and is broken up into separate ICP and ICS "backends". For
      now we have the native and "hypervisor" ICP backends and one common
      RTAS ICS backend.
      
      The driver supports one ICP backend instanciation, and many ICS ones,
      in order to accomodate future platforms with multiple possibly different
      interrupt "sources" mechanisms.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      0b05ac6e
  20. 21 1月, 2011 1 次提交
    • D
      kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT · 6a108a14
      David Rientjes 提交于
      The meaning of CONFIG_EMBEDDED has long since been obsoleted; the option
      is used to configure any non-standard kernel with a much larger scope than
      only small devices.
      
      This patch renames the option to CONFIG_EXPERT in init/Kconfig and fixes
      references to the option throughout the kernel.  A new CONFIG_EMBEDDED
      option is added that automatically selects CONFIG_EXPERT when enabled and
      can be used in the future to isolate options that should only be
      considered for embedded systems (RISC architectures, SLOB, etc).
      
      Calling the option "EXPERT" more accurately represents its intention: only
      expert users who understand the impact of the configuration changes they
      are making should enable it.
      Reviewed-by: NIngo Molnar <mingo@elte.hu>
      Acked-by: NDavid Woodhouse <david.woodhouse@intel.com>
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Cc: Greg KH <gregkh@suse.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Robin Holt <holt@sgi.com>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6a108a14
  21. 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
  22. 18 11月, 2010 1 次提交
  23. 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
  24. 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
  25. 24 3月, 2009 1 次提交
  26. 11 3月, 2009 2 次提交
  27. 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
  28. 25 7月, 2008 1 次提交
  29. 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
  30. 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
  31. 19 11月, 2007 1 次提交
  32. 22 3月, 2007 1 次提交
  33. 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
  34. 24 2月, 2006 1 次提交
  35. 03 11月, 2005 1 次提交
  36. 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
  37. 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