Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757246AbdCULdx (ORCPT ); Tue, 21 Mar 2017 07:33:53 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:35860 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757033AbdCULdu (ORCPT ); Tue, 21 Mar 2017 07:33:50 -0400 Date: Tue, 21 Mar 2017 12:33:28 +0100 From: Ingo Molnar To: Lu Baolu Cc: Greg Kroah-Hartman , Ingo Molnar , Mathias Nyman , tglx@linutronix.de, peterz@infradead.org, linux-usb@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , "H. Peter Anvin" , Peter Zijlstra Subject: Re: [PATCH v8 0/5] usb: early: add support for early printk through USB3 debug port Message-ID: <20170321113328.GA17711@gmail.com> References: <1490083293-3792-1-git-send-email-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1490083293-3792-1-git-send-email-baolu.lu@linux.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2601 Lines: 57 * Lu Baolu 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