rv1126-uboot/drivers/usb/host
Marek Vasut db0e15c2c3 UPSTREAM: 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.

Change-Id: I33a5eccac2579be09c5f1c9385ae245e680bc125
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 02b0e1a36c5bc20174299312556ec4e266872bd6)
2020-01-07 17:25:02 +08:00
..
Kconfig UPSTREAM: ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP 2020-01-07 17:25:02 +08:00
Makefile UPSTREAM: usb: host: remove the xhci-zynqmp driver 2020-01-07 17:25:01 +08:00
dwc2.c UPSTREAM: dwc2: use the nonblock argument in submit_int_msg 2020-01-07 17:25:00 +08:00
dwc2.h UPSTREAM: usb: dwc2: Rename CONFIG_DWC2_UTMI_PHY_WIDTH to CONFIG_DWC2_UTMI_WIDTH 2020-01-07 17:24:47 +08:00
dwc3-of-simple.c UPSTREAM: usb: dwc3-of-simple: fix error check of clk_get_bulk when disabled 2020-01-07 17:24:49 +08:00
dwc3-sti-glue.c
ehci-armada100.c
ehci-atmel.c UPSTREAM: usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2020-01-07 17:24:53 +08:00
ehci-exynos.c
ehci-faraday.c
ehci-fsl.c UPSTREAM: usb: ehci: adopt 32 bit address for CONFIG_PPC 2020-01-07 17:24:58 +08:00
ehci-generic.c UPSTREAM: usb: ehci-generic: don't probe fail if there is no clk_enable() ops 2020-01-07 17:25:01 +08:00
ehci-hcd.c UPSTREAM: usb: ehci-hcd: Keep async schedule running 2020-01-07 17:25:02 +08:00
ehci-marvell.c UPSTREAM: usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2020-01-07 17:24:53 +08:00
ehci-msm.c UPSTREAM: ehci: msm: Add missing platdata 2020-01-07 17:24:53 +08:00
ehci-mx5.c UPSTREAM: USB: DM: Convert i.MX5 ehci code to driver model 2020-01-07 17:24:57 +08:00
ehci-mx6.c UPSTREAM: ehci-mx6: Update EHCI driver to support OTG0 on i.MX7ULP 2020-01-07 17:25:02 +08:00
ehci-mxc.c
ehci-mxs.c UPSTREAM: usb: ehci: mxs: fix swapped argument in ehci_writel() 2020-01-07 17:24:46 +08:00
ehci-omap.c
ehci-pci.c UPSTREAM: usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2020-01-07 17:24:53 +08:00
ehci-rcar_gen3.c
ehci-rmobile.c
ehci-spear.c
ehci-sunxi.c UPSTREAM: usb: sunxi: Simplify ccm reg base code 2020-01-07 17:24:51 +08:00
ehci-tegra.c
ehci-vct.c
ehci-vf.c UPSTREAM: usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/ 2020-01-07 17:24:53 +08:00
ehci-zynq.c
ehci.h UPSTREAM: usb: ehci: Make the PHY handling generic 2020-01-07 17:24:52 +08:00
ohci-at91.c
ohci-da8xx.c UPSTREAM: usb: ohci: ohci-da8xx: Cleanup Error handling and fix flags 2020-01-07 17:24:58 +08:00
ohci-ep93xx.c
ohci-generic.c UPSTREAM: usb: ohci-generic: don't probe fail if there is no clk_enable() ops 2020-01-07 17:25:01 +08:00
ohci-hcd.c UPSTREAM: usb: Add nonblock argument to submit_int_msg 2020-01-07 17:25:00 +08:00
ohci-lpc32xx.c
ohci-pci.c UPSTREAM: usb, ohci, pci: add DM support for PCI-based OHCI USB controller 2020-01-07 17:24:59 +08:00
ohci-sunxi.c UPSTREAM: usb: sunxi: Simplify ccm reg base code 2020-01-07 17:24:51 +08:00
ohci.h UPSTREAM: usb, ohci: fix ohci swap register access 2020-01-07 17:24:59 +08:00
r8a66597-hcd.c UPSTREAM: usb: r8a66597: Add optional DM VBUS regulator support 2020-01-07 17:25:00 +08:00
r8a66597.h UPSTREAM: usb: r8a66597: Add optional DM VBUS regulator support 2020-01-07 17:25:00 +08:00
sl811-hcd.c UPSTREAM: usb: Add nonblock argument to submit_int_msg 2020-01-07 17:25:00 +08:00
sl811.h
usb-sandbox.c UPSTREAM: usb: Add nonblock argument to submit_int_msg 2020-01-07 17:25:00 +08:00
usb-uclass.c UPSTREAM: usb: Add nonblock argument to submit_int_msg 2020-01-07 17:25:00 +08:00
utmi-armada100.c
xhci-dwc3.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-exynos5.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-fsl.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-keystone.c
xhci-mem.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-mvebu.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-omap.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-pci.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-rcar-r8a779x_usb3_v3.h UPSTREAM: usb: xhci: Add Renesas R-Car xHCI driver 2020-01-07 17:24:45 +08:00
xhci-rcar.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-ring.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-rockchip.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00
xhci-zynqmp.c UPSTREAM: usb: xhci: zynqmp: Fix header location 2020-01-07 17:24:52 +08:00
xhci.c UPSTREAM: usb: xhci: move xhci.h to include usb 2020-01-07 17:25:01 +08:00