From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Milan Oravec <migo.oravec@gmail.com>
Cc: Greg KH <gregkh@linuxfoundation.org>, linux-usb@vger.kernel.org
Subject: Re: Fwd: USB DBC hang during earlyprintk initialization
Date: Thu, 4 Dec 2025 22:46:43 +0200 [thread overview]
Message-ID: <aa85ca5c-1594-4775-8d88-141690c2ab56@linux.intel.com> (raw)
In-Reply-To: <CAAcb1K9QEzaDnTKZJ1AiZ18iLL50z91F6BOB=uj47ma2NLwM8g@mail.gmail.com>
On 10/31/25 15:15, Milan Oravec wrote:
> I'm sorry but I can't provide better feedback. When the USB cable is
> connected during initramfs loading DbC is connected, but the system
> stops booting with no messages in the DbC host. When I let USB
> connected prior to the boot, DbC is not initialized. What should I try
> else? Any ideas? Thank you!
>
I was able to set up a similar system, and I could reproduce this.
I think that firmware/BIOS is controlling xHCI and uses it for debugging before kernel loads,
so if cable is connected too early then it gets stuck in firmware control.
I can see on the host side that a usb device is connected almost immediately after
power on, and it has a different vendor and product ID than what early xdbc driver sets:
host log if cable is connected before power on:
[3474920.221407] usb 4-1: new SuperSpeed USB device number 65 using xhci_hcd
[3474920.233582] usb 4-1: LPM exit latency is zeroed, disabling LPM.
[3474920.233673] usb 4-1: New USB device found, idVendor=8087, idProduct=0b21, bcdDevice= 0.00
[3474920.233677] usb 4-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
host log if cable is connected when loading kernel:
[3475961.148597] usb 4-1: new SuperSpeed USB device number 73 using xhci_hcd
[3475961.160775] usb 4-1: LPM exit latency is zeroed, disabling LPM.
[3475961.161016] usb 4-1: New USB device found, idVendor=1d6b, idProduct=0010, bcdDevice= 0.10
[3475961.161020] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3475961.161022] usb 4-1: Product: Linux USB GDB Target
[3475961.161023] usb 4-1: Manufacturer: Linux Foundation
[3475961.161025] usb 4-1: SerialNumber: 0001
[3475961.162413] usb_debug 4-1:1.0: xhci_dbc converter detected
[3475961.162480] usb 4-1: xhci_dbc converter now attached to ttyUSB2
when actual xhci driver is later loaded it resets the controller, which then gives
linux kernel full control.
Maybe we should reset xHCI in early xdbc driver as well.
Regarding "system stops booting with no messages in the DbC host" issue,
it appears either messages or whole boot is blocked if nobody is reading the
messages.
try to read them and see if it helps.
"minicom -D /dev/ttyUSB2" on host worked for me
Thanks
Mathias
next prev parent reply other threads:[~2025-12-04 20:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAcb1K_MJKWz+BYJmx0FDgrBOzzXm71-M7sgHDUOmBRppXWNzA@mail.gmail.com>
2025-10-15 7:43 ` Fwd: USB DBC hang during earlyprintk initialization Milan Oravec
2025-10-15 9:13 ` Greg KH
2025-10-15 19:11 ` Milan Oravec
2025-10-16 13:42 ` Mathias Nyman
2025-10-16 14:31 ` Milan Oravec
2025-10-16 20:49 ` Mathias Nyman
2025-10-20 6:43 ` Milan Oravec
2025-10-24 15:36 ` Mathias Nyman
2025-10-24 15:41 ` [RFT PATCH] usb: early: xhci-dbc: Try smaller early_ioremap size if original size fails Mathias Nyman
2025-10-26 2:32 ` kernel test robot
2025-10-24 18:48 ` Fwd: USB DBC hang during earlyprintk initialization Milan Oravec
2025-10-27 9:34 ` Mathias Nyman
2025-10-28 10:13 ` Mathias Nyman
2025-10-28 13:29 ` Milan Oravec
2025-10-28 17:19 ` Mathias Nyman
2025-10-28 18:10 ` Milan Oravec
2025-10-31 13:15 ` Milan Oravec
2025-12-04 20:46 ` Mathias Nyman [this message]
2025-12-05 7:18 ` Milan Oravec
2025-12-05 18:49 ` Milan Oravec
2025-12-17 9:20 ` Mathias Nyman
2025-12-18 20:03 ` Milan Oravec
2026-01-19 8:18 ` Milan Oravec
2026-01-19 11:01 ` Milan Oravec
2026-04-01 15:58 ` Milan Oravec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa85ca5c-1594-4775-8d88-141690c2ab56@linux.intel.com \
--to=mathias.nyman@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=migo.oravec@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox