From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7EF2F1A9B58 for ; Sat, 7 Mar 2026 22:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772923446; cv=none; b=JhsyZO3DBHznRRxn6sMX5BjR5ODWc/TmZ77IfMg1kuzLq0zRnL0Fx+zShFAd2hdx8Tt/1hdpgrIRW9UW1B5P5AKj+Xqgp+kk39l2RIxHryRxF3eiej0edEHKIr90UTfzVi66BymRMCo0iSropySowcU7FsvWlC70lJzhk7mvZhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772923446; c=relaxed/simple; bh=d8vHj9WdY6Ahis3bs74xEqbZuKPZOKZnHZ9vkBwC8qo=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=PU2eDf4hKsJTcWsmYrw58951icuuI7Go8N5astAt05La+CEk1J89h6fdLK6PHb8mX3FPQ4TnaT+WUX2PbculgMilReCqFXecgoxBHCI/xBz/cpf0fjfgficVaSflCy+Nnki1lLnQzq8vXd5cYEg8zmcL4DHhzC8VVHDL5tukkF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=r/tT10/B; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="r/tT10/B" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0E985C2BC87 for ; Sat, 7 Mar 2026 22:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772923446; bh=d8vHj9WdY6Ahis3bs74xEqbZuKPZOKZnHZ9vkBwC8qo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r/tT10/BeMA/oKUwwl1047pEA9hOr1YACfHPELhX34F5mBavaKllo0WXHiD21SAfg C2x1hSNKHhBdfQo8CXNtgS0q1VICqQefBpTK/cNkE3WyxSM91QnR9dQxVjMm/u/cKM jzuBTiYycC9JwtfRoGWGgF3K+fQMnyXBpQfzYM6SP6MxqJUwEhVSdTk2noxOBG2kh5 1XmcGOBq2+kPoBrZ0LBsPl91tWzXwuRaKnN32vUCDgK+qOW2TjTjzTzZTTO+uaaMwY xtLM3X5EZ4jIFa4AxR6JShbosAyRp2dgzbvbjoN/eQdi6A5VjfRaQ/WbqviNo3uQzY AIN30g4/g6cWg== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id F3F64C41612; Sat, 7 Mar 2026 22:44:05 +0000 (UTC) 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: Sat, 07 Mar 2026 22:44:05 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo drivers_usb@kernel-bugs.kernel.org X-Bugzilla-Product: Drivers X-Bugzilla-Component: USB X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stern@rowland.harvard.edu X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: drivers_usb@kernel-bugs.kernel.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 https://bugzilla.kernel.org/show_bug.cgi?id=3D221184 --- Comment #7 from Alan Stern (stern@rowland.harvard.edu) --- The usbmon trace shows that your system is getting a lot of communication errors (multiple errors per second sometimes), probably caused by the system load as you said. You can see them yourself in the trace; look for lines containing a "-71" code, and note that the second column of each line is a timestamp in microseconds. (Your computer must be a rather old one for the load level to affect it this way -- also, the lsusb output shows that the computer has no USB-3 ports, only USB-2.) With many of these errors the HID driver simply retries the transfer, and t= hat works, but sometimes it decides there have been too many errors too rapidly= and it resets the device in an attempt to recover. As it happens, Liam Mitchell has just submitted a patch to increase the HID driver's tolerance for these communication errors: =20 https://lore.kernel.org/linux-usb/20260307-usbhid-eproto-v2-1-e5a8abce4652@= gmail.com/ I'm not sure how much it will help in your case, because the errors you get occur so frequently, but it might help some. Perhaps the patch can be impr= oved even more. As for your patch in comment #2... It is totally the wrong thing to do. W= hen an error causes the endpoint to halt, the driver needs to know. If qtd_copy_status() returns early for short transfers (which is what your pat= ch makes it do), the driver won't realize that the endpoint has halted. To pu= t it another way, these sorts of errors should not be ignored by ehci-hcd, altho= ugh the higher-level HID driver may decide to ignore them. --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=