u-boot/drivers/usb
Marek Vasut 02b0e1a36c usb: ehci-hcd: Keep async schedule running
Profiling the EHCI driver shows a significant performance problem in
ehci_submit_async(). Specifically, this function keeps enabling and
disabling async schedule back and forth for every single transaction.
However, enabling/disabling the async schedule does not take effect
immediatelly, but instead may take up to 1 mS (8 uFrames) to complete.

This impacts USB storage significantly, esp. since the recent reduction
of maximum transfer size to support more USB storage devices. This in
turn results in sharp increase in the number of ehci_submit_async()
calls. Since one USB storage BBB transfer does three such calls and
the maximum transfer size is 120 kiB, the overhead is 6 mS per 120 kiB,
which is unacceptable.

However, this overhead can be removed simply by keeping the async
schedule running. Specifically, the first transfer starts the async
schedule and then each and every subsequent transfer only adds a new
QH into that schedule, waits until the QH is completed and does NOT
disable the async schedule. The async schedule is stopped only by
shutting down the controller, which must happen before moving out
of U-Boot, otherwise the controller will corrupt memory.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
2019-10-31 12:13:40 +01:00
..
common usb: Introduce CONFIG_SPL_DM_USB 2018-11-26 21:19:03 +01:00
dwc3 dwc3: flush cache only if there is a buffer attached to a request 2019-10-31 12:12:31 +01:00
emul usb: Add nonblock argument to submit_int_msg 2019-09-11 10:11:29 +02:00
eth usb: composite: Move bitmap related operations to ./include/linux/bitmap.h 2018-12-14 17:59:08 +01:00
gadget gadget: f_thor: properly enable 3rd endpoint defined by the protocol 2019-10-31 12:12:31 +01:00
host usb: ehci-hcd: Keep async schedule running 2019-10-31 12:13:40 +01:00
musb usb: musb_hcd: fix compilation error 2019-09-11 10:11:39 +02:00
musb-new usb: Add nonblock argument to submit_int_msg 2019-09-11 10:11:29 +02:00
phy usb: xhci: move xhci.h to include usb 2019-10-24 11:28:17 +02:00
ulpi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig usb: Don't enable CONFIG_SPL_DM_USB for non-DM SPL 2018-12-14 17:59:08 +01:00