[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 14/14] usb-host: add timeout handler
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH 14/14] usb-host: add timeout handler |
Date: |
Thu, 26 Apr 2012 12:22:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120307 Thunderbird/10.0.3 |
Hi,
> When the "end" packet is received the actual flashing starts,
> which can take minutes. The device will not ACK the packet
> until flashing completes. Thus I now get an error from the
> flash tool (while flashing completes on the device).
> Qemu says:
>
> husb: urb timeout (5 secs, #1)
>
> I think 5 seconds default timeout may also cause issues
> with slow devices (hard disk spinning up, CDROM reading
> disc TOC etc.). It seems unneccessary since the guest OS
> handles timeouts specified by drivers/applications
> on URB submission, and will cancel transfers on timeout.
> Has this been added to fix an actual problem?
Has been added to detect requests getting stuck. I'm seeing this now
and then with linux guests polling usb sticks (test unit ready every few
seconds). Seems to be a bug somewhere, not root-caused yet.
/me wanted qemu handle it and warn about this (like it warns already in
case device reset takes unusual long). But, yes, I can see how this can
cause more harm than it helps as usb-host has no way to figure how long
a certain operation will take.
Pushed usb.49 with this patch dropped.
cheers,
Gerd
- [Qemu-devel] [PATCH 04/14] usb-storage: fix request canceling, (continued)
- [Qemu-devel] [PATCH 04/14] usb-storage: fix request canceling, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 03/14] usb-ehci: Ensure frindex writes leave a valid frindex value, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 01/14] usb-ehci: remove hack, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 13/14] usb-uhci: update irq line on reset, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 10/14] usb-redir: Reset device address and speed on disconnect, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 08/14] usb-xhci: fix bit test, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 11/14] usb-redir: Not finding an async urb id is not an error, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 12/14] usb: add serial number generator, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 14/14] usb-host: add timeout handler, Gerd Hoffmann, 2012/04/24
- [Qemu-devel] [PATCH 07/14] usb-xhci: Use PCI DMA helper functions, Gerd Hoffmann, 2012/04/24
- Re: [Qemu-devel] [PULL 00/14] usb patch queue, Gerd Hoffmann, 2012/04/26