Hi, On Sun, Dec 28, 2014 at 07:28:33PM -0500, Jorge Ramirez-Ortiz wrote: > On 12/28/2014 11:39 AM, Felipe Balbi wrote: > > On Sat, Dec 27, 2014 at 05:33:36PM -0500, Jorge Ramirez-Ortiz wrote: > >> Hi Ricardo/all > >> > >> I finally got around to capture a trace of a SS bulk transfer using the net2280. > >> The trace is available to anyone interested (70 MB file for the Beaglebone 5000). > > can you publish the trace somewhere we can download ? I use Beagle5000 > > myself and could help revieweing the traces. > > > > Thanks Felipe. > I dont have any public ftp server at hand so I just pushed the log to my Xenomai > git tree. > > please grab it from here (no need to clone the tree, just press the download link) > http://git.xenomai.org/xenomai-jro.git/commit/?h=logs One of the reasons could be because you're using the printer gadget :-) Have you tried any of the other gadgets ? In any case, try this little hack: diff --git a/drivers/usb/gadget/legacy/printer.c b/drivers/usb/gadget/legacy/printer.c index 9054598..8a09661 100644 --- a/drivers/usb/gadget/legacy/printer.c +++ b/drivers/usb/gadget/legacy/printer.c @@ -129,7 +129,7 @@ module_param(qlen, uint, S_IRUGO|S_IWUSR); /* holds our biggest descriptor */ #define USB_DESC_BUFSIZE 256 -#define USB_BUFSIZE 8192 +#define USB_BUFSIZE 65536 static struct usb_device_descriptor device_desc = { .bLength = sizeof device_desc, Also, look how the printer gadget will only requeue requests on a subsequent call to read(), that ought to cause a ton of extra delays. Looking at the code, you have a queue of 10 requests (by default), do me a favor, apply the hack above and increase the queue to 12 requests, then transfer exactly 64MBytes. This means you won't need to requeue any requests so your entire transfer will fit in one go through the queue. Let's see if that changes anything. I have never used the printer gadget, what do I need to get it working ? I'd very much like to try that with my DWC3-based boards. cheers -- balbi
Attachment:
signature.asc
Description: Digital signature