Skip to content

tests/qtest: Extend USB host controller transfer coverage

Junjie Cao qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tests/qtest/usb-hcd-ehci: Test a control transfertests/qtest/usb-hcd-ehci-test.c+142 -00 replies
2/7tests/qtest/usb-hcd-ehci: Cover isochronous IN to EP0tests/qtest/usb-hcd-ehci-test.c+68 -70 replies
3/7tests/qtest/usb-hcd-ehci: Cover isochronous OUT to EP0tests/qtest/usb-hcd-ehci-test.c+9 -40 replies
4/7tests/qtest/usb-hcd-uhci: Test interrupt NAK retriestests/qtest/usb-hcd-uhci-test.c+161 -00 replies
5/7tests/qtest/usb-hcd-uhci: Test isochronous NAK completiontests/qtest/usb-hcd-uhci-test.c+28 -100 replies
6/7tests/qtest/usb-hcd-uhci: Test a successful isochronous transfertests/qtest/usb-hcd-uhci-test.c+62 -120 replies
7/7tests/qtest/usb-hcd-xhci: Test a successful isochronous transfertests/qtest/usb-hcd-xhci-test.c+89 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/7] tests/qtest: Extend USB host controller transfer coverage

From: Junjie Cao <[email protected]>

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

Signature · 1 line
2.43.0