[RESEND PATCH 0/4] usb: early: add support for early printk through USB3 debug port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. There
isn't any precondition from xHCI host side for DbC to work.

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.

This is the resend version. Original patch set was submitted
several months ago. This resend version addresses the review
comment here [1].

[1] https://lkml.org/lkml/2016/2/16/444

Lu Baolu (4):
  usb: dbc: early driver for xhci debug capability
  x86: add support for earlyprintk via USB3 debug port
  usb: serial: usb_debug: add support for dbc debug device
  usb: doc: add document for USB3 debug port usage

 Documentation/kernel-parameters.txt |    1 +
 Documentation/usb/early-xdbc.txt    |   78 +++
 arch/x86/Kconfig.debug              |   14 +
 arch/x86/kernel/early_printk.c      |    5 +
 arch/x86/kernel/setup.c             |    7 +
 drivers/usb/Kconfig                 |    3 +
 drivers/usb/Makefile                |    2 +-
 drivers/usb/early/Makefile          |    1 +
 drivers/usb/early/xhci-dbc.c        | 1090 +++++++++++++++++++++++++++++++++++
 drivers/usb/early/xhci-dbc.h        |  202 +++++++
 drivers/usb/serial/usb_debug.c      |   28 +-
 include/linux/usb/xhci-dbgp.h       |   22 +
 12 files changed, 1449 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/usb/early-xdbc.txt
 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

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux