[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: |
Johannes Stezenbach |
Subject: |
Re: [Qemu-devel] [PATCH 14/14] usb-host: add timeout handler |
Date: |
Thu, 26 Apr 2012 11:51:39 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
On Tue, Apr 24, 2012 at 05:51:31PM +0200, Gerd Hoffmann wrote:
> Add a timeout handler. In case bulk transfers take too long to finish
> the request will be canceled. The timeout is tunable via property, by
> default it is 5 seconds.
This patch causes an issue for my firmware download. The
protocol used is very simple and uses a single bulk out endpoint:
- send start packet
- send firmware image
- send end packet
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?
Thanks,
Johannes
- [Qemu-devel] [PATCH 06/14] usb-host: fix zero-length packets, (continued)
- [Qemu-devel] [PATCH 06/14] usb-host: fix zero-length packets, Gerd Hoffmann, 2012/04/24
- [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
- Re: [Qemu-devel] [PATCH 14/14] usb-host: add timeout handler,
Johannes Stezenbach <=
- [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