27 Apr, 2008

1 commit

  • This functionality is definitely experimental, but is capable of running
    unmodified PowerPC 440 Linux kernels as guests on a PowerPC 440 host. (Only
    tested with 440EP "Bamboo" guests so far, but with appropriate userspace
    support other SoC/board combinations should work.)

    See Documentation/powerpc/kvm_440.txt for technical details.

    [stephen: build fix]

    Signed-off-by: Hollis Blanchard
    Acked-by: Paul Mackerras
    Signed-off-by: Stephen Rothwell
    Signed-off-by: Avi Kivity

    Hollis Blanchard
     

17 Apr, 2008

1 commit


24 Dec, 2007

2 commits


11 Dec, 2007

1 commit

  • This makes the early debug option force the console loglevel
    to the max. The early debug option is meant to catch messages very
    early in the kernel boot process, in many cases, before the kernel
    has a chance to parse the "debug" command line argument. Thus it
    makes sense when CONFIG_PPC_EARLY_DEBUG is set, to force the console
    log level to the max at boot time.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     

20 Oct, 2007

1 commit

  • Currently there's no way to enable early boot console on PowerPC 44x
    not specifying uart's physical address in kernel config, which is used
    for very early debug messages. This patch splits very early debug output
    (which needs uart physical address in kernel config) and early boot console
    (which searches for uarts in the device tree using find_legacy_serial_ports).
    We enable early boot console for all 44x processors, while (dangerous)
    early debug is user-selectable.

    Signed-off-by: Valentine Barshak
    Signed-off-by: Josh Boyer

    Valentine Barshak
     

13 Oct, 2007

1 commit

  • Remove the following redundant and never or rarely used kconfig syntax:

    - "def_boolean" (same as "def_bool")
    - "requires" (same as "depends on")
    - "depends" (same as "depends on")

    This patch contains the code changes and Kconfig updates.
    The shipped files are in next patch to let actual codechange stand out.

    Signed-off-by: Adrian Bunk
    Cc: "Randy.Dunlap"
    Cc: Bryan Wu
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Dmitry Torokhov
    Cc: "John W. Linville"
    Cc: Roman Zippel
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Adrian Bunk
     

05 Oct, 2007

1 commit

  • The way the current CPM binding describes available multi-user (a.k.a.
    dual-ported) RAM doesn't work well when there are multiple free regions,
    and it doesn't work at all if the region doesn't begin at the start of
    the muram area (as the hardware needs to be programmed with offsets into
    this area). The latter situation can happen with SMC UARTs on CPM2, as its
    parameter RAM is relocatable, u-boot puts it at zero, and the kernel doesn't
    support moving it.

    It is now described with a muram node, similar to QE. The current CPM
    binding is sufficiently recent (i.e. never appeared in an official release)
    that compatibility with existing device trees is not an issue.

    The code supporting the new binding is shared between cpm1 and cpm2, rather
    than remain separated. QE should be able to use this code as well, once
    minor fixes are made to its device trees.

    Signed-off-by: Scott Wood
    Signed-off-by: Kumar Gala

    Scott Wood
     

04 Oct, 2007

1 commit


13 Sep, 2007

1 commit


30 Jul, 2007

1 commit


26 Jul, 2007

1 commit


09 May, 2007

1 commit


08 May, 2007

1 commit

  • This adds support for early serial debugging via the built in
    port on IBM/AMCC PowerPC 44x CPUs. It uses a bolted TLB entry in
    address space 1 for the UART's mapping, allowing robust debugging both
    before and after the initialization of the MMU.

    Signed-off-by: David Gibson
    Signed-off-by: Paul Mackerras

    David Gibson
     

13 Apr, 2007

2 commits

  • Here's an implementation of DEBUG_PAGEALLOC for 64 bits powerpc.
    It applies on top of the 32 bits patch.

    Unlike Anton's previous attempt, I'm not using updatepp. I'm removing
    the hash entries from the bolted mapping (using a map in RAM of all the
    slots). Expensive but it doesn't really matter, does it ? :-)

    Memory hot-added doesn't benefit from this unless it's added at an
    address that is below end_of_DRAM() as calculated at boot time.

    Signed-off-by: Benjamin Herrenschmidt

    arch/powerpc/Kconfig.debug | 2
    arch/powerpc/mm/hash_utils_64.c | 84 ++++++++++++++++++++++++++++++++++++++--
    2 files changed, 82 insertions(+), 4 deletions(-)
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     
  • Here's an implementation of DEBUG_PAGEALLOC for ppc32. It disables BAT
    mapping and is only tested with Hash table based processor though it
    shouldn't be too hard to adapt it to others.

    Signed-off-by: Benjamin Herrenschmidt

    arch/powerpc/Kconfig.debug | 9 ++++++
    arch/powerpc/mm/init_32.c | 4 +++
    arch/powerpc/mm/pgtable_32.c | 52 +++++++++++++++++++++++++++++++++++++++
    arch/powerpc/mm/ppc_mmu_32.c | 4 ++-
    include/asm-powerpc/cacheflush.h | 6 ++++
    5 files changed, 74 insertions(+), 1 deletion(-)
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     

22 Mar, 2007

1 commit

  • When we started arch/powerpc we duplicated a number of config options from
    arch/ppc for various platforms that are supported. Now that we actually
    support a few platforms, remove all the ones that haven't been moved over.
    Additionally, this cleanup moved the 82xx/PQ2 options over into
    arch/powerpc/platforms/82xx/Kconfig where they belong. It also killed
    GEN550 which doesn't exist in arch/powerpc.

    Signed-off-by: Kumar Gala

    Kumar Gala
     

07 Feb, 2007

2 commits


30 Jan, 2007

1 commit


04 Dec, 2006

3 commits

  • and therefore combined builds.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Paul Mackerras

    Stephen Rothwell
     
  • xmon still does not run on iSeries, but this allows us to build a combined
    kernel that includes it.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Paul Mackerras

    Stephen Rothwell
     
  • While adding spu disassembly support it struck me that we're actually
    carrying quite a lot of code around, just to do disassembly in the case
    of a crash.

    While on large systems it's not an issue, on smaller ones it might be
    nice to have xmon - but without the weight of the disassembly support.
    For a Cell build this saves ~230KB (!), and for pSeries ~195KB.

    We still support the 'di' and 'sdi' commands, however they just dump
    the instruction in hex.

    Move the definitions into a header to clean xmon.c just a tiny bit.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Arnd Bergmann

    Michael Ellerman
     

13 Sep, 2006

2 commits

  • xmon does not print a backtrace per default. This is bad on systems with
    USB keyboard, the most needed info about the crash is lost.
    print a backtrace during the very first xmon entry.

    Booting with xmon=nobt disables the autobacktrace functionality.

    Signed-off-by: Olaf Hering
    Signed-off-by: Paul Mackerras

    Olaf Hering
     
  • Add instrumentation for hypervisor calls on pseries. Call statistics
    include number of calls, wall time and cpu cycles (if available) and
    are made available via debugfs. Instrumentation code is behind the
    HCALL_STATS config option and has no impact if not enabled.

    Signed-off-by: Mike Kravetz
    Signed-off-by: Paul Mackerras

    Mike Kravetz
     

28 Jun, 2006

1 commit


19 May, 2006

1 commit

  • If you undefine all the early debugging options and then run make oldconfig,
    you don't get prompted to see if you want to enable any of them. This is
    annoying.

    AFAICT we can't do this just with a choice, because the choice is either
    optional, in which case we don't get prompted, or not in which case we _must_
    select early debugging.

    So add a bool which controls whether we have early debugging at all, and then
    if that's enabled provide the choice. The extra bool will actually be useful
    in another patch I have lying around, so this is a win-win.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Paul Mackerras

    Michael Ellerman
     

28 Mar, 2006

1 commit


11 Jan, 2006

1 commit

  • This patch adds Kconfig entries to control the early debugging options,
    currently in setup_64.c.

    Doing this via Kconfig rather than #defines means you can have one source tree,
    which is buildable for multiple platforms - and you can enable the correct
    early debug option for each platform via .config.

    I made udbg_early_init() a static inline because otherwise GCC is to daft to
    optimise it away when debugging is off.

    Now that we have udbg_init_rtas() we can make call_rtas_display_status* static.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Paul Mackerras

    Michael Ellerman
     

07 Nov, 2005

1 commit

  • Andrew Morton suggested to move kprobes from kernel hacking menu, since
    kernel hacking menu is in-appropriate for the Kprobes. This patch moves
    Kprobes and Oprofile under instrumentation menu.

    (akpm: it's not a natural fit, but things like djprobes and the s390 guys'
    statistics library need a home)

    Signed-of-by: Prasanna S Panchamukhi
    Cc: Philippe Elie
    Cc: John Levon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Prasanna S Panchamukhi
     

10 Oct, 2005

1 commit


01 Oct, 2005

1 commit


26 Sep, 2005

1 commit

  • 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: Paul Mackerras

    Paul Mackerras