1. 30 10月, 2009 5 次提交
    • 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
    • B
      powerpc: Move /proc/ppc64 to /proc/powerpc and add symlink · 188917e1
      Benjamin Herrenschmidt 提交于
      Some of the stuff in /proc/ppc64 such as the RTAS bits are actually
      useful to some 32-bit platforms. Rename the file, and create a
      symlink on 64-bit for backward compatibility
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      188917e1
    • A
      powerpc: Make it possible to select hibernation on all PowerPCs · 64eb38a6
      Anton Vorontsov 提交于
      Just as with kexec, hibernation may fail even on well-tested platforms:
      some PCI device, a driver of which doesn't play well with hibernation,
      is enough to break resuming.
      
      Hibernation code is not much platform dependent, and hiding features only
      because these were not verified on a particular hardware is
      counterproductive: we just prevent the features from being widely tested.
      
      For example, with this patch I just tested hibernation on a MPC83xx
      board, and it works quite well, modulo a few drivers that need some
      fixing.
      
      So, let's make it possible to select hibernation support for all
      PowerPCs, then let's wait for any possible bug reports, and actually fix
      (or just collect ;-) the bugs instead of hiding them. If some platforms
      really can't stand hibernation, we can make a blacklist, with proper
      comments why exactly hibernation doesn't work, whether it is possible to
      fix, and what needs to be done to fix it.
      
      CONFIG_HIBERNATION is still =n by default, so the commit doesn't change
      anything apart from ability to set it to =y.
      
      I'm not sure if EXPERIMENTAL dependency is needed, I'd rather not add it
      for a few reasons:
      
      1) It doesn't matter much, for distro kernels user has no clue that some
         feature is experimental. Majority of defconfigs enable EXPERIMENTAL
         anyway (90 vs. 4, which, btw, means that EXPERIMENTAL is overused
         in Kconfigs);
      
      2) EXPERIMENTAL is a good thing for features that change default
         behaviour of a kernel, while for hibernation user has to explicitly
         issue 'echo disk > /sys/power/state' to trigger any hibernation bugs;
      
      3) Per init/Kconfig, EXPERIMENTAL is a good thing to scare and discourage
         users from 'widespread use of a feature', while we want to encourage
         that use.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      64eb38a6
    • M
      powerpc/ps3: Use pr_devel() in ps3/mm.c · 7424639a
      Michael Ellerman 提交于
      The non-debug case in ps3/mm.c uses pr_debug(), so that the compiler
      still does type checks etc. and doesn't complain about unused
      variables in the non-debug case.
      
      However with DEBUG=n and CONFIG_DYNAMIC_DEBUG=y there's still code
      generated for those pr_debugs().
      
      size before:
         text    data     bss     dec     hex filename
        17553	   4112	     88	  21753	   54f9	arch/powerpc/platforms/ps3/mm.o
      
      size after:
         text    data     bss     dec     hex filename
         7377	    776	     88	   8241	   2031	arch/powerpc/platforms/ps3/mm.o
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Acked-by: NGeoff Levand <geoffrey.levand@am.sony.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      7424639a
    • B
  2. 29 10月, 2009 1 次提交
  3. 28 10月, 2009 1 次提交
  4. 27 10月, 2009 10 次提交
  5. 26 10月, 2009 5 次提交
  6. 23 10月, 2009 10 次提交
  7. 21 10月, 2009 6 次提交
  8. 20 10月, 2009 1 次提交
  9. 18 10月, 2009 1 次提交