2012-10-05 21:39:33 +04:00
|
|
|
common-obj-$(CONFIG_USB_UHCI) += hcd-uhci.o
|
|
|
|
common-obj-$(CONFIG_USB_OHCI) += hcd-ohci.o
|
2012-10-30 18:08:37 +04:00
|
|
|
common-obj-$(CONFIG_USB_EHCI) += hcd-ehci.o hcd-ehci-pci.o hcd-ehci-sysbus.o
|
2012-10-05 21:39:33 +04:00
|
|
|
common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o
|
|
|
|
common-obj-y += libhw.o
|
2012-05-29 13:10:55 +04:00
|
|
|
|
2012-12-19 18:08:33 +04:00
|
|
|
common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
|
2012-05-29 13:10:55 +04:00
|
|
|
|
usb: Add packet combining functions
Currently we only do pipelining for output endpoints, since to properly
support short-not-ok semantics we can only have one outstanding input
packet. Since the ehci and uhci controllers have a limited per td packet
size guests will split large input transfers to into multiple packets,
and since we don't pipeline these, this comes with a serious performance
penalty.
This patch adds helper functions to (re-)combine packets which belong to 1
transfer at the guest device-driver level into 1 large transger. This can be
used by (redirection) usb-devices to enable pipelining for input endpoints.
This patch will combine packets together until a transfer terminating packet
is encountered. A terminating packet is a packet which meets one or more of
the following conditions:
1) The packet size is *not* a multiple of the endpoint max packet size
2) The packet does *not* have its short-not-ok flag set
3) The packet has its interrupt-on-complete flag set
The short-not-ok flag of the combined packet is that of the terminating packet.
Multiple combined packets may be submitted to the device, if the combined
packets do not have their short-not-ok flag set, enabling true pipelining.
If a combined packet does have its short-not-ok flag set the queue will
wait with submitting further packets to the device until that packet has
completed.
Once enabled in the usb-redir and ehci code, this improves the speed (MB/s)
of a Linux guest reading from a USB mass storage device by a factor of
1.2 - 1.5.
And the main reason why I started working on this, when reading from a pl2303
USB<->serial converter, it combines the previous 4 packets submitted per
device-driver level read into 1 big read, reducing the number of packets / sec
by a factor 4, and it allows to have multiple reads outstanding. This allows
for much better latency tolerance without the pl2303's internal buffer
overflowing (which was happening at 115200 bps, without serial flow control).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2012-10-31 16:47:09 +04:00
|
|
|
common-obj-y += core.o combined-packet.o bus.o desc.o dev-hub.o
|
2012-05-29 13:08:47 +04:00
|
|
|
common-obj-y += host-$(HOST_USB).o dev-bluetooth.o
|
|
|
|
common-obj-y += dev-hid.o dev-storage.o dev-wacom.o
|
|
|
|
common-obj-y += dev-serial.o dev-network.o dev-audio.o
|
2012-12-20 23:39:36 +04:00
|
|
|
common-obj-y += dev-smartcard-reader.o
|
2012-06-08 18:03:37 +04:00
|
|
|
common-obj-y += dev-uas.o
|