* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
@ 2025-01-15 14:50 ` bugzilla-daemon
2025-01-15 15:16 ` bugzilla-daemon
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-15 14:50 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
Michał Pecio (michal.pecio@gmail.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |michal.pecio@gmail.com
--- Comment #1 from Michał Pecio (michal.pecio@gmail.com) ---
Are the working and not working ports on the same USB bus, or on different
ones? Perhaps two different types of USB controllers?
You can see the mapping between USB buses and PCI controllers with
ls -l /sys/bus/usb/devices/usb*
udisks2 collects SMART data and this is known to cause problems with some
combinations of USB controllers and disk enclosures in UAS mode. It usually
recovers after the reset, so not sure why
[ 131.357007] sd 0:0:0:0: Device offlined - not ready after error recovery
The network issue is possibly unrelated, because in this case the hub simply
reports complete disconnection of the device and it comes back a moment later
for unclear reasons.
I wonder if any of that is preceded by low level USB errors? Maybe try again
with some dynamic debug:
echo 'func handle_tx_event +p' >/proc/dynamic_debug/control
echo 'func handle_transferless_tx_event +p' >/proc/dynamic_debug/control
I presume this is not a regression and there are no kernel versions where it
works correctly?
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
2025-01-15 14:50 ` [Bug 219681] " bugzilla-daemon
@ 2025-01-15 15:16 ` bugzilla-daemon
2025-01-15 15:17 ` bugzilla-daemon
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-15 15:16 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #2 from dantmnf2@gmail.com ---
> Are the working and not working ports on the same USB bus, or on different
> ones? Perhaps two different types of USB controllers?
They are on different controllers:
# readlink /sys/bus/usb/devices/usb*
../../../devices/pci0000:00/0000:00:0d.0/usb1
../../../devices/pci0000:00/0000:00:0d.0/usb2
../../../devices/pci0000:00/0000:00:14.0/usb3
../../../devices/pci0000:00/0000:00:14.0/usb4
# lspci
...
00:0d.0 USB controller: Intel Corporation Lunar Lake-M Thunderbolt 4 USB
Controller (rev 10)
...
00:14.0 USB controller: Intel Corporation Lunar Lake-M USB 3.2 Gen 2x1 xHCI
Host Controller (rev 10)
...
> I wonder if any of that is preceded by low level USB errors? Maybe try again
> with some dynamic debug:
It do have some messages like "Stopped on Transfer TRB for slot 4 ep 6" and
"Transfer error for slot 9 ep 0 on endpoint"
> I presume this is not a regression and there are no kernel versions where it
> works correctly?
This is a relatively new platform and kernels before 6.12 cannot give a usable
system.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
2025-01-15 14:50 ` [Bug 219681] " bugzilla-daemon
2025-01-15 15:16 ` bugzilla-daemon
@ 2025-01-15 15:17 ` bugzilla-daemon
2025-01-15 17:24 ` bugzilla-daemon
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-15 15:17 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #3 from dantmnf2@gmail.com ---
Created attachment 307487
--> https://bugzilla.kernel.org/attachment.cgi?id=307487&action=edit
dmesg with dynamic debug
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (2 preceding siblings ...)
2025-01-15 15:17 ` bugzilla-daemon
@ 2025-01-15 17:24 ` bugzilla-daemon
2025-01-15 17:52 ` bugzilla-daemon
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-15 17:24 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #4 from Michał Pecio (michal.pecio@gmail.com) ---
Stopping is not suspicious, but "transfer errors" are. And disconnections seem
to reliably happen 270ms later.
Not sure why, the driver should issue a retry and then either get another error
or things should go back to normal.
What happens to the errors when it works (on USB-C or through a hub)?
Are they still there but recovered from? Or not happening at all?
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (3 preceding siblings ...)
2025-01-15 17:24 ` bugzilla-daemon
@ 2025-01-15 17:52 ` bugzilla-daemon
2025-01-20 15:40 ` bugzilla-daemon
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-15 17:52 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #5 from dantmnf2@gmail.com ---
> What happens to the errors when it works (on USB-C or through a hub)?
> Are they still there but recovered from? Or not happening at all?
Not happening at all on USB-C port.
As for the hub case, with the network adapter as the only device on hub,
transfer errors are still there and the entire hub appears disconnected after
it, but no more errors after another adapter (with same chip) comes to the hub.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (4 preceding siblings ...)
2025-01-15 17:52 ` bugzilla-daemon
@ 2025-01-20 15:40 ` bugzilla-daemon
2025-01-20 17:13 ` bugzilla-daemon
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-20 15:40 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
Mathias Nyman (mathias.nyman@linux.intel.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mathias.nyman@linux.intel.c
| |om
--- Comment #6 from Mathias Nyman (mathias.nyman@linux.intel.com) ---
Could you share both dynamic debug and trace of this case?
If possible remove as all extra usb devices before triggering this, as logs
gets clogged and hard to read.
mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control
echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control
echo 81920 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/xhci-hcd/enable
echo 1 > /sys/kernel/debug/tracing/tracing_on
< Reproduce issue, connect problematic device >
Send output of dmesg
Send content of /sys/kernel/debug/tracing/trace
I'll try to find reproduce this on our local Lunar Lake one I get my hands on
some failing devices, my current USB3 ethernet adapter unfortunately has a ASIX
chip, not Realtek.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (5 preceding siblings ...)
2025-01-20 15:40 ` bugzilla-daemon
@ 2025-01-20 17:13 ` bugzilla-daemon
2025-01-20 17:13 ` bugzilla-daemon
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-20 17:13 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #7 from dantmnf2@gmail.com ---
Created attachment 307509
--> https://bugzilla.kernel.org/attachment.cgi?id=307509&action=edit
dmesg with more dynamic debug
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (6 preceding siblings ...)
2025-01-20 17:13 ` bugzilla-daemon
@ 2025-01-20 17:13 ` bugzilla-daemon
2025-01-21 12:06 ` bugzilla-daemon
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-20 17:13 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #8 from dantmnf2@gmail.com ---
Created attachment 307510
--> https://bugzilla.kernel.org/attachment.cgi?id=307510&action=edit
trace
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (7 preceding siblings ...)
2025-01-20 17:13 ` bugzilla-daemon
@ 2025-01-21 12:06 ` bugzilla-daemon
2025-01-22 15:36 ` bugzilla-daemon
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-21 12:06 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #9 from Mathias Nyman (mathias.nyman@linux.intel.com) ---
Thank you,
dmesg shows USB link goes to Inactive error state, and device needs to be
reset to recover, hence the disconnect
The USB Link Power Management (LPM) U1 and U2 states, and Max exit latency
(MEL) values look suspicious in the logs. An issue with these could cause link
error.
Does disabling LPM for the Realtek usb network adapter help?
This can be done by adding USB_QUIRK_NO_LPM quirk "k" for your device vid:pid
i.e. add "usbcore.quirks=0bda:8156:k" parameter to your kernel cmdline.
optionally remove xhci LPM support for Intel hosts and recompile kernel:
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 2d1e205c14c6..57a6641fbcef 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -316,7 +316,7 @@ static void xhci_pci_quirks(struct device *dev, struct
xhci_hcd *xhci)
xhci->quirks |= XHCI_BROKEN_D3COLD_S2I;
if (pdev->vendor == PCI_VENDOR_ID_INTEL) {
- xhci->quirks |= XHCI_LPM_SUPPORT;
+// xhci->quirks |= XHCI_LPM_SUPPORT;
xhci->quirks |= XHCI_INTEL_HOST;
xhci->quirks |= XHCI_AVOID_BEI;
}
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply related [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (8 preceding siblings ...)
2025-01-21 12:06 ` bugzilla-daemon
@ 2025-01-22 15:36 ` bugzilla-daemon
2025-01-23 15:27 ` bugzilla-daemon
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-22 15:36 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #10 from dantmnf2@gmail.com ---
Both kernel parameter and kernel patch can help the Ethernet adapter. It
transferred tens of gigabytes without disconnecting.
No luck for the disk enclosure, but just found it also won't work on USB-C
ports (at this time) and another AMD system, yet still no issue on a hub with
multiple devices.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (9 preceding siblings ...)
2025-01-22 15:36 ` bugzilla-daemon
@ 2025-01-23 15:27 ` bugzilla-daemon
2025-01-23 17:45 ` bugzilla-daemon
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-23 15:27 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #11 from Michał Pecio (michal.pecio@gmail.com) ---
OK, so the UAS bug is on three different host controllers now. It's strange
that the hub still makes a difference. Stupid question: is the enclosure
running at SuperSpeed when it works correctly?
Can you trigger the issue instantly without udisks2 by running something like
'skdump', 'smartctl -a' or 'smartctl -x'? This may be a more reliable
reproducer than starting udisks2 and waiting, if the problem is caused by SMART
queries.
There is this patch from Raspberry Pi which you could try. It should be
harmless and some Realtek chip was supposedly caught having bugs in this area,
but I tried it on a different buggy UAS chip and it didn't help so YMMV.
https://github.com/raspberrypi/linux/commit/66aef6ce3557edd9d58d794e4a800c5be49ca0e7
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (10 preceding siblings ...)
2025-01-23 15:27 ` bugzilla-daemon
@ 2025-01-23 17:45 ` bugzilla-daemon
2025-01-24 1:29 ` bugzilla-daemon
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-23 17:45 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #12 from dantmnf2@gmail.com ---
> is the enclosure running at SuperSpeed when it works correctly?
There are some chances to work with SuperSpeed+, mostly with a longer cable.
To manually trigger the issue without udisks2:
echo "write through" > /sys/class/scsi_disk/0:0:0:0/cache_type
smartctl -a /dev/sda
dd if=/dev/sda of=/dev/null count=1
But this sequence more often gives ~30s IO delay, not timeout.
Also tried another disk with this enclosure and the issue is gone. Seems the
disk is to blame.
As for the Realtek ethernet, I found it never enters U1/U2 state on Windows.
Given there is already NO_LPM quirks for RTL8153, maybe we also need one for
RTL8156?
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (11 preceding siblings ...)
2025-01-23 17:45 ` bugzilla-daemon
@ 2025-01-24 1:29 ` bugzilla-daemon
2025-01-27 9:05 ` bugzilla-daemon
2025-01-27 9:14 ` bugzilla-daemon
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-24 1:29 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
MasterCATZ (mastercatz@hotmail.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mastercatz@hotmail.com
--- Comment #13 from MasterCATZ (mastercatz@hotmail.com) ---
not entirely the same issue
but I can no longer reload xhci_hcd because its now built into the kernel
6.12.3-061203-generic
sudo modprobe -r xhci_hcd
modprobe: FATAL: Module xhci_hcd is builtin
how can I now restart it ?
and who the heck thought building in a xhci_hcd module was a good idea ?
lose usb you loose keyboard / mouse = bricked system unless you can ssh in with
a phone ..
https://ibb.co/c8YFYhG
even if I hibernate and do a full power off and resume when OS loads USB is
dead again (works in bios etc just OS loads it up dead )
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (12 preceding siblings ...)
2025-01-24 1:29 ` bugzilla-daemon
@ 2025-01-27 9:05 ` bugzilla-daemon
2025-01-27 9:14 ` bugzilla-daemon
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-27 9:05 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #14 from Michał Pecio (michal.pecio@gmail.com) ---
> who the heck thought building in a xhci_hcd module was a good idea ?
Your distribution did, it's their choice.
> https://ibb.co/c8YFYhG
This should be posted as a separate bug, not here.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread* [Bug 219681] ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition
2025-01-11 7:19 [Bug 219681] New: ASUS Zenbook S 14 UX5406SA: Unstable USB connection on USB-A port under certain condition bugzilla-daemon
` (13 preceding siblings ...)
2025-01-27 9:05 ` bugzilla-daemon
@ 2025-01-27 9:14 ` bugzilla-daemon
14 siblings, 0 replies; 16+ messages in thread
From: bugzilla-daemon @ 2025-01-27 9:14 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219681
--- Comment #15 from Michał Pecio (michal.pecio@gmail.com) ---
(In reply to dantmnf2 from comment #12)
> > is the enclosure running at SuperSpeed when it works correctly?
> There are some chances to work with SuperSpeed+, mostly with a longer cable.
What I was thinking is if there is any chance that the hub limits it to
hi-speed, this could explain how some hardware bugs miraculously go away.
> Also tried another disk with this enclosure and the issue is gone. Seems the
> disk is to blame.
There seem to be issues with some combinations of disks and enclosures, but I
have never looked into it. It sounds more like a storage problem than a USB
problem to me. At this point I think your best bet would be to read
Documentation/admin-guide/reporting-issues.rst and mail linux-usb and
linux-scsi about this specific UAS issue, because few developers really follow
this bugzilla.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread