1. 26 6月, 2009 1 次提交
  2. 11 3月, 2009 1 次提交
    • A
      powerpc/udbg: Fix lost byte during console handover; change LFCR to CRLF · af9c7249
      Andrew Klossner 提交于
      When the console is on a serial port to be driven by serial8250, a
      character can be lost from the end of the first line in the two-line
      sequence
      
      	serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 42) is a 16550A
      	console handover: boot [udbg0] -> real [ttyS0]
      
      This happens because udbg_puts or udbg_write stuff the last byte of
      the line into the Tx FIFO and return, whereupon the serial8250
      initialization code immediately empties that FIFO.  The fix: udbg_puts
      and udbg_write now wait for the Tx FIFO to clear before returning.
      This delays the system by one additional serial frame time for each
      line written by udbg, but the effect is not noticeable, a cumulative
      17 milliseconds for 200 lines of early printk output at 115200 baud.
      
      Also, the routines in udbg_16550.c now emit CRLF instead of LFCR.
      Linux makes a point of emitting CRLF because, when serial output is
      captured to a file, LFCR sequences can confuse text editors.  See
      http://lkml.org/lkml/2006/2/4/50 for some history.
      Signed-off-by: NAndrew Klossner <andrew@cesa.opbu.xerox.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      af9c7249
  3. 21 10月, 2008 1 次提交
  4. 24 12月, 2007 1 次提交
  5. 11 12月, 2007 1 次提交
  6. 20 9月, 2007 1 次提交
  7. 08 5月, 2007 1 次提交
  8. 15 3月, 2007 1 次提交
  9. 07 2月, 2007 1 次提交
  10. 25 7月, 2006 1 次提交
  11. 07 7月, 2006 1 次提交
  12. 01 7月, 2006 1 次提交
  13. 07 2月, 2006 1 次提交
  14. 11 1月, 2006 1 次提交
  15. 09 1月, 2006 4 次提交
  16. 11 11月, 2005 1 次提交
    • D
      [PATCH] powerpc: Move udbg code to arch/powerpc · 35cd8785
      David Gibson 提交于
      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: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      35cd8785
  17. 06 9月, 2005 3 次提交