]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: ehci: make HC see up-to-date qh/qtd descriptor ASAP
authorMing Lei <ming.lei@canonical.com>
Tue, 30 Aug 2011 16:03:13 +0000 (00:03 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:09:35 +0000 (14:09 +0200)
commit26783d6ab265fcd494c44b54fb066f33469cd90d
treedf615903120f2ffc69c83d72be00336db67bfc1a
parent0b585f9b7aed47d4b315c78aede045f0be37c089
usb: ehci: make HC see up-to-date qh/qtd descriptor ASAP

This patch introduces the helper of ehci_sync_mem to flush
qtd/qh into memory immediately on some ARM, so that HC can
see the up-to-date qtd/qh descriptor asap.

This patch fixs one performance bug on ARM Cortex A9 dual core
platform, which has been reported on quite a few ARM machines
(OMAP4, Tegra 2, snowball...), see details from link of
https://bugs.launchpad.net/bugs/709245.

The patch has been tested ok on OMAP4 panda A1 board, and the
performance of 'dd' over usb mass storage can be increased from
4~5MB/sec to 14~16MB/sec after applying this patch.

Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
drivers/usb/host/ehci-q.c
drivers/usb/host/ehci.h