linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 220460] Plugging USB-C adapter into one port results in `Failed to set U2 timeout to 0x3f,error code -110`
Date: Thu, 21 Aug 2025 14:57:41 +0000	[thread overview]
Message-ID: <bug-220460-208809-DjJgX2C5Xf@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-220460-208809@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=220460

--- Comment #5 from Mathias Nyman (mathias.nyman@linux.intel.com) ---
Thanks, trace show the link between host and hub goes to an error state
immediately after enabling U1 and U2 link power save states.

Hub driver sends a SetPortFeature U1 timeout 41us to hub port 1.
hub is now allowed to set port 1 link to U1 power save state after 41us
of inactivity:

862.173255: xhci_queue_trb: CTRL: @0x00000000fffc7600 bRequestType 23 bRequest
03 wValue 0017 wIndex 2901 wLength 0 length 8 TD size 0 intr 0 type 'Setup
Stage' flags I:i:c

Tell xHCI host that the new MEL (maximum exit latency) to get link up and
running has changed, set a new value of 747us:

862.173694: xhci_dbg_context_change: Set up evaluate context for LPM MEL
change.
862.173696: xhci_configure_endpoint: RS 00001 super-speed Ctx Entries 3 MEL 747
us Port# 4/0 [TT Slot 0 Port# 0 TTT 0 Intr 0] Addr 0 State enabled/disabled

Hub driver sends a SetPortFeature U2 timeout 16128us to hub port 1.
hub is now allowed to set port 1 link to U1 power save state after 16128us
of inactivity:

862.173771: xhci_queue_trb: CTRL: @0x00000000fffc7620 bRequestType 23 bRequest
03 wValue 0018 wIndex 3f01 wLength 0 length 8 TD size 0 intr 0 type 'Setup
Stage' flags I:i:c

Link suddenly goes to error (Inactive) state, most likely due to failure to 
enter U1/U2. Could also be related to bad U1,U2 MEL or SEL (system exit latecy)
values. 

862.175770: xhci_handle_event: EVENT: @0x00000000ff8facd0 TRB 0000000004000000
status 'Success' len 0 slot 0 ep 0 type 'Port Status Change Event' flags e:c
862.175802: xhci_handle_port_status: port 4-1: 0x004202c0 Powered Not-connected
Disabled Link:Inactive PortSpeed:0 Change: CSC PLC Wake:

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

  parent reply	other threads:[~2025-08-21 14:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-17  8:09 [Bug 220460] New: Plugging USB-C adapter into one port results in `Failed to set U2 timeout to 0x3f,error code -110` bugzilla-daemon
2025-08-17 17:18 ` [Bug 220460] " bugzilla-daemon
2025-08-17 22:15 ` bugzilla-daemon
2025-08-18  8:13 ` bugzilla-daemon
2025-08-18  8:26 ` bugzilla-daemon
2025-08-21 14:57 ` bugzilla-daemon [this message]
2025-08-21 15:05 ` bugzilla-daemon
2025-08-21 15:26 ` bugzilla-daemon
2025-08-22 12:12 ` bugzilla-daemon
2025-08-22 12:14 ` bugzilla-daemon
2025-08-22 13:20 ` bugzilla-daemon
2025-08-25  9:16 ` bugzilla-daemon
2025-08-25  9:16 ` bugzilla-daemon

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=bug-220460-208809-DjJgX2C5Xf@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).