From: bugzilla-daemon@kernel.org
To: linux-usb@vger.kernel.org
Subject: [Bug 221184] mouse/keyboard (connected via hub) usb reset under system load with weak cpu
Date: Sun, 08 Mar 2026 11:47:42 +0000 [thread overview]
Message-ID: <bug-221184-208809-HkmQ9nCqpF@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-221184-208809@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=221184
Liam Mitchell (mitchell.liam@gmail.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mitchell.liam@gmail.com
--- Comment #10 from Liam Mitchell (mitchell.liam@gmail.com) ---
Thanks for trying it out!
I prompted a script to analyze your logs, producing the following:
USB ACTUAL OBSERVED DATA (Total log duration: 117.8s)
Times are in milliseconds, formatted as min/max/average
Interface | Errors | Resets | Submit-Error | Error-Resubmit | Reset-Submit |
Total Wait
-----------+--------+--------+--------------+----------------+--------------+-----------
Ii:4:003:1 | 36 | 12 | 16/5678/814 | 16/458/67 | 93/221/144 |
2430ms
Ii:4:003:2 | 33 | 12 | 18/4098/859 | 16/457/70 | 93/221/144 |
2321ms
Ii:4:004:1 | 32 | 8 | 38/2973/855 | 17/291/70 | 93/99/96 |
2245ms
Ii:4:004:2 | 30 | 8 | 2/2139/354 | 16/277/38 | 93/99/96 |
1142ms
Legend: 4:003 = Novatek Microelectronics Corp., 4:004 = Logitech, Inc.
It shows 20 resets and about 2s of device downtime in the 2 minute period.
I then prompted for a script to use the actual submit-error times to estimate
the resets and total wait time for 3 models:
- baseline: current error handling, 13/26/52/104/104ms backoff retry, reset on
error at 1-1.5s
- 500ms tolerance, the above with my patch ignoring one proto error every
500ms, resubmitting immediately
- 200ms tolerance, the above with shorter window
USBHID ERROR HANDLING MODELS (Predicted Resets / Total wait time)
Interface | Baseline | 500ms tolerance | 200ms tolerance
-----------+------------+-----------------+----------------
Ii:4:003:1 | 5 / 2280ms | 0 / 507ms | 0 / 117ms
Ii:4:003:2 | 5 / 1994ms | 0 / 507ms | 0 / 117ms
Ii:4:004:1 | 8 / 2007ms | 1 / 512ms | 0 / 195ms
Ii:4:004:2 | 8 / 1903ms | 1 / 382ms | 0 / 143ms
The baseline numbers don't exactly match the actual but it looks close enough
to me for comparison.
It predicts what you reported, has positive impact but doesn't fully solve the
issue.
Try modifying the 500ms to 200 or other and see if there is a noticeable
difference.
The window shouldn't go lower than 100 or so to prevent the system being
locked.
Somewhere there is a number that balances making unreliable devices useful with
protecting the system from locking and resetting devices that need it.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next prev parent reply other threads:[~2026-03-08 11:47 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 11:55 [Bug 221184] New: mouse/keyboard (connected via hub) usb reset under system load with weak cpu bugzilla-daemon
2026-03-07 11:56 ` [Bug 221184] " bugzilla-daemon
2026-03-07 11:58 ` bugzilla-daemon
2026-03-07 16:51 ` bugzilla-daemon
2026-03-07 18:56 ` bugzilla-daemon
2026-03-07 18:57 ` bugzilla-daemon
2026-03-07 19:03 ` bugzilla-daemon
2026-03-07 22:44 ` bugzilla-daemon
2026-03-08 4:24 ` bugzilla-daemon
2026-03-08 5:49 ` bugzilla-daemon
2026-03-08 11:47 ` bugzilla-daemon [this message]
2026-03-08 15:02 ` bugzilla-daemon
2026-03-08 15:19 ` bugzilla-daemon
2026-03-08 15:39 ` bugzilla-daemon
2026-03-08 16:16 ` bugzilla-daemon
2026-03-08 21:28 ` bugzilla-daemon
2026-03-09 3:43 ` bugzilla-daemon
2026-03-09 5:04 ` bugzilla-daemon
2026-03-09 5:08 ` bugzilla-daemon
2026-03-09 11:32 ` bugzilla-daemon
2026-03-09 14:13 ` bugzilla-daemon
2026-03-09 15:31 ` bugzilla-daemon
2026-03-09 15:46 ` bugzilla-daemon
2026-03-09 15:58 ` bugzilla-daemon
2026-03-09 16:02 ` bugzilla-daemon
2026-03-09 16:08 ` bugzilla-daemon
2026-03-09 17:24 ` bugzilla-daemon
2026-03-09 18:56 ` bugzilla-daemon
2026-03-09 22:02 ` bugzilla-daemon
2026-03-10 5:31 ` bugzilla-daemon
2026-03-10 5:59 ` bugzilla-daemon
2026-03-10 9:54 ` bugzilla-daemon
2026-03-10 10:09 ` bugzilla-daemon
2026-03-10 14:48 ` bugzilla-daemon
2026-03-10 19:42 ` bugzilla-daemon
2026-03-10 21:41 ` bugzilla-daemon
2026-03-11 8:06 ` bugzilla-daemon
2026-03-11 9:23 ` bugzilla-daemon
2026-03-11 11:04 ` bugzilla-daemon
2026-03-11 12:54 ` bugzilla-daemon
2026-03-11 14:38 ` bugzilla-daemon
2026-03-11 18:37 ` 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-221184-208809-HkmQ9nCqpF@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