On 21/9/26 07:46, Junjie Cao wrote:
Add the minimum needed to drive a transfer ring from the test. Use it to
queue an isoch TD with SIA on usb-audio after stepping the clock past
2^32 microframes, and check that the TD waits for the next interval
boundary. Before the ROUND_UP() change it completed as soon as the
doorbell was rung.

The machine is started with pit=off. With the i8254 present the clock
step takes 26s in an ASan build instead of well under a second.

Signed-off-by: Junjie Cao <[email protected]>
---

Notes:
     Nick Piggin's v4 series has a fuller xhci ring harness for qtest:
     
https://lore.kernel.org/qemu-devel/[email protected]/
     The helpers here are self-contained so that the fixes do not depend on
     it. I can rebase onto that harness if it is revived.

  tests/qtest/usb-hcd-xhci-test.c | 283 ++++++++++++++++++++++++++++++++
  1 file changed, 283 insertions(+)

Acked-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to