* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
@ 2024-07-14 12:15 ` bugzilla-daemon
2024-07-14 12:50 ` bugzilla-daemon
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-14 12:15 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
--- Comment #1 from matthias@bodenbinder.de ---
EDIT:
USB case is
Qnap NAS Storage TOWER 8BAY/TL-D800C
https://www.qnap.com/de-de/product/tl-d800c
--
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] 10+ messages in thread* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
2024-07-14 12:15 ` [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C " bugzilla-daemon
@ 2024-07-14 12:50 ` bugzilla-daemon
2024-07-14 14:03 ` [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C " Michał Pecio
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-14 12:50 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
Michael (ZeroBeat@gmx.de) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ZeroBeat@gmx.de
--- Comment #2 from Michael (ZeroBeat@gmx.de) ---
I can confirm that.
My case:
ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578
SATA 6Gb/s
Kernel freeze immediately after the case is plugged to an USB connector.
Linux stable kernel (6.9.9) is not affected.
--
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] 10+ messages in thread* Re: [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
2024-07-14 12:15 ` [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C " bugzilla-daemon
2024-07-14 12:50 ` bugzilla-daemon
@ 2024-07-14 14:03 ` Michał Pecio
2024-07-14 14:03 ` [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C " bugzilla-daemon
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Michał Pecio @ 2024-07-14 14:03 UTC (permalink / raw)
To: bugzilla-daemon
Cc: linux-usb, Niklas Neronin, Mathias Nyman, Greg Kroah-Hartman
Hi,
Good job finding the bad commit. I'm almost sure that I know what the
problem is - it appears that this commit effectively disables
incremeting event ring pointer under certain conditions, which causes
the IRQ handler to process the same event again and again and never
progress to the next one.
I would try changing the
return 0;
added by the bad commit into
inc_deq(xhci, ir->event_ring);
return 0;
and see if this helps.
Other than that, the commit appears to be valid fix to a real problem
that may happen on isochronous endpoints when MISSED_SERVICE_ERROR is
immediately followed by STOPPED_LENGTH_INVALID, which I think could
occur. The over/underrun conditions are perhaps possible too.
Regards,
Michal
^ permalink raw reply [flat|nested] 10+ messages in thread* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
` (2 preceding siblings ...)
2024-07-14 14:03 ` [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C " Michał Pecio
@ 2024-07-14 14:03 ` bugzilla-daemon
2024-07-14 15:50 ` bugzilla-daemon
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-14 14:03 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
--- Comment #3 from Michał Pecio (michal.pecio@gmail.com) ---
Hi,
Good job finding the bad commit. I'm almost sure that I know what the
problem is - it appears that this commit effectively disables
incremeting event ring pointer under certain conditions, which causes
the IRQ handler to process the same event again and again and never
progress to the next one.
I would try changing the
return 0;
added by the bad commit into
inc_deq(xhci, ir->event_ring);
return 0;
and see if this helps.
Other than that, the commit appears to be valid fix to a real problem
that may happen on isochronous endpoints when MISSED_SERVICE_ERROR is
immediately followed by STOPPED_LENGTH_INVALID, which I think could
occur. The over/underrun conditions are perhaps possible too.
Regards,
Michal
--
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] 10+ messages in thread* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
` (3 preceding siblings ...)
2024-07-14 14:03 ` [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C " bugzilla-daemon
@ 2024-07-14 15:50 ` bugzilla-daemon
2024-07-14 16:28 ` bugzilla-daemon
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-14 15:50 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
--- Comment #4 from matthias@bodenbinder.de ---
Does your proposed solution explain why the bug does not show in 6.9.9 although
it contains the same commit?
--
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] 10+ messages in thread* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
` (4 preceding siblings ...)
2024-07-14 15:50 ` bugzilla-daemon
@ 2024-07-14 16:28 ` bugzilla-daemon
2024-07-14 16:32 ` bugzilla-daemon
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-14 16:28 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
elatllat@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |elatllat@gmail.com
--- Comment #5 from elatllat@gmail.com ---
Related: https://lkml.org/lkml/2024/7/13/328
--
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] 10+ messages in thread* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
` (5 preceding siblings ...)
2024-07-14 16:28 ` bugzilla-daemon
@ 2024-07-14 16:32 ` bugzilla-daemon
2024-07-15 11:53 ` bugzilla-daemon
2024-07-16 7:53 ` bugzilla-daemon
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-14 16:32 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
--- Comment #6 from matthias@bodenbinder.de ---
I created a patch file for 6.6.39 based on Michael's proposal (comment #3):
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -2657,6 +2657,7 @@
slot_id, ep_index);
goto err_out;
}
+ inc_deq(xhci, ir->event_ring);
return 0;
}
I can confirm that this prevents the freezing. The device and the attached hard
discs work normal as far as I can tell. I did a fio benchmark run on one of the
zfs pools in that QNAP case and it executed just fine with the usual results.
--
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] 10+ messages in thread* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
` (6 preceding siblings ...)
2024-07-14 16:32 ` bugzilla-daemon
@ 2024-07-15 11:53 ` bugzilla-daemon
2024-07-16 7:53 ` bugzilla-daemon
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-15 11:53 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
--- Comment #7 from elatllat@gmail.com ---
RESOLVED with 6.1.99 and 6.6.40 .
--
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] 10+ messages in thread* [Bug 219039] kernel 6.6.39 freezes with QNAP TL-D800C usb case
2024-07-14 12:11 [Bug 219039] New: kernel 6.6.39 freezes with QNAP DL-D800C usb case bugzilla-daemon
` (7 preceding siblings ...)
2024-07-15 11:53 ` bugzilla-daemon
@ 2024-07-16 7:53 ` bugzilla-daemon
8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2024-07-16 7:53 UTC (permalink / raw)
To: linux-usb
https://bugzilla.kernel.org/show_bug.cgi?id=219039
Artem S. Tashkinov (aros@gmx.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX
--
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] 10+ messages in thread