]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: misc: usbtest: add bulk queue test
authorPeter Chen <peter.chen@freescale.com>
Tue, 13 Oct 2015 07:18:21 +0000 (15:18 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 13 Oct 2015 18:19:49 +0000 (13:19 -0500)
commit145f48c518edb945ea5b689a1d21052597f9d64b
tree14b445b06831bb1203810a4c68f2e379b126bdba
parent44e4a60dacf8a96f28b5e021b54ba9eeb793ca2e
usb: misc: usbtest: add bulk queue test

The bulk queue tests are used to show 'best performance' for bulk
transfer, we are often asked this question by users. The implementation
is the same with iso test, that is queue request at interrupt completion,
so we reuse the iso structures, and rename them as common one.

It's result should be very close to IC simulation, in order
to get that, the device side should also need to prepare enough
queue.

We have got the 'best performance' (IN: 41MB, OUT: 39MB) at i.mx platform
(USB2, ARM Cortex A9, stream mode need to enable) with below command:

Host side:
modprobe usbtest
./testusb -a -t 27 -g 64 -s 16384
./testusb -a -t 28 -g 64 -s 16384
Gadget side:
modprobe g_zero loopdefault=1 qlen=64 buflen=16384

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/misc/usbtest.c