]> Git Repo - qemu.git/commit - hw/usb/hcd-ehci.c
usb-ehci: Handle ISO packets failing with an error other then NAK
authorHans de Goede <[email protected]>
Sun, 26 Feb 2012 15:14:48 +0000 (16:14 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 27 Feb 2012 12:37:36 +0000 (13:37 +0100)
commitdf7871851eb327af0a612895738c0e1854fde00b
treed36504708c64d7270b319487337e2b06cb420dba
parent0082f4336e128a17d5f34e01de0fd29930e99b0d
usb-ehci: Handle ISO packets failing with an error other then NAK

Before this patch the ehci code was not checking for any other errors other
then USB_RET_NAK. This causes 2 problems:
1) Other errors are not reported to the guest.
2) When transactions with the ITD_XACT_IOC bit set completing with another
   error would not result in USBSTS_INT getting set.

I hit this problem when unplugging devices while iso data was streaming from
the device to the guest. When this happens it takes a while for the guest to
process the unplugging and remove ISO transactions from the ehci schedule, in
the mean time these transactions would complete with a result of USB_RET_NODEV,
which was not handled. This lead to the Linux guest's usb subsystem "hanging",
that is it would no longer see new usb devices getting plugged in and running
for example lsusb would lead to a stuck (D state) lsusb process. This patch
fixes this.

Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb-ehci.c
This page took 0.026605 seconds and 4 git commands to generate.