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
     

14 Feb, 2007

1 commit

  • udbg_early_init() is a function used on 64 bit systems, which
    initializes whichever early udbg backend is configured. This function
    is not called on 32-bit, however if btext early debug is enabled it
    does have an explicit, inline, #ifdef-ed assignment performing
    analagous initialization.

    This patch makes things more uniform by folding the btext
    initialization as an option into udbg_early_init() and calling that
    from the 32-bit setup path.

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

    David Gibson
     

07 Feb, 2007

2 commits


28 Jun, 2006

1 commit


19 May, 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
     

09 Jan, 2006

5 commits

  • Added a common udbg_progress for use by ppc_md.progress()

    Signed-off-by: Kumar Gala
    Signed-off-by: Paul Mackerras

    Kumar Gala
     
  • include/asm-ppc/ had #ifdef __KERNEL__ in all header files that
    are not meant for use by user space, include/asm-powerpc does
    not have this yet.

    This patch gets us a lot closer there. There are a few cases
    where I was not sure, so I left them out. I have verified
    that no CONFIG_* symbols are used outside of __KERNEL__
    any more and that there are no obvious compile errors when
    including any of the headers in user space libraries.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Paul Mackerras

    Arnd Bergmann
     
  • The udbg low level io layer has an issue with udbg_getc() returning a
    char (unsigned on ppc) instead of an int, thus the -1 if you had no
    available input device could end up turned into 0xff, filling your
    display with bogus characters. This fixes it, along with adding a little
    blob to xmon to do a delay before exiting when getting an EOF and fixing
    the detection of ADB keyboards in udbg_adb.c

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

    Benjamin Herrenschmidt
     
  • This patch unifies udbg for both ppc32 and ppc64 when building the
    merged achitecture. xmon now has a single "back end". The powermac udbg
    stuff gets enriched with some ADB capabilities and btext output. In
    addition, the early_init callback is now called on ppc32 as well,
    approx. in the same order as ppc64 regarding device-tree manipulations.
    The init sequences of ppc32 and ppc64 are getting closer, I'll unify
    them in a later patch.

    For now, you can force udbg to the scc using "sccdbg" or to btext using
    "btextdbg" on powermacs. I'll implement a cleaner way of forcing udbg
    output to something else than the autodetected OF output device in a
    later patch.

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

    Benjamin Herrenschmidt
     
  • This moves the discovery of legacy serial ports to a separate file,
    makes it common to ppc32 and ppc64, and reworks it to use the new OF
    address translators to get to the ports early. This new version can also
    detect some PCI serial cards using legacy chips and will probably match
    those discovered port with the default console choice.

    Only ppc64 gets udbg still yet, unifying udbg isn't finished yet.

    It also adds some speed-probing code to udbg so that the default console
    can come up at the same speed it was set to by the firmware.

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

    Benjamin Herrenschmidt
     

11 Nov, 2005

1 commit

  • Since the udbg code in ppc64 has no ppc32 equivalent, move it straight
    over into arch/powerpc (and include/asm-powerpc for udbg.h). In time,
    we probably want to meld the various bits and pieces of 32-bit early
    debugging code into udbg, but for now only include it on
    CONFIG_PPC64=y builds. The only change during the move is to
    standardise the protecting #ifdef/#define in udbg.h, and move its
    banner comment above the initial #ifdef (which seems to be normal
    practice).

    Built and booted on POWER5 LPAR (ARCH=powerpc and ARCH=ppc64). Built
    for 32bit multiplatform (ARCH=powerpc).

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

    David Gibson