USB: chipidea: patchset for performance improvement
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | Doc: usb: ci-hdrc-imx: add gadget-itc-setting for binding docDocumentation/ | +3 | 0 replies | |
| 2/12 | usb: chipidea: set ITC to 0 for device modedrivers/ include/ | +21 | 0 replies | |
| 3/12 | usb: chipidea: define stream mode disable for both rolesdrivers/ drivers/ include/ | +8 | 0 replies | |
| 4/12 | usb: chipidea: imx: add stream mode enable for device mode at imx6sl/imx6sxdrivers/ | +9 | 0 replies | |
| 5/12 | usb: chipidea: introduce ci_platform_configdrivers/ drivers/ drivers/ | +43 | 1 reply | |
| 5/12 | usb: chipidea: introduce ci_platform_config | +0 | 0 replies | |
| 6/12 | Doc: usb: ci-hdrc-imx: add ahb-burst-config for binding docDocumentation/ | +3 | 0 replies | |
| 7/12 | ARM: imx6: set ahb-burst-config as 0 for USBarch/ arch/ arch/ | +10 | 0 replies | |
| 8/12 | usb: chipidea: add ahb burst configurationdrivers/ drivers/ include/ | +23 | 0 replies | |
| 9/12 | usb: chipidea: usbmisc_imx: add unburst setting for imx6drivers/ | +10 | 0 replies | |
| 10/12 | Doc: usb: ci-hdrc-imx: add tx(rx)-burst-config-dword for binding docDocumentation/ | +6 | 0 replies | |
| 11/12 | ARM: imx6: change default burst size for USBarch/ arch/ arch/ | +20 | 0 replies | |
| 12/12 | usb: chipidea: add burst size configuration interfacedrivers/ drivers/ drivers/ +1 more | +46 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/12] USB: chipidea: patchset for performance improvement
Hi all,
In this patch set, I add some interfaces for tuning the performance of chipidea usb driver. With this set, the USB performance can be improved at some user cases with suitable parameters. The main changes:
- Interface to tune interrupt threshold control, and set 'Immediate' for default value
- The glue layer can disable stream mode according to USB role
- Interface to tune AHB burst configuration at SBUSCFG
- Interface to tune tx/rx burst size
- i.mx changes for achieving better performance, it can reduce the latecy between bus and USB FIFO, and reduce the overrun and underrun occurrences, it is useful for the system bus is busy. we see great improvement for ISO transfer, eg, high resolution USB camera when the bus is busy.
Below are some test results at imx6sx sdb board (set ehci_hcd.park=3 at bootargs), the tests are done at v4.0 kernel, no other bus loading during the tests, so we have not seen performance change for some use cases.
USB Mass Storage (Host mode)
With Patch Set Without Patch Set
R: 26.9 MB/s 27 MB/s
W: 25.2 MB/s 24.5 MB/s
1G USB Ethernet Card
With Patch Set Without Patch Set
TX: 186 Mb/s 185 Mb/s
RX: 219 Mb/s 216 Mb/s
g_ncm (Device Mode)
With Patch Set Without Patch Set
TX: 166MB/s 163MB/s
RX: 230MB/s 184MB/s
Peter Chen (12):
Doc: usb: ci-hdrc-imx: add gadget-itc-setting for binding doc
usb: chipidea: set ITC to 0 for device mode
usb: chipidea: define stream mode disable for both roles
usb: chipidea: imx: add stream mode enable for device mode at
imx6sl/imx6sx
usb: chipidea: introduce ci_platform_config
Doc: usb: ci-hdrc-imx: add ahb-burst-config for binding doc
ARM: imx6: set ahb-burst-config as 0 for USB
usb: chipidea: add ahb burst configuration
usb: chipidea: usbmisc_imx: add unburst setting for imx6
Doc: usb: ci-hdrc-imx: add tx(rx)-burst-config-dword for binding doc
ARM: imx6: change default burst size for USB
usb: chipidea: add burst size configuration interface
.../devicetree/bindings/usb/ci-hdrc-imx.txt | 12 +++ arch/arm/boot/dts/imx6qdl.dtsi | 12 +++ arch/arm/boot/dts/imx6sl.dtsi | 9 ++ arch/arm/boot/dts/imx6sx.dtsi | 9 ++ drivers/usb/chipidea/bits.h | 7 ++ drivers/usb/chipidea/ci.h | 3 + drivers/usb/chipidea/ci_hdrc_imx.c | 14 ++- drivers/usb/chipidea/core.c | 119 +++++++++++++++++++-- drivers/usb/chipidea/host.c | 6 +- drivers/usb/chipidea/usbmisc_imx.c | 12 ++- include/linux/usb/chipidea.h | 11 +- 11 files changed, 191 insertions(+), 23 deletions(-)
Signature · 1 line
1.9.1