New: mysterious disk I/O-errors which freeze the system
https://bugzilla.kernel.org/show_bug.cgi?id=219113
Bug ID: 219113
Summary: mysterious disk I/O-errors which freeze the system
Product: Drivers
Version: 2.5
Hardware: Intel
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: USB
Assignee: [email protected]
Reporter: [email protected]
Regression: NoCreated attachment 306644
--> https://bugzilla.kernel.org/attachment.cgi?id=306644&action=edit
dmesg
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] mysterious disk I/O-errors which freeze the system
https://bugzilla.kernel.org/show_bug.cgi?id=219113
Mathias Nyman ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |om
--- Comment #1 from Mathias Nyman ([email protected]) --- Looks like it's related to xhci streams usage.
from dmesg:
[4884.745577] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 10 for slot
2 ep 7 , HC probably busted
"event condition 10" would be invalid stream type error.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] mysterious disk I/O-errors which freeze the system
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219113
Artem S. Tashkinov ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Kernel Version| |6.1.102 gcc (Debian
| |12.2.0-14)--- Comment #2 from Artem S. Tashkinov ([email protected]) --- This kernel release is not really supported.
Could you try mainline 6.10.2?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] I/O-errors freezing the system [sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT]
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219113
--- Comment #3 from Artem S. Tashkinov ([email protected]) --- Please check whether the following helps:
1. Upgrading BIOS to the latest version
2. Using a [different] power adapter
3. Some hints from here: https://github.com/openzfs/zfs/discussions/11741
Add to kernel boot arguments: iommu=pt amd_iommu=on
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] I/O-errors freezing the system [sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT]
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219113
Michał Pecio ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from Michał Pecio ([email protected]) --- Disabling UAS should be enough if you need this disk to start working right now, albeit not with maximum performance.
A quick glance at xHCI spec 4.12.2.1 suggests that your USB host controller believes that the USB device or the kernel has given it a wrong stream index. This could be a bug in the device, in the kernel xhci driver, or in the host controller itself.
Do you know any kernel version which doesn't have this problem?
Upgrading host controller or device firmware may help in case it's a hardware bug already patched by the respective vendor.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] I/O-errors freezing the system [sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT]
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219113
--- Comment #5 from Ilari Jääskeläinen ([email protected]) --- Comment on attachment 306644
--> https://bugzilla.kernel.org/attachment.cgi?id=306644
dmesg
Quoted 1 line
Could you try mainline 6.10.2?
No Sir, not at all. Debian GNU/Linux supports only 6.1.x and the new kernels are also buggy. I don't want to play hangman.
Quoted 1 line
Add to kernel boot arguments: iommu=pt amd_iommu=on
Butt I am on Intel Atom platform.
Quoted 1 line
Do you know any kernel version which doesn't have this problem?
No Sir, this is a new platform for me.
Quoted 1 line
Disabling UAS should be enough if you need this disk to start working right
now, albeit not with maximum performance.
Sounds like an idea to me, the hangs itself
cause a terrible loss in performance so I think it could actually increase performance and stability. How do I disable UAS?
Besides there are no new bioses for this certain Intel Compute Stick Cherry Trail.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] I/O-errors freezing the system [sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT]
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219113
--- Comment #6 from Mathias Nyman ([email protected]) --- 6.1.102 kernel has a recently added patch that touches this area:
Commit 5ceac4402f5d xhci: Handle TD clearing for multiple streams case
After that patch xhci driver we may issue 'Set TR Deq' commands for each stream. Before the patch we only queued one command.
If there is a flaw in one of the stream contexts, or command itself then we could see that 'Invalid Stream type error'.
Can I ask you to take logs of this issue with xhci dynamic debug enabled? Also enabling some specific xhci tracing could help:
Steps:
mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control echo xhci-hcd:xhci_handle_cmd_set_deq_ep >> /sys/kernel/debug/tracing/set_event echo xhci-hcd:xhci_handle_cmd_set_deq >> /sys/kernel/debug/tracing/set_event echo xhci-hcd:xhci_handle_command >> /sys/kernel/debug/tracing/set_event echo 1 > /sys/kernel/debug/tracing/tracing_on
< Reproduce issue >
Send output of dmesg
Send content of /sys/kernel/debug/tracing/trace
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] I/O-errors freezing the system [sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT]
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219113
--- Comment #7 from Ilari Jääskeläinen ([email protected]) --- I am sure it gave those messages before AHH now I remember do I got other versions of kernel installed let me check.
6.1.99-102 I think they all gave me the same error message.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 219113] I/O-errors freezing the system [sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT]
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=219113
--- Comment #8 from Mathias Nyman ([email protected]) --- Looks like it was added to 6.1.95 stable
Commit Id for the 6.1 stable backport is 633f72cb6124ecda97b641fbc119340bd88d51
git describe --contains 633f72cb6124ecda97b641fbc119340bd88d51 v6.1.95~123
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.