Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965199AbbKDAmo (ORCPT ); Tue, 3 Nov 2015 19:42:44 -0500 Received: from mga02.intel.com ([134.134.136.20]:65304 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755195AbbKDAmn (ORCPT ); Tue, 3 Nov 2015 19:42:43 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,240,1444719600"; d="scan'208";a="841992602" Subject: Re: [PATCH 00/12] usb: early: add support for early printk through USB3 debug port To: Dave Young References: <1446019243-5565-1-git-send-email-baolu.lu@linux.intel.com> <20151103094239.GA6143@dhcp-128-100.nay.redhat.com> Cc: Mathias Nyman , Greg Kroah-Hartman , Alan Stern , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org From: "Lu, Baolu" Message-ID: <56395412.5010507@linux.intel.com> Date: Wed, 4 Nov 2015 08:40:50 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151103094239.GA6143@dhcp-128-100.nay.redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1793 Lines: 49 On 11/03/2015 05:42 PM, Dave Young wrote: > On 10/28/15 at 04:00pm, Lu Baolu wrote: >> This patch series adds support for early printk through USB3 debug port. >> USB3 debug port is described in xHCI specification as an optional extended >> capability. >> >> The first patch adds a file in debugfs, through which users can check >> whether the debug capability is supported by a specific host controller. >> >> Patch 2 to 10 add the driver for xHCI debug capability. It interfaces with >> the register set and provides the required ops (read/write/control) to upper >> layers. Early printk is one consumer of these ops. The hooks for early printk >> are introduced in patch 9. This design is similar to what we have done in >> drivers/usb/early/ehci-dbgp.c. >> >> Patch 11 is a minor change to usb_debug module. This change is required to >> bind usb_debug with the USB3 debug device. >> >> Patch 12 is the design document and user guide. >> > Nice work, I want to try your patches. But I have only one machine with > debug capability, I think I can use it as debug target. Can I use another > machine with usb 3.0 but no debug capability as the debug host? Yes, you can. The debug host doesn't require debug capability. Please follow guide in patch 12 when you try it. It has been verified on Intel Skylake machine. > > BTW, I hacked a cable according to usb 3 spec, cut vbus/d+/d-, cross wired > ss pins. Good luck. I just bought one from http://www.datapro.net/products/usb-3-0-super-speed-a-a-debugging-cable.html. > > Thanks > Dave > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/