usb: gadget: storage: increase maximum storage num buffers
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 12 May 2016 12:02:29 +0000 (15:02 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:30:03 +0000 (12:30 +0300)
With a default size of 16kiB and with maximum of 32
buffers, we can transfer up to 512kiB, however Linux
can transfer up to 1MiB in a single mass storage
block transfer to USB3 storage devices.

Because of this, 1MiB block transfers end up being
slower than 512kiB block transfers. Let's increase
maximum number of storage buffers to a ridiculous
amount (256) so that anybody wanting to test maximum
achievable throughput can do so.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/Kconfig

index 2057add..3c3f31c 100644 (file)
@@ -114,7 +114,7 @@ config USB_GADGET_VBUS_DRAW
 
 config USB_GADGET_STORAGE_NUM_BUFFERS
        int "Number of storage pipeline buffers"
-       range 2 32
+       range 2 256
        default 2
        help
           Usually 2 buffers are enough to establish a good buffering