Linux USB
 help / color / mirror / Atom feed
From: Michal Pecio <michal.pecio@gmail.com>
To: Slavik Dev <developer.slavik@gmail.com>
Cc: forestix@kcat.cc, mathias.nyman@linux.intel.com,
	gregkh@linuxfoundation.org, stern@rowland.harvard.edu,
	heikki.krogerus@linux.intel.com, stefan.eichenberger@toradex.com,
	pawell@cadence.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, regressions@lists.linux.dev,
	Mario Limonciello <mario.limonciello@amd.com>
Subject: Re: [REGRESSION][BISECTED] usb: hub: total system freeze after running adb
Date: Tue, 4 Aug 2026 00:26:21 +0200	[thread overview]
Message-ID: <20260804002621.7a8a5647.michal.pecio@gmail.com> (raw)
In-Reply-To: <CAGQo=TJXef-QzbkFEpTcJ138j0k6WYnV4=tNY8Q7s3U7DUOY+Q@mail.gmail.com>

On Mon, 3 Aug 2026 16:54:58 +0300, Slavik Dev wrote:
> Hi,
> 
> I'm hitting what appears to be the same regression, on the same xHCI
> hardware as the original report.

Hi,

I got your email from linux-usb with no working reference to the
original thread, I presume you mean this one:

https://lore.kernel.org/regressions/qc0nhk9c6l0a08bkfeplrm3qjssgrjkvkp@sonic.net/

And it appears that this (later) bugzilla issue was another dupe,
which fact had been overlooked at the time:

https://bugzilla.kernel.org/show_bug.cgi?id=221103

> Earlier today I applied the workaround discussed here (disabling USB
> runtime PM), and so far it is holding up.

Slightly simpler workaround is described in bugzilla comment 16
and it should work for you too if it's the same bug.

In comment 26 there is a reference to another bug affecting AMD
hardware power management, where some success has been achieved.
AFAIK no one tried if those patches would work for the ADB issue.

Somebody has apparently bisected this to the commit below.
Failing the above, does reverting the commit work for you?

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

> 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.

  reply	other threads:[~2026-08-03 22:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-03 13:54 [REGRESSION][BISECTED] usb: hub: total system freeze after running adb Slavik Dev
2026-08-03 22:26 ` Michal Pecio [this message]
  -- 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

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=20260804002621.7a8a5647.michal.pecio@gmail.com \
    --to=michal.pecio@gmail.com \
    --cc=developer.slavik@gmail.com \
    --cc=forestix@kcat.cc \
    --cc=gregkh@linuxfoundation.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=mathias.nyman@linux.intel.com \
    --cc=pawell@cadence.com \
    --cc=regressions@lists.linux.dev \
    --cc=stefan.eichenberger@toradex.com \
    --cc=stern@rowland.harvard.edu \
    /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