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


Groups > linux.kernel > #1261350 > unrolled thread

Re: [PATCH 00/12] usb: early: add support for early printk through USB3 debug port

Started byDave Young <dyoung@redhat.com>
First post2015-11-03 10:50 +0100
Last post2015-11-04 01:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 00/12] usb: early: add support for early printk through  USB3 debug port Dave Young <dyoung@redhat.com> - 2015-11-03 10:50 +0100
    Re: [PATCH 00/12] usb: early: add support for early printk through  USB3 debug port "Lu, Baolu" <baolu.lu@linux.intel.com> - 2015-11-04 01:50 +0100

#1261350 — Re: [PATCH 00/12] usb: early: add support for early printk through USB3 debug port

FromDave Young <dyoung@redhat.com>
Date2015-11-03 10:50 +0100
SubjectRe: [PATCH 00/12] usb: early: add support for early printk through USB3 debug port
Message-ID<qqGo4-WT-49@gated-at.bofh.it>
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?

BTW, I hacked a cable according to usb 3 spec, cut vbus/d+/d-, cross wired
ss pins.

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/

[toc] | [next] | [standalone]


#1261992

From"Lu, Baolu" <baolu.lu@linux.intel.com>
Date2015-11-04 01:50 +0100
Message-ID<qqUqZ-1DM-7@gated-at.bofh.it>
In reply to#1261350

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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web