Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1605517

Re: [PATCH v8 0/5] usb: early: add support for early printk through USB3 debug port

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v8 0/5] usb: early: add support for early printk through USB3 debug port
Date 2017-03-21 12:40 +0100
Message-ID <tnqiS-2Gb-23@gated-at.bofh.it> (permalink)
References <tnn1E-xY-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Lu Baolu <baolu.lu@linux.intel.com> wrote:

> xHCI debug capability (DbC) is an optional but standalone
> functionality provided by an xHCI host controller. With DbC
> hardware initialized, the system will present a debug device
> through the USB3 debug port (normally the first USB3 port).
> The debug device is fully compliant with the USB framework
> and provides the equivalent of a very high performance (USB3)
> full-duplex serial link between the debug host and target.
> The DbC functionality is independent of xHCI host.
> 
> This patch set adds support for early printk functionality
> through a USB3 debug port by 1) initializing and enabling
> the DbC hardware during early boot; 2) registering a boot
> console to the system so that early printk messages can go
> through the USB3 debug port. It also includes some lines
> of changes in usb_debug driver so that it can be bound when
> a USB3 debug device is enumerated.
>
[...]
>
> Lu Baolu (5):
>   x86: add simple udelay calibration
>   usb: early: add driver for xhci debug capability
>   x86: add support for earlyprintk via USB3 debug port
>   usb: serial: add dbc debug device support to usb_debug
>   usb: doc: add document for USB3 debug port usage
> 
>  Documentation/admin-guide/kernel-parameters.txt |    1 +
>  Documentation/usb/usb3-debug-port.rst           |  100 +++
>  arch/x86/Kconfig.debug                          |   23 +
>  arch/x86/kernel/early_printk.c                  |    5 +
>  arch/x86/kernel/setup.c                         |   26 +
>  drivers/usb/Makefile                            |    2 +-
>  drivers/usb/early/Makefile                      |    1 +
>  drivers/usb/early/xhci-dbc.c                    | 1014 +++++++++++++++++++++++
>  drivers/usb/early/xhci-dbc.h                    |  211 +++++
>  drivers/usb/serial/usb_debug.c                  |   28 +-
>  include/linux/usb/xhci-dbgp.h                   |   29 +
>  11 files changed, 1436 insertions(+), 4 deletions(-)
>  create mode 100644 Documentation/usb/usb3-debug-port.rst
>  create mode 100644 drivers/usb/early/xhci-dbc.c
>  create mode 100644 drivers/usb/early/xhci-dbc.h
>  create mode 100644 include/linux/usb/xhci-dbgp.h

Ok, this has now become a high quality series with picture-perfect patches AFAICS. 

Thomas also gave his Acked-by to all the patches.

I've applied them locally to -tip (it appears the USB maintainers are still fine 
with this being carried in tip:x86/debug for a v4.12 merge, right?), and will push 
them out and will propagate them to linux-next as well if they pass testing.

Thanks for the great work!

	Ingo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v8 0/5] usb: early: add support for early printk through USB3 debug port Lu Baolu <baolu.lu@linux.intel.com> - 2017-03-21 09:10 +0100
  [PATCH v8 4/5] usb: serial: add dbc debug device support to usb_debug Lu Baolu <baolu.lu@linux.intel.com> - 2017-03-21 09:10 +0100
    [tip:x86/debug] usb/serial: Add DBC debug device support to  usb_debug tip-bot for Lu Baolu <tipbot@zytor.com> - 2017-03-21 13:30 +0100
  [PATCH v8 3/5] x86: add support for earlyprintk via USB3 debug port Lu Baolu <baolu.lu@linux.intel.com> - 2017-03-21 09:10 +0100
    [tip:x86/debug] x86/earlyprintk: Add support for earlyprintk via  USB3 debug port tip-bot for Lu Baolu <tipbot@zytor.com> - 2017-03-21 13:30 +0100
  [PATCH v8 1/5] x86: add simple udelay calibration Lu Baolu <baolu.lu@linux.intel.com> - 2017-03-21 09:10 +0100
    [tip:x86/debug] x86/timers: Add simple udelay calibration tip-bot for Lu Baolu <tipbot@zytor.com> - 2017-03-21 13:30 +0100
  [PATCH v8 5/5] usb: doc: add document for USB3 debug port usage Lu Baolu <baolu.lu@linux.intel.com> - 2017-03-21 09:10 +0100
    [tip:x86/debug] usb/doc: Add document for USB3 debug port usage tip-bot for Lu Baolu <tipbot@zytor.com> - 2017-03-21 13:30 +0100
  [PATCH v8 2/5] usb: early: add driver for xhci debug capability Lu Baolu <baolu.lu@linux.intel.com> - 2017-03-21 09:10 +0100
    [tip:x86/debug] usb/early: Add driver for xhci debug capability tip-bot for Lu Baolu <tipbot@zytor.com> - 2017-03-21 13:30 +0100
  Re: [PATCH v8 0/5] usb: early: add support for early printk through  USB3 debug port Ingo Molnar <mingo@kernel.org> - 2017-03-21 12:40 +0100
    Re: [PATCH v8 0/5] usb: early: add support for early printk through  USB3 debug port Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-03-21 13:40 +0100
      Re: [PATCH v8 0/5] usb: early: add support for early printk through  USB3 debug port Ingo Molnar <mingo@kernel.org> - 2017-03-21 13:50 +0100
    Re: [PATCH v8 0/5] usb: early: add support for early printk through  USB3 debug port Lu Baolu <baolu.lu@linux.intel.com> - 2017-03-22 03:30 +0100

csiph-web