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 (16:03 +0000)
committerBenoit Goby <benoit@android.com>
Wed, 7 Sep 2011 00:40:39 +0000 (17:40 -0700)
commit95cf7a199cf8bcd6647c3b90efb78614157bf766
treebf71c1c9a80c8d74b479f9a68a3b9132947c38a5
parent7013f4976374ea75cb35446393be7bdc37bf607f
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.

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