Re: [PATCH 1/2] usb: dwc3: gadget: set xfer resource per endpoint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

John Youn <John.Youn@xxxxxxxxxxxx> writes:
>>> However, I'm not aware of any issue with END_TRANSFER, could you let
>>> me know how to reproduce it?
>> 
>> it's a rare and difficult bug to reproduce. If you take my testing/next
>> (I didn't check if it happens with v4.7-rc1) - $subject and keep large
>> mass storage transfers going on, eventually you'll see mass storage
>> hang. After some 30s, host side will timeout and cancel all URBs and
>> issue a bus reset. This will, in turn, cause the gadget driver to issue
>> END_TRANSFER to a possible in-flight transfer.
>> 
>> After Reset completion, the gadget will reenumerate and, when gadget
>> driver queues to a bulk EP, StartTransfer will return "No Resource". The
>> reason for that is that END_TRANSFER deallocates the resource, according
>> to section 6.3.5.2 of 2.60a databook.
      ^^^^^^^^^^^^^^^
      section 6.3.2.5.2

> Do you know if the END_TRANSFER completes successfully? It could be

oh yeah, it completes just fine

> that the END_TRANFER failed and it continues to tie up the resource.
>
> I'll ask around to see if there is any other possibilities as well.

thanks

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux