hw/usb/hcd-xhci: two isoch fixes with qtests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | hw/usb/hcd-xhci: fix interval alignment after MFINDEX passes 2^32hw/ | +2 | 1 reply | |
| 2/4 | hw/usb/hcd-xhci: don't assert on NAK when retrying an isoch transferhw/ | +8 | 1 reply | |
| 3/4 | tests/qtest/usb-hcd-xhci: test isoch pacing with MFINDEX above 2^32tests/ | +283 | 1 reply | |
| 4/4 | tests/qtest/usb-hcd-xhci: test isoch endpoint type mismatchtests/ | +35 | 0 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé | Thomas Huth |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | A-b | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] hw/usb/hcd-xhci: two isoch fixes with qtests
Two xHCI bugs from the issue tracker, each with a qtest.
The interval mask is 32 bits wide, so once MFINDEX passes 2^32 isoch TDs with SIA are no longer held until the next interval boundary. This matches #3973: onset after 6.2 days of uptime, cleared by re-binding the controller in the guest.
A guest can declare a non-isoch endpoint as isoch and hit an assertion when the device NAKs (#3886). #544 is the same assertion, reached from the kick timer as in patch 4. Its reproducer from 2021 no longer triggers on master, so it is not tagged.
Both tests fail on master (c1c18d1e64). Tested on x86_64 with an ASan/UBSan build: usb-hcd-xhci-test, usb-hcd-ehci-test and usb-hcd-uhci-test pass. The new tests skip on ppc64.
Junjie Cao (4):
hw/usb/hcd-xhci: fix interval alignment after MFINDEX passes 2^32 hw/usb/hcd-xhci: don't assert on NAK when retrying an isoch transfer tests/qtest/usb-hcd-xhci: test isoch pacing with MFINDEX above 2^32 tests/qtest/usb-hcd-xhci: test isoch endpoint type mismatch
hw/usb/hcd-xhci.c | 33 +--- tests/qtest/usb-hcd-xhci-test.c | 318 ++++++++++++++++++++++++++++++++ 2 files changed, 328 insertions(+), 23 deletions(-)
base-commit: c1c18d1e640b64292859ce9f30f3c344edfb0294
Signature · 1 line
2.43.0