All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/7] tests/qtest: Extend USB host controller transfer coverage
@ 2026-10-22 13:45 Junjie Cao
  2026-10-22 13:45 ` [PATCH v1 1/7] tests/qtest/usb-hcd-ehci: Test a control transfer Junjie Cao
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Junjie Cao @ 2026-10-22 13:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: farosas, lvivier, pbonzini, thuth, peter.maydell, junjie.cao

From: Junjie Cao <junjie.cao@intel.com>

Peter's discussion of isochronous endpoint mismatches highlighted the
lack of tests as a concern for moving the checks into the USB core [1].
This series adds transfer tests motivated by that discussion, without
changing controller or USB core code.

The tests cover EHCI control transfers and isochronous IN/OUT requests
to EP0, UHCI interrupt retries and isochronous completion on NAK, and
successful UHCI/xHCI isochronous OUT transfers to USB audio. The audio
tests configure the device and enable its streaming interface through
EP0 before submitting a packet.

These cases exercise both rejection/retry behavior and successful
isochronous transfers. EHCI isochronous success and USB_RET_ASYNC
completion remain outside the coverage of this series.

Suggestions for other transfer paths to cover in follow-up patches
are welcome.

[1] https://lore.kernel.org/qemu-devel/CAFEAcA8jcNzVT9QuFfog4GZRWt8ZpysKbOy9R-SxmtTrAZ67JQ@mail.gmail.com/

Junjie Cao (7):
  tests/qtest/usb-hcd-ehci: Test a control transfer
  tests/qtest/usb-hcd-ehci: Cover isochronous IN to EP0
  tests/qtest/usb-hcd-ehci: Cover isochronous OUT to EP0
  tests/qtest/usb-hcd-uhci: Test interrupt NAK retries
  tests/qtest/usb-hcd-uhci: Test isochronous NAK completion
  tests/qtest/usb-hcd-uhci: Test a successful isochronous transfer
  tests/qtest/usb-hcd-xhci: Test a successful isochronous transfer

 tests/qtest/usb-hcd-ehci-test.c | 208 +++++++++++++++++++++++++++++
 tests/qtest/usb-hcd-uhci-test.c | 229 ++++++++++++++++++++++++++++++++
 tests/qtest/usb-hcd-xhci-test.c |  95 ++++++++++++-
 3 files changed, 526 insertions(+), 6 deletions(-)


base-commit: ed698be7700160c74d24ef7830adccd2a28d840a
-- 
2.43.0



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

end of thread, other threads:[~2026-10-22 13:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22 13:45 [PATCH v1 0/7] tests/qtest: Extend USB host controller transfer coverage Junjie Cao
2026-10-22 13:45 ` [PATCH v1 1/7] tests/qtest/usb-hcd-ehci: Test a control transfer Junjie Cao
2026-10-22 13:45 ` [PATCH v1 2/7] tests/qtest/usb-hcd-ehci: Cover isochronous IN to EP0 Junjie Cao
2026-10-22 13:45 ` [PATCH v1 3/7] tests/qtest/usb-hcd-ehci: Cover isochronous OUT " Junjie Cao
2026-10-22 13:45 ` [PATCH v1 4/7] tests/qtest/usb-hcd-uhci: Test interrupt NAK retries Junjie Cao
2026-10-22 13:45 ` [PATCH v1 5/7] tests/qtest/usb-hcd-uhci: Test isochronous NAK completion Junjie Cao
2026-10-22 13:46 ` [PATCH v1 6/7] tests/qtest/usb-hcd-uhci: Test a successful isochronous transfer Junjie Cao
2026-10-22 13:46 ` [PATCH v1 7/7] tests/qtest/usb-hcd-xhci: " Junjie Cao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.