From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] testing: [PATCH v7 0/3] common: usb_storage: Implement logic to calculate optimal usb maximum trasfer blocks
Date: Thu, 23 Jun 2016 01:02:44 +0200 [thread overview]
Message-ID: <576B1914.9070707@denx.de> (raw)
In-Reply-To: <HE1PR0401MB2331D1E93561AD5EF4A69A0BE32C0@HE1PR0401MB2331.eurprd04.prod.outlook.com>
On 06/22/2016 08:36 AM, Rajesh Bhagat wrote:
>
>
> From: Matthew Bright [mailto:Matthew.Bright at alliedtelesis.co.nz]
> Sent: Wednesday, June 22, 2016 11:42 AM
> To: Rajesh Bhagat <rajesh.bhagat@nxp.com>; marex at denx.de
> Cc: u-boot at lists.denx.de; Chris Packham <Chris.Packham@alliedtelesis.co.nz>; Mark Tomlinson <Mark.Tomlinson@alliedtelesis.co.nz>
> Subject: testing: [PATCH v7 0/3] common: usb_storage: Implement logic to calculate optimal usb maximum trasfer blocks
>
> On 06/16/2016 12:35 PM, Rajesh Bhagat wrote:
>> Performs code cleanup by making common function for usb_stor_read/write
>> and 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.
>>
>> Rajesh Bhagat (3):
>> common: usb_storage: Make common function for usb_read_10/usb_write_10
>> common: usb_storage: Make common function for
>> usb_stor_read/usb_stor_write
>> common: usb_storage : Implement logic to calculate optimal usb maximum
>> trasfer blocks
>>
>> common/usb_storage.c | 213 +++++++++++++++++++++++----------------------------
>> include/usb.h | 1 +
>> 2 files changed, 98 insertions(+), 116 deletions(-)
>>
>>
>> Hi Rajesh & Marek
>>
>> I have spend the last couple of days testing these patches on the
>> v2016.05 release, with an usb mass storage device that is able to
>> consistently reproduce the USB_MAX_XFER_BLK issue as described in
>> the "Issue with USB mass storage (thumb drives)" u-boot thread.
>>
>> http://lists.denx.de/pipermail/u-boot/2016-February/244464.html?
>>
>
> Hello Matt,
>
>> I can confirm the patch correctly increases the max transfer bocks
>> after a successful read, and decreases the max transfer bocks after
>> a read failure. However, I have noticed that once the ehci time out
>> error occurs, the usb device appears to lock up. When in this state
>> the usb device will stop responding to any further transfers. This
>> behavior is independent of the number of blocks, and will continue
>> until the ehci has been reset.
>>
>
> I believe the lockup behavior mentioned by you to be device specific quirk.
> I tested 3 pen drives, which recovered from EHCI timeout behavior by
> reducing the number of blocks (check below output):
>
3 devices is not a representative sample.
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-06-22 23:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-22 6:12 [U-Boot] testing: [PATCH v7 0/3] common: usb_storage: Implement logic to calculate optimal usb maximum trasfer blocks Matthew Bright
2016-06-22 6:36 ` Rajesh Bhagat
2016-06-22 23:02 ` Marek Vasut [this message]
2016-06-23 2:52 ` Matthew Bright
2016-06-28 6:44 ` Rajesh Bhagat
2016-07-21 8:08 ` Rajesh Bhagat
2016-07-21 11:43 ` Marek Vasut
2016-07-21 13:09 ` Rajesh Bhagat
2016-07-21 23:59 ` Matthew Bright
2016-07-22 10:27 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=576B1914.9070707@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox