From: Igor Skalkin <igor.skalkin@oss.qualcomm.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>,
Seungjin Bae <eeodqql09@gmail.com>, Kees Cook <kees@kernel.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Sebastian Urban <surban@surban.net>, Felipe Balbi <balbi@ti.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Igor Skalkin <igor.skalkin@oss.qualcomm.com>
Subject: [PATCH v2 0/2] usb: gadget: dummy_hcd: fixes found while testing virtio-usb
Date: Wed, 12 Aug 2026 10:19:08 +0200 [thread overview]
Message-ID: <20260812081910.6821-1-igor.skalkin@oss.qualcomm.com> (raw)
In-Reply-To: <20260807075438.5566-1-igor.skalkin@oss.qualcomm.com>
This is v2 of the dummy_hcd fixes found while testing our upcoming
virtio-usb transport driver (patches for that will follow separately).
Changes since v1:
- Patch 1 (ep0 maxpacket) is unchanged; carrying forward Alan
Stern's Acked-by.
- Patch 2 (false overflow on bounded IN) is dropped. Alan Stern
pointed out the fix was wrong: an IN short packet where the
device has more data queued than the host's buffer can hold is a
genuine overflow, not a normal bounded completion. Agreed, and
there's no replacement fix queued for this report.
- Patch 3 (SG transfer handling across chunks) is dropped from this
version. Alan Stern confirmed the underlying issue and suggested
a simpler fix (resync the sg_miter with sg_miter_skip() after each
consumed chunk instead of restarting and re-walking from
urb->actual_length on every call). The original failure was
reliably reproducible against an earlier, debug-instrumented
version of our (not yet posted) virtio-usb transport driver, but
is not currently reproducing against the current version of that
driver, which makes it hard to verify a replacement fix with any
confidence. I'd rather confirm a fix against a real reproduction
before resending than resend an unverified change, so this patch
is held back for now and will follow separately once reproduced
again.
- Patch 4 (no_sg_constraint) is reworked per Alan Stern's review:
instead of unconditionally relaxing the SG alignment constraint,
it is now only relaxed on the SuperSpeed bus, preserving the
EHCI-style alignment emulation on the HighSpeed bus.
Igor Skalkin (2):
usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket
usb: gadget: dummy_hcd: set no_sg_constraint only on the SuperSpeed
bus
drivers/usb/gadget/udc/dummy_hcd.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
--
2.49.0
next prev parent reply other threads:[~2026-08-12 8:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-07 7:54 [PATCH 0/4] " Igor Skalkin
2026-08-07 7:54 ` [PATCH 1/4] usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket Igor Skalkin
2026-08-07 21:15 ` Alan Stern
2026-08-07 7:54 ` [PATCH 2/4] usb: gadget: dummy_hcd: fix false overflow on bounded IN Igor Skalkin
2026-08-07 21:19 ` Alan Stern
2026-08-07 7:54 ` [PATCH 3/4] usb: gadget: dummy_hcd: fix SG transfer handling across chunks Igor Skalkin
2026-08-07 21:31 ` Alan Stern
2026-08-07 7:54 ` [PATCH 4/4] usb: gadget: dummy_hcd: set no_sg_constraint on the host controller Igor Skalkin
2026-08-07 21:23 ` Alan Stern
2026-08-12 8:19 ` Igor Skalkin [this message]
2026-08-12 8:19 ` [PATCH v2 1/2] usb: gadget: dummy_hcd: fix SuperSpeed ep0 maxpacket Igor Skalkin
2026-08-12 8:19 ` [PATCH v2 2/2] usb: gadget: dummy_hcd: set no_sg_constraint only on the SuperSpeed bus Igor Skalkin
2026-08-12 14:03 ` Alan Stern
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=20260812081910.6821-1-igor.skalkin@oss.qualcomm.com \
--to=igor.skalkin@oss.qualcomm.com \
--cc=balbi@ti.com \
--cc=bigeasy@linutronix.de \
--cc=eeodqql09@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=surban@surban.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
all inboxes | Powered by JetHome®