Hi, Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> writes: > [ Unknown signature status ] > > Hi again, > > Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> writes: >>> irq/17-dwc3-1336 [000] d... 839.828020: fsg_common_set_inquiry_string: ep1in: 13/13 --> 0 >> >> Our CSW completes fine >> >>> irq/17-dwc3-1336 [000] d... 839.828022: fsg_common_set_inquiry_string: ep1out: 31/1024 --> 0 >> >> 2 us later, we receive another CBW, but the thread doesn't run. Any ideas? > > I wonder if common->thread_wakeup_needed is racing. hmmm, the last transfer is not getting to 1MiB. It's doing 1MiB - 16kiB: > irq/17-dwc3-1254 [000] d... 2291.053433: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053506: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053515: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053524: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053593: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053599: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053663: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053670: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053677: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053786: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053794: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053808: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053816: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053882: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053962: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.053970: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054035: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054043: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054108: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054115: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054180: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054186: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054260: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054266: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054329: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054336: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054341: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054412: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054419: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054482: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054488: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054552: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054559: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054622: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054628: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054703: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054711: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054774: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054781: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054844: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054849: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054900: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054907: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054972: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.054980: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055045: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055052: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055117: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055125: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055191: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055199: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055286: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055293: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055299: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055391: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055397: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055403: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055469: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055489: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055568: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055573: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055580: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2291.055690: fsg_common_set_inquiry_string: ep1out: 16384/16384 --> 0 > irq/17-dwc3-1254 [000] d... 2321.908532: fsg_common_set_inquiry_string: ep1out: 0/16384 --> -108 Now to figure out if this was because of gadget driver or UDC. -- balbi
Attachment:
signature.asc
Description: PGP signature