]> git.proxmox.com Git - qemu.git/commit
ehci: Further speedup rescanning if async schedule after raising an interrupt
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Dec 2012 13:35:31 +0000 (14:35 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 7 Jan 2013 11:57:23 +0000 (12:57 +0100)
commit52c15e5986cd0f6531a2989a81a964f77b4ed9c2
treea809cb1939da313c5e3e31168439c9369e377aa8
parent9359a58b122187964d7465d48165680eadbf69d3
ehci: Further speedup rescanning if async schedule after raising an interrupt

I tried lowering the time between raising an interrupt and rescanning the
async schedule to see if the guest has queued a new transfer before, but
that did not have any positive effect. I now believe the cause for this is
that lowering this time made it more likely to hit the 1 ms interrupt
threshold penalty for the next packet, as described in my
"ehci: Use uframe precision for interrupt threshold checking" commit.

Now that we do interrupt threshold handling with uframe precision, futher
lowering this time from .5 to .25 ms gives an extra 15% improvement in speed
(MB/s) reading from a simple USB-2.0 thumb-drive.

While at it also properly set the int_req_by_async flag for short packet
completions.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ehci.c