Linux USB
 help / color / mirror / Atom feed
* Re: [REGRESSION][BISECTED] usb: hub: total system freeze after running adb
@ 2026-08-03 13:54 Slavik Dev
  2026-08-03 22:26 ` Michal Pecio
  0 siblings, 1 reply; 13+ messages in thread
From: Slavik Dev @ 2026-08-03 13:54 UTC (permalink / raw)
  To: forestix
  Cc: mathias.nyman, gregkh, stern, heikki.krogerus,
	stefan.eichenberger, pawell, linux-usb, linux-kernel, regressions

Hi,

I'm hitting what appears to be the same regression, on the same xHCI
hardware as the original report. I spent months chasing this as a
hardware problem (RAM, PSU, BIOS) before the adb correlation
eventually led me to this thread. Earlier today I applied the
workaround discussed here (disabling USB runtime PM), and so far it
is holding up. Sharing my data in case it helps revive the
investigation -- until the workaround, this reproduced reliably for
me, up to several freezes per evening.

Hardware:
- AMD Ryzen 7 7700 (Raphael, display on iGPU), ASUS TUF GAMING B650-E
  WIFI, BIOS 3881 (AGESA 1.3.0.1b)
- The affected controller from the original report is present:
  0b:00.0 USB controller [1022:15b8] (AMD Raphael USB 2.0 xHCI)

Kernels (Linux Mint 22.3 / Ubuntu HWE builds):
- Freezes observed on 6.17.0-14/-19-generic and 6.14.0-37-generic
  (based on 6.14.11 + stable backports, built 2025-11-20).
- First freeze on 2026-03-10, shortly after kernel package updates;
  16 freezes total through 2026-08-03.

Correlation with adb:
- The last 4 freezes occurred 5, 12, 35 and 81 minutes after the adb
  server was started (using the once-per-boot "adb uses wireless
  extensions" kernel warning as the start marker in the journal).
- Earlier freezes also occurred with an Android phone plugged in while
  the adb server was NOT running -- including one freeze 2 seconds
  after unplugging the phone. Consistent with hub runtime
  suspend/resume transitions being the trigger rather than adb itself.

Freeze signature:
- Journal stops mid-second, no oops/panic, no MCE/WHEA, efi-pstore
  empty. nmi_watchdog=1 and hardlockup_panic=1 never fire.
- Notably: the chipset watchdog (sp5100_tco + systemd
  RuntimeWatchdogSec=30) DOES fire and resets the machine ~30 s after
  the hang, so the platform stays alive -- it is the kernel/CPUs that
  stop responding.

Ruled out on this machine:
- RAM: freezes identically with DDR5 at EXPO 6000, EXPO 5600 and
  JEDEC stock 4800.
- Pure load: 60 minutes of stress-ng (16 CPU workers + 16 GB VM
  workers, no adb running) survives without issues.
- Firmware: BIOS update 3223 -> 3881 (AGESA 1.3.0.1b) made no
  difference.

Side observation: in freezing sessions, Bluetooth (MT7922 on the same
bus as most devices) repeatedly logs "hci0: ACL packet for unknown
connection handle" before the freeze.

Workaround status:
- Running with runtime PM disabled for all USB devices
  (power/control=on via udev rule) since 2026-08-03. Reporting while
  it's fresh: the adb server has since been running continuously,
  already well past my longest previously observed time-to-freeze
  (81 min), and so far so good.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [REGRESSION][BISECTED] usb: hub: total system freeze after running adb
@ 2025-11-17 20:18 Forest
  2025-11-18  9:21 ` Mathias Nyman
  2025-11-18  9:59 ` Michal Pecio
  0 siblings, 2 replies; 13+ messages in thread
From: Forest @ 2025-11-17 20:18 UTC (permalink / raw)
  To: Mathias Nyman
  Cc: Greg Kroah-Hartman, Alan Stern, Heikki Krogerus,
	Stefan Eichenberger, Pawel Laszczak, linux-usb, linux-kernel,
	regressions

#regzbot introduced 8f5b7e2bec1c

Running adb (android debug bridge) commands causes the entire system to
freeze some time later.

The freeze usually occurs within two hours of running adb, but not always.
Stopping adb's persistent background process with `adb kill-server` seems to
avoid the freeze. (However, this is not always possible, since the system
sometimes freezes just a few seconds after adb is launched.)

It occurs even when no android devices are connected to the system.

I am unsure whether user activity affects how soon the freeze happens.

Observations when it happens:

- No messages are written to dmesg or syslog.
- Virtual console switching no longer works.
- SysRq key commands no longer work, as far as I can tell.
- Whatever was on the display remains intact.
- Any already-playing audio enters a short loop, as though the motherboard's
  sound device is playing from a ring buffer that no longer gets updated.

I have reproduced it on mainline (6.18.0-rc5) and various older kernel
versions as early as 6.12.48, built with Debian config files and
`make olddefconfig`. Tested using Debian Stable 13.2 (trixie), and its
adb 1:34.0.5-12 package.

Git bisect identifies the culprit:
commit 8f5b7e2bec1c36578fdaa74a6951833541103e27
2025-06-11 14:24:41 +0300
usb: hub: fix detection of high tier USB3 devices behind suspended hubs

Reverting that commit (along with two later commits that build upon it)
seems to fix the problem in the mainline and longterm kernels that I tried.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-08-03 22:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-03 13:54 [REGRESSION][BISECTED] usb: hub: total system freeze after running adb Slavik Dev
2026-08-03 22:26 ` Michal Pecio
  -- strict thread matches above, loose matches on Subject: below --
2025-11-17 20:18 Forest
2025-11-18  9:21 ` Mathias Nyman
2025-11-20 22:04   ` Forest
2025-12-02 18:44     ` Forest
2025-12-03 23:41     ` Mathias Nyman
2025-12-05  1:56       ` Forest
2025-12-05 14:57         ` Mathias Nyman
2026-07-15 21:49           ` Forest
2025-11-18  9:59 ` Michal Pecio
2025-11-20 22:18   ` Forest
2025-12-04  8:23     ` Michal Pecio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox