All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] common: usb_storage : Implement logic to calculate optimal
@ 2016-05-30 11:23 Rajesh Bhagat
  2016-05-30 11:23 ` [U-Boot] [PATCH 1/2] common: usb_storage : Implement logic to calculate optimal usb maximum trasfer blocks Rajesh Bhagat
  2016-05-30 11:23 ` [U-Boot] [PATCH 2/2] common: usb_storage : Seperate optimal blocks logic calculation for read/write Rajesh Bhagat
  0 siblings, 2 replies; 7+ messages in thread
From: Rajesh Bhagat @ 2016-05-30 11:23 UTC (permalink / raw)
  To: u-boot

Implements the logic to calculate the optimal usb maximum trasfer blocks
instead of sending USB_MAX_XFER_BLK blocks which is 65535 and 20 in case
of EHCI and other USB protocols respectively

Sample Behaviour: Fallback to 16384 blocks once failure is seen on 32768.

=> usb write a0000000 0 10000;

USB write: device 0 block # 0, count 65536 ... usb_write: retry #2, xfer_blk 4096, smallblks 4096
usb_write: retry #2, xfer_blk 8192, smallblks 8192
usb_write: retry #2, xfer_blk 16384, smallblks 16384
usb_write: retry #2, xfer_blk 32768, smallblks 32768
EHCI timed out on TD - token=0x10008c80
usb_write: retry #1, xfer_blk 16384, smallblks 16384
usb_write: retry #2, xfer_blk 16384, smallblks 16384
usb_write: retry #2, xfer_blk 16384, smallblks 4096
65536 blocks write: OK

Rajesh Bhagat (2):
  common: usb_storage : Implement logic to calculate optimal usb maximum
    trasfer blocks
  common: usb_storage : Seperate optimal blocks logic calculation for
    read/write

 common/usb_storage.c | 66 +++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 47 insertions(+), 19 deletions(-)

-- 
2.6.2.198.g614a2ac

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-01  3:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-30 11:23 [U-Boot] [PATCH 0/2] common: usb_storage : Implement logic to calculate optimal Rajesh Bhagat
2016-05-30 11:23 ` [U-Boot] [PATCH 1/2] common: usb_storage : Implement logic to calculate optimal usb maximum trasfer blocks Rajesh Bhagat
2016-05-30 23:41   ` Marek Vasut
2016-05-31  3:23     ` Rajesh Bhagat
2016-05-31 11:56       ` Marek Vasut
2016-06-01  3:47         ` Rajesh Bhagat
2016-05-30 11:23 ` [U-Boot] [PATCH 2/2] common: usb_storage : Seperate optimal blocks logic calculation for read/write Rajesh Bhagat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.