UHCI fails to signal stall response
Public bug reported:
When TD execution results in STALL error (STALL handshake, no stall as a result of err count reaching 0), there is no way to know about it except for checking that TD. IMO it is an error condition and it should be reflected in the status register (and issue an interrupt if enabled).
Ways to replicate:
Send a query that is answered by stall (like set_idle request to a mouse)
Expected behavior:
UHCI hc sets status bit 1 (usb error interrupt) and issues an interrupt
current behavior:
Neither status bit is set nor interrupt triggered
Version 0.14
attached patch for current master (quick fix, it might be I got something wrong)
** Affects: qemu
Importance: Undecided
Status: New
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/757654 Title: UHCI fails to signal stall response Status in QEMU: New Bug description: When TD execution results in STALL error (STALL handshake, no stall as a result of err count reaching 0), there is no way to know about it except for checking that TD. IMO it is an error condition and it should be reflected in the status register (and issue an interrupt if enabled). Ways to replicate: Send a query that is answered by stall (like set_idle request to a mouse) Expected behavior: UHCI hc sets status bit 1 (usb error interrupt) and issues an interrupt current behavior: Neither status bit is set nor interrupt triggered Version 0.14 attached patch for current master (quick fix, it might be I got something wrong)
** Patch added: "report error on stall response"
https://bugs.launchpad.net/bugs/757654/+attachment/2017520/+files/usb_stall.patch
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/757654 Title: UHCI fails to signal stall response Status in QEMU: New Bug description: When TD execution results in STALL error (STALL handshake, no stall as a result of err count reaching 0), there is no way to know about it except for checking that TD. IMO it is an error condition and it should be reflected in the status register (and issue an interrupt if enabled). Ways to replicate: Send a query that is answered by stall (like set_idle request to a mouse) Expected behavior: UHCI hc sets status bit 1 (usb error interrupt) and issues an interrupt current behavior: Neither status bit is set nor interrupt triggered Version 0.14 attached patch for current master (quick fix, it might be I got something wrong)
Hi,
Thanks for reporting this issue.
Just so you are aware: the qemu USB maintainer is probably going to be away for a while longer, so don't be too worried if this patch doesn't get looked at for 2-4 weeks.
Brad
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/757654 Title: UHCI fails to signal stall response Status in QEMU: New Bug description: When TD execution results in STALL error (STALL handshake, no stall as a result of err count reaching 0), there is no way to know about it except for checking that TD. IMO it is an error condition and it should be reflected in the status register (and issue an interrupt if enabled). Ways to replicate: Send a query that is answered by stall (like set_idle request to a mouse) Expected behavior: UHCI hc sets status bit 1 (usb error interrupt) and issues an interrupt current behavior: Neither status bit is set nor interrupt triggered Version 0.14 attached patch for current master (quick fix, it might be I got something wrong)
No problem, it's not like it breaks something. This fix just makes driver development easier.
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/757654 Title: UHCI fails to signal stall response Status in QEMU: New Bug description: When TD execution results in STALL error (STALL handshake, no stall as a result of err count reaching 0), there is no way to know about it except for checking that TD. IMO it is an error condition and it should be reflected in the status register (and issue an interrupt if enabled). Ways to replicate: Send a query that is answered by stall (like set_idle request to a mouse) Expected behavior: UHCI hc sets status bit 1 (usb error interrupt) and issues an interrupt current behavior: Neither status bit is set nor interrupt triggered Version 0.14 attached patch for current master (quick fix, it might be I got something wrong)
Quoted 2 lines · jvesely
No problem, it's not like it breaks something. This fix just makes driver development easier.
Please send your patch to the mailing list:
http://wiki.qemu.org/Contribute/SubmitAPatch
It may seem petty to ask this since you've already attached it to the bug, but for QEMU development to scale and keep at a rapid pace, everyone needs to follow these steps on submitting patches. Thanks for your effort!
Stefan
Patch had been included here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=8656954aedbd9995e68e
... so closing this ticket now.
** Changed in: qemu
Status: New => Fix Released
Signature · 31 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/757654 Title: UHCI fails to signal stall response Status in QEMU: Fix Released Bug description: When TD execution results in STALL error (STALL handshake, no stall as a result of err count reaching 0), there is no way to know about it except for checking that TD. IMO it is an error condition and it should be reflected in the status register (and issue an interrupt if enabled). Ways to replicate: Send a query that is answered by stall (like set_idle request to a mouse) Expected behavior: UHCI hc sets status bit 1 (usb error interrupt) and issues an interrupt current behavior: Neither status bit is set nor interrupt triggered Version 0.14 attached patch for current master (quick fix, it might be I got something wrong) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/757654/+subscriptions