1. 28 4月, 2015 5 次提交
  2. 15 4月, 2015 2 次提交
  3. 10 4月, 2015 5 次提交
  4. 31 3月, 2015 3 次提交
    • J
      ttyFDC: Implement KGDB IO operations. · c2d7ef51
      James Hogan 提交于
      Implement KGDB IO operations for MIPS Fast Debug Channel (FDC). This can
      be enabled via Kconfig, which also allows the channel number to be
      chosen.
      
      The magic sysrq hack is implemented in the TTY driver, detecting just ^C
      for the KGDB channel, and ^O followed by a letter for the FDC console
      channel.
      
      The KGDB operations are reasonably efficient thanks to the flush
      callback, with a 4 byte buffer being used in both directions to allow up
      to 4 bytes to be encoded per FDC word. Reading of data for KGDB will
      discard any data received on other channels, which clearly isn't ideal,
      but given that there is a single FIFO shared between channels we can't
      do much better.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Cc: linux-mips@linux-mips.org
      Cc: kgdb-bugreport@lists.sourceforge.net
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/9147/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      c2d7ef51
    • J
      MIPS, ttyFDC: Add early FDC console support · e934945d
      James Hogan 提交于
      Add support for early console of MIPS Fast Debug Channel (FDC) on
      channel 1 with a call very early from the MIPS setup_arch().
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/9145/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      e934945d
    • J
      TTY: Add MIPS EJTAG Fast Debug Channel TTY driver · 4cebec60
      James Hogan 提交于
      Add TTY driver and consoles for the MIPS EJTAG Fast Debug Channel (FDC),
      which is found on the per-CPU MIPS Common Device Mapped Memory (CDMM)
      bus.
      
      The FDC is a per-CPU device which is used to communicate with an EJTAG
      probe. RX and TX FIFOs exist, containing 32-bits of data and 4-bit
      channel numbers. 16 general data streams are implemented on this for TTY
      and console use by encoding up to 4 bytes on each 32-bit FDC word.
      
      The TTY devices are named e.g. /dev/ttyFDC3c2 for channel 2 of the FDC
      attached to logical CPU 3.
      
      These can be used for getting the kernel log, a login prompt, or as a
      GDB remote transport, all over EJTAG and without needing a serial port.
      
      It can have an interrupt to notify of when incoming data is available in
      the RX FIFO or when the TX FIFO is no longer full. The detection of this
      interrupt occurs in architecture / platform code, but it may be shared
      with the timer and/or performance counter interrupt.
      
      Due to the per-CPU nature of the hardware, all outgoing TTY data is
      written out from a kthread which is pinned to the appropriate CPU.
      
      The console is not bound to a specific CPU, so output will appear on the
      chosen channel on whichever CPU the code is executing on. Enable with
      e.g. console=fdc1 in kernel arguments. /dev/console is bound to the same
      channel on the boot CPU's FDC if it exists.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jslaby@suse.cz>
      Cc: linux-mips@linux-mips.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/9146/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      4cebec60
  5. 27 3月, 2015 25 次提交