Linux USB
 help / color / mirror / Atom feed
From: Olivier Kaloudoff <olivier.kaloudoff@gmail.com>
To: Oliver Neukum <oneukum@suse.com>
Cc: Olivier Kaloudoff <olivier.kaloudoff@gmail.com>,
	linux-usb@vger.kernel.org, stern@rowland.harvard.edu,
	gregkh@linuxfoundation.org, usb-storage@lists.one-eyed-alien.net,
	stable@vger.kernel.org
Subject: Re: [PATCH v3] usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)
Date: Thu,  5 Nov 2026 18:32:50 +0100	[thread overview]
Message-ID: <20261105173250.97239-1-olivier.kaloudoff@gmail.com> (raw)
In-Reply-To: <20261014165741.35758-1-olivier.kaloudoff@gmail.com>

Hi Oliver,

On 02.11.26 11:32, Oliver Neukum wrote:
> 1. is this a race that sometimes hits?
> 2. does the error recovery actually work?

I ran the experiment on the attached enclosure today (kernel
7.3.0-rc5-vanilla, quirks param cleared so the bridge binds uas).

Enumeration battery — authorized-toggle re-enumerations:

  * First UAS enumeration after ~3 weeks on usb-storage: STALLED —
    exactly the reported signature. sd probing's first READ(16) at
    LBA 0 timed out at +30 s with uas-tag 1 inflight, abort ->
    host reset -> clean attach in ~140 ms, full 3.73 TiB usable.
  * The following 16 authorized-toggle cycles: all CLEAN, ~1 s each.

So the stall is a race — but specifically a *cold* one: it fires on
the first UAS probe after BOT/power-on, not on warm re-enumerations.
That matches the organic hits (Oct 11, Oct 13, ~Oct 28 — all at
boot/replug/bridge-reset boundaries), and explains the earlier
"reproduce it again this week" observations.

Recovery: works, every time — abort -> host reset -> attach in
~0.14 s. The cost is 30 s of dead I/O per event plus the reset churn,
and under write load that recovery window is what corrupted XFS twice.

Load test — sustained mixed randrw (70r/30w, 128k direct I/O, ~75 GiB
total) at iodepth 32 -> 24 -> 16, ~8 min: zero aborts, zero resets,
zero errors. The full-queue wedge did NOT reproduce in a bounded
soak, so I cannot claim a depth cap helps — the historical wedge
(20+ tags, all timing out together, write+read interleave) remains
organic-only evidence. It either needs a longer/different trigger or
is itself a rarer cold-path bug.

One more data point: re-enumerating back onto usb-storage today ALSO
stalled ~22 s before a reset+attach — so the probe-time wedge is in
the bridge firmware's first-command handling regardless of protocol;
IGNORE_UAS only escapes the queued-command load wedge, not the cold
probe one.

The wedging CDB is already identified by the abort log: READ(16) at
LBA 0 — the 128 KiB partition-table probe. (usbmon isn't available
on this kernel — CONFIG_USB_MON=n, can't hot-add without rebuilding
usbcore — but the abort CDB narrows it to that one command, which is
consistent with your partition-read hypothesis: other OSes typically
probe differently, e.g. READ(10)/smaller LBA0 reads.)

Where that leaves the patch: the enumeration stall is now proven
cold-rare and cleanly recoverable, which by your rule makes
IGNORE_UAS look heavy *for that failure alone*. The justification
that stands is the load wedge — two filesystems lost to a failure
mode that only exists under queued commands. A depth cap could
plausibly mitigate it, but I have no positive repro to prove it
does. If you want, I can run a longer soak (hours) at capped depth
vs. full depth, and/or test whether a first-probe mitigation
(smaller LBA0 read / INITIAL_READ10-style retry) prevents the cold
stall — that would let UAS stay on for this bridge with the enum
race neutralized separately.

        Regards,
                Olivier

  parent reply	other threads:[~2026-11-05 17:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 22:19 [PATCH] usb: uas: ignore UAS for ASMT135x bridges (174c:55aa) Olivier Kaloudoff
2026-10-13 22:23 ` sashiko-bot
2026-10-14  5:00 ` Greg KH
2026-10-14 10:57 ` [PATCH v2] " Olivier Kaloudoff
2026-10-14 11:02   ` sashiko-bot
2026-10-14 11:16   ` Greg KH
2026-10-27  9:54   ` Oliver Neukum
     [not found]     ` <CAKLTOU-rb97bv5dNZ0AkzBNORLYeWbK9kJjQUxfveK4aCAUuJQ@mail.gmail.com>
2026-11-02 10:32       ` Oliver Neukum
2026-10-14 16:57 ` [PATCH v3] " Olivier Kaloudoff
2026-10-14 17:02   ` sashiko-bot
2026-10-14 19:04   ` [usb-storage] " Alan Stern
2026-11-05 17:32   ` Olivier Kaloudoff [this message]
2026-11-05 19:43     ` Oliver Neukum
2026-11-13 18:32 ` [PATCH] " Eddie Chapman
  -- strict thread matches above, loose matches on Subject: below --
2026-11-12 16:09 [PATCH v3] " Olivier Kaloudoff
2026-11-13 10:44 ` Oliver Neukum

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=20261105173250.97239-1-olivier.kaloudoff@gmail.com \
    --to=olivier.kaloudoff@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oneukum@suse.com \
    --cc=stable@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=usb-storage@lists.one-eyed-alien.net \
    /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