Hi, >> I did another usbmon capture from the moment usb cable is plugged into >> the Ubuntu x100e laptop. This time the usbmon does not have -75 error. >> When the SCSI_READ_10 command request for 4096 bytes of data, and the >> data is returned by the gadget, usbmon simply shows -108 error. The >> gadget driver log and usbmon trace are attached. > > Again, the -108 indicates that the host controller disabled the port. > The usbmon trace confirms this. I think the most common reason for > disabling a port in this way is that the device tried to transmit a > packet across a microframe boundary. > >> The FIFO size in gadget bulk out endpoint 1 is 512 bytes, so i break >> the 4096 bytes of data into 8 chunks of 512 bytes, before returning >> them to Ubuntu. I guess it would not be the root cause, won't it? > > It's hard to say without looking at the signals on the wire. Are you > certain the hardware really is sending 512 bytes for each chunk? > That's why you need to use a bus analyzer -- to see what's actually > going on. I have an important finding. When the problem (SCSI_READ_10 command reads 4096 bytes of data, causing gadget to reset) happens, the PC shows that the gadget is detected as Full-speed device, but gadget reports that it is set to High-speed from: g_file_storage gadget: high-speed config #1 This is printed from do_set_config() in file_storage.c. In UDC driver, it is hardcorded to high speed in UDC driver start function. I changed it to be set depending on hardware value. Now it is: g_file_storage gadget: full-speed config #1 However, in usbmon, the SCSI_READ_10 command still requests for 4096 bytes of data, and this causes gadget to reset. Please see the gadget log, and usbmon trace, and host dmesg log. Thanks, Victor
[ 3427.328908] usb 1-5.2: new full speed USB device using ehci_hcd and address 7 [ 3427.421804] usb 1-5.2: not running at top speed; connect to a high speed hub [ 3427.455274] usb-storage 1-5.2:1.0: Quirks match for vid 0525 pid a4a5: 10000 [ 3427.457117] scsi3 : usb-storage 1-5.2:1.0 [ 3428.896784] usb 1-5.2: reset full speed USB device using ehci_hcd and address 7
f33fa400 1314593130 C Ci:1:007:0 0 9 = 09022000 010104c0 01 f33fa400 1314593147 S Ci:1:007:0 s 80 06 0200 0000 0020 32 < f33fa400 1314593752 C Ci:1:007:0 0 32 = 09022000 010104c0 01090400 00020806 50050705 81024000 00070501 02400000 f33fa400 1314593791 S Ci:1:007:0 s 80 06 0300 0000 00ff 255 < f33fa400 1314594502 C Ci:1:007:0 0 4 = 04030904 f33fa400 1314594519 S Ci:1:007:0 s 80 06 0302 0409 00ff 255 < f33fa400 1314595120 C Ci:1:007:0 0 54 = 36034600 69006c00 65002d00 62006100 63006b00 65006400 20005300 74006f00 f33fa400 1314595918 S Ci:1:007:0 s 80 06 0301 0409 00ff 255 < f33fa400 1314596884 C Ci:1:007:0 0 58 = 3a034c00 69006e00 75007800 20003300 2e003400 2e003400 2b002000 77006900 f33fa400 1314597660 S Co:1:007:0 s 00 09 0001 0000 0000 0 f33fa400 1314598122 C Co:1:007:0 0 0 f33fa400 1314599768 S Ci:1:007:0 s 80 06 0304 0409 00ff 255 < f33fa400 1314612251 C Ci:1:007:0 0 26 = 1a035300 65006c00 66002d00 70006f00 77006500 72006500 6400 f2e1ee00 1314612435 S Ci:1:007:0 s 80 06 0305 0409 00ff 255 < f2e1ee00 1314613115 C Ci:1:007:0 0 26 = 1a034d00 61007300 73002000 53007400 6f007200 61006700 6500 f33a1380 1315254841 S Co:1:003:0 s 23 03 0016 0302 0000 0 f33a1380 1315255168 C Co:1:003:0 0 0 f2e1e400 1315646807 S Ci:1:007:0 s a1 fe 0000 0000 0001 1 < f2e1e400 1315647355 C Ci:1:007:0 0 1 = 00 f2e1e400 1315655086 S Bo:1:007:1 -115 31 = 55534243 01000000 24000000 80000612 00000024 00000000 00000000 000000 f2e1e400 1315655351 C Bo:1:007:1 0 31 > f2ed1a00 1315655414 S Bi:1:007:1 -115 36 < f2ed1a00 1315657108 C Bi:1:007:1 0 36 = 00000202 1f000000 4c696e75 78202020 46696c65 2d53746f 72204761 64676574 f2e1e400 1315657185 S Bi:1:007:1 -115 13 < f2e1e400 1315666355 C Bi:1:007:1 0 13 = 55534253 01000000 00000000 00 f2e1e400 1315708514 S Bo:1:007:1 -115 31 = 55534243 02000000 00000000 00000600 00000000 00000000 00000000 000000 f2e1e400 1315708845 C Bo:1:007:1 0 31 > f2e1e400 1315708919 S Bi:1:007:1 -115 13 < f2e1e400 1315718221 C Bi:1:007:1 0 13 = 55534253 02000000 00000000 01 f2e1e400 1315718323 S Bo:1:007:1 -115 31 = 55534243 03000000 12000000 80000603 00000012 00000000 00000000 000000 f2e1e400 1315718460 C Bo:1:007:1 0 31 > f2ed1700 1315718501 S Bi:1:007:1 -115 18 < f2ed1700 1315728467 C Bi:1:007:1 0 18 = 70000600 0000000a 00000000 29000000 0000 f2e1e400 1315728630 S Bi:1:007:1 -115 13 < f2e1e400 1315737728 C Bi:1:007:1 0 13 = 55534253 03000000 00000000 00 f2e1e400 1315738087 S Bo:1:007:1 -115 31 = 55534243 04000000 00000000 00000600 00000000 00000000 00000000 000000 f2e1e400 1315738959 C Bo:1:007:1 0 31 > f2e1e400 1315739098 S Bi:1:007:1 -115 13 < f2e1e400 1315748116 C Bi:1:007:1 0 13 = 55534253 04000000 00000000 00 f2e1e400 1315748392 S Bo:1:007:1 -115 31 = 55534243 05000000 08000000 80000a25 00000000 00000000 00000000 000000 f2e1e400 1315748596 C Bo:1:007:1 0 31 > f33faa00 1315748619 S Bi:1:007:1 -115 8 < f33faa00 1315758231 C Bi:1:007:1 0 8 = 00759fc0 00000200 f2e1e400 1315758268 S Bi:1:007:1 -115 13 < f2e1e400 1315801959 C Bi:1:007:1 0 13 = 55534253 05000000 00000000 00 f2e1e400 1315802220 S Bo:1:007:1 -115 31 = 55534243 06000000 c0000000 8000061a 003f00c0 00000000 00000000 000000 f2e1e400 1315802324 C Bo:1:007:1 0 31 > f2e1ed00 1315802344 S Bi:1:007:1 -115 192 < f2e1ed00 1315812223 C Bi:1:007:1 -121 16 = 0f000000 080a0400 ffff0000 ffffffff f2e1e400 1315812378 S Bi:1:007:1 -115 13 < f2e1e400 1315827704 C Bi:1:007:1 0 13 = 55534253 06000000 b0000000 00 f2e1e400 1315833528 S Bo:1:007:1 -115 31 = 55534243 07000000 00000000 00000600 00000000 00000000 00000000 000000 f2e1e400 1315834204 C Bo:1:007:1 0 31 > f2e1e400 1315834281 S Bi:1:007:1 -115 13 < f2e1e400 1315837968 C Bi:1:007:1 0 13 = 55534253 07000000 00000000 00 f2e1e400 1315838286 S Bo:1:007:1 -115 31 = 55534243 08000000 08000000 80000a25 00000000 00000000 00000000 000000 f2e1e400 1315838444 C Bo:1:007:1 0 31 > f33a1380 1315838483 S Bi:1:007:1 -115 8 < f33a1380 1315887697 C Bi:1:007:1 0 8 = 00759fc0 00000200 f2e1e400 1315888880 S Bi:1:007:1 -115 13 < f2e1e400 1315896463 C Bi:1:007:1 0 13 = 55534253 08000000 00000000 00 f2e1e400 1315896820 S Bo:1:007:1 -115 31 = 55534243 09000000 c0000000 8000061a 003f00c0 00000000 00000000 000000 f2e1e400 1315897688 C Bo:1:007:1 0 31 > f4060200 1315897740 S Bi:1:007:1 -115 192 < f4060200 1315906709 C Bi:1:007:1 -121 16 = 0f000000 080a0400 ffff0000 ffffffff f2e1e400 1315906828 S Bi:1:007:1 -115 13 < f2eeb680 1315918815 S Co:1:003:0 s 23 03 0016 0202 0000 0 f2eeb680 1315919207 C Co:1:003:0 0 0 f2e1e400 1315922065 C Bi:1:007:1 0 13 = 55534253 09000000 b0000000 00 f2e1e400 1315925063 S Bo:1:007:1 -115 31 = 55534243 0a000000 00100000 80000a28 00000000 00000008 00000000 000000 f2e1e400 1315925563 C Bo:1:007:1 0 31 > f2eebb00 1315925925 S Bi:1:007:1 -115 4096 < f2eebb00 1315978979 C Bi:1:007:1 -32 0 f2e1e400 1315979685 S Co:1:007:0 s 02 01 0000 0081 0000 0 f2e1e400 1315992067 C Co:1:007:0 -71 0 f33b9200 1315992101 S Co:1:003:0 s 23 08 0070 0001 0000 0 f33b9200 1315992424 C Co:1:003:0 0 0 f33b9200 1315994895 S Co:1:003:0 s 23 03 0004 0002 0000 0 f33b9200 1315995425 C Co:1:003:0 0 0 f337cf00 1316010794 S Ci:1:003:0 s a3 00 0000 0002 0004 4 < f337cf00 1316011925 C Ci:1:003:0 0 4 = 03111200 f2ed1080 1316066927 S Co:1:003:0 s 23 01 0014 0002 0000 0 f2ed1080 1316067422 C Co:1:003:0 0 0 f2ed1080 1316067527 S Ci:1:000:0 s 80 06 0100 0000 0040 64 < f2ed1080 1316068166 C Ci:1:000:0 0 18 = 12010002 00000040 2505a5a4 33030102 0001 f2ed1080 1316068224 S Co:1:003:0 s 23 03 0004 0002 0000 0 f2ed1080 1316068539 C Co:1:003:0 0 0 f2ed1f00 1316082885 S Ci:1:003:0 s a3 00 0000 0002 0004 4 < f2ed1f00 1316083544 C Ci:1:003:0 0 4 = 03111200 f33fa680 1316138791 S Co:1:003:0 s 23 01 0014 0002 0000 0 f33fa680 1316139790 C Co:1:003:0 0 0 f33fa680 1316139892 S Co:1:000:0 s 00 05 0007 0000 0000 0 f33fa680 1316140027 C Co:1:000:0 0 0 f3369680 1316156865 C Ii:1:003:1 0:2048 1 = 04 f3369680 1316156882 S Ii:1:003:1 -115:2048 1 < f33faa80 1316158783 S Ci:1:007:0 s 80 06 0100 0000 0012 18 < f33faa80 1316160165 C Ci:1:007:0 0 18 = 12010002 00000040 2505a5a4 33030102 0001 f33faa80 1316160223 S Ci:1:007:0 s 80 06 0200 0000 0020 32 < f33faa80 1316160913 C Ci:1:007:0 0 32 = 09022000 010104c0 01090400 00020806 50050705 81024000 00070501 02400000 f33faa80 1316160933 S Co:1:007:0 s 00 09 0001 0000 0000 0 f33faa80 1316161162 C Co:1:007:0 0 0 f2e1e400 1316161235 S Bo:1:007:1 -115 31 = 55534243 0b000000 00100000 80000a28 00000000 00000008 00000000 000000 f2e1e400 1316161407 C Bo:1:007:1 0 31 > f33faa80 1316161426 S Bi:1:007:1 -115 4096 < f33faa80 1316176283 C Bi:1:007:1 -121 0 f2e1e400 1316178172 S Bi:1:007:1 -115 13 < f2e1e400 1316233025 C Bi:1:007:1 0 13 = 55534253 0b000000 00100000 01 f2e1e400 1316233160 S Bo:1:007:1 -115 31 = 55534243 0c000000 12000000 80000603 00000012 00000000 00000000 000000 f2e1e400 1316233264 C Bo:1:007:1 0 31 > f33a1c00 1316233284 S Bi:1:007:1 -115 18 < f33a1c00 1316243401 C Bi:1:007:1 0 18 = 70000600 0000000a 00000000 29000000 0000 f2e1e400 1316243546 S Bi:1:007:1 -115 13 < f2e1e400 1316252647 C Bi:1:007:1 0 13 = 55534253 0c000000 00000000 00 f2e1e400 1316252795 S Bo:1:007:1 -115 31 = 55534243 0d000000 00100000 80000a28 00000000 00000008 00000000 000000 f2e1e400 1316252886 C Bo:1:007:1 0 31 > f33a1100 1316252906 S Bi:1:007:1 -115 4096 < f33a1100 1316265516 C Bi:1:007:1 -121 141 = eb58904d 53444f53 352e3000 02085005 02000000 00f80000 3f00ff00 3f000000 f2e1e400 1316267194 S Bi:1:007:1 -115 13 <
g_file_storage gadget: disconnect or port reset handle_exception begin handle_exception wait until handle_exception old_state 5 g_file_storage gadget: in handle_exception loop g_file_storage gadget: in fsg->running loop g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 01 00 00 40 00 g_file_storage gadget: get device descriptor ept0 in queue len 0x12, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 18: 00000000: 12 01 00 02 00 00 00 40 25 05 a5 a4 33 03 01 02 00000010: 00 01 g_file_storage gadget: disconnect or port reset handle_exception begin handle_exception wait until handle_exception old_state 5 g_file_storage gadget: in handle_exception loop g_file_storage gadget: in fsg->running loop USB_RECIP_DEVICE fa is 0x7 exit A g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 01 00 00 12 00 g_file_storage gadget: get device descriptor ept0 in queue len 0x12, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 18: 00000000: 12 01 00 02 00 00 00 40 25 05 a5 a4 33 03 01 02 00000010: 00 01 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 06 00 00 0a 00 g_file_storage gadget: get device qualifier ept0 in queue len 0xa, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 10: 00000000: 0a 06 00 02 00 00 00 40 01 00 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 02 00 00 09 00 g_file_storage gadget: get configuration descriptor ept0 in queue len 0x9, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 9: 00000000: 09 02 20 00 01 01 04 c0 01 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 02 00 00 20 00 g_file_storage gadget: get configuration descriptor ept0 in queue len 0x20, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 32: 00000000: 09 02 20 00 01 01 04 c0 01 09 04 00 00 02 08 06 00000010: 50 05 07 05 81 02 40 00 00 07 05 01 02 40 00 00 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 03 00 00 ff 00 g_file_storage gadget: get string descriptor ept0 in queue len 0x4, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 4: 00000000: 04 03 09 04 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 02 03 09 04 ff 00 g_file_storage gadget: get string descriptor ept0 in queue len 0x36, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 54: 00000000: 36 03 46 00 69 00 6c 00 65 00 2d 00 62 00 61 00 00000010: 63 00 6b 00 65 00 64 00 20 00 53 00 74 00 6f 00 00000020: 72 00 61 00 67 00 65 00 20 00 47 00 61 00 64 00 00000030: 67 00 65 00 74 00 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 01 03 09 04 ff 00 g_file_storage gadget: get string descriptor ept0 in queue len 0x3a, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 58: 00000000: 3a 03 4c 00 69 00 6e 00 75 00 78 00 20 00 33 00 00000010: 2e 00 34 00 2e 00 34 00 2b 00 20 00 77 00 69 00 00000020: 74 00 68 00 20 00 6b 00 61 00 67 00 65 00 6e 00 00000030: 32 00 5f 00 75 00 73 00 62 00 g_file_storage gadget: ep0-setup, length 8: 00000000: 00 09 01 00 00 00 00 00 g_file_storage gadget: set configuration handle_exception begin handle_exception wait until handle_exception old_state 4 g_file_storage gadget: set interface 0 g_file_storage gadget: full-speed config #1 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 04 03 09 04 ff 00 g_file_storage gadget: get string descriptor ept0 in queue len 0x1a, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 26: 00000000: 1a 03 53 00 65 00 6c 00 66 00 2d 00 70 00 6f 00 00000010: 77 00 65 00 72 00 65 00 64 00 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 05 03 09 04 ff 00 g_file_storage gadget: get string descriptor ept0 in queue len 0x1a, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 26: 00000000: 1a 03 4d 00 61 00 73 00 73 00 20 00 53 00 74 00 00000010: 6f 00 72 00 61 00 67 00 65 00 g_file_storage gadget: in handle_exception loop [start_transfer] e5d4e03c e1828718 ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue g_file_storage gadget: ep0-setup, length 8: 00000000: a1 fe 00 00 00 00 01 00 g_file_storage gadget: get max LUN ept0 in queue len 0x1, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 1: 00000000: 00 EP1 OUT IRQ 0x28 after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 1 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 01 00 00 00 24 00 00 00 80 00 06 12 00000010: 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: INQUIRY; Dc=6, Di=36; Hc=6, Hi=36 g_file_storage gadget: bulk-in, length 36: 00000000: 00 00 02 02 1f 00 00 00 4c 69 6e 75 78 20 20 20 00000010: 46 69 6c 65 2d 53 74 6f 72 20 47 61 64 67 65 74 00000020: 30 33 33 33 [start_transfer] 2020000 1f ept1 in queue len 0x24, buffer 0xc1340000 0: 0x2020000 4: 0x1f 8: 0x756e694c c: 0x20202078 bulk_in_complete --> 0, 36/36 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 01 00 00 00 00 00 00 00 00 [start_transfer] 53425355 1 ept1 in queue len 0xd, buffer 0xc12a0000 0: 0x53425355 4: 0x1 8: 0x0 bulk_in_complete --> 0, 13/13 EP1 OUT IRQ 0x28 [start_transfer] 2020000 1f ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 2 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 02 00 00 00 00 00 00 00 00 00 06 00 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: TEST UNIT READY; Dc=6, Dn=0; Hc=6, Hn=0 attention condition g_file_storage gadget: before calling send_status g_file_storage gadget: sending command-failure status g_file_storage gadget: sense data: SK x06, ASC x29, ASCQ x00; info x0 g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 02 00 00 00 00 00 00 00 01 [start_transfer] 53425355 2 ept1 in queue len 0xd, buffer 0xc1340000 0: 0x53425355 4: 0x2 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] 53425355 1 ept1 out queue len 0x40, buffer 0xc12a0000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 3 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 03 00 00 00 12 00 00 00 80 00 06 03 00000010: 00 00 00 12 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: REQUEST SENSE; Dc=6, Di=18; Hc=6, Hi=18 g_file_storage gadget: bulk-in, length 18: 00000000: 70 00 06 00 00 00 00 0a 00 00 00 00 29 00 00 00 00000010: 00 00 [start_transfer] 60070 a000000 ept1 in queue len 0x12, buffer 0xc12a0000 0: 0x60070 4: 0xa000000 8: 0x0 c: 0x29 bulk_in_complete --> 0, 18/18 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 03 00 00 00 00 00 00 00 00 [start_transfer] 53425355 3 ept1 in queue len 0xd, buffer 0xc1340000 0: 0x53425355 4: 0x3 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] 60070 a000000 ept1 out queue len 0x40, buffer 0xc12a0000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 4 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 04 00 00 00 00 00 00 00 00 00 06 00 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: TEST UNIT READY; Dc=6, Dn=0; Hc=6, Hn=0 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 04 00 00 00 00 00 00 00 00 [start_transfer] 53425355 4 ept1 in queue len 0xd, buffer 0xc12a0000 0: 0x53425355 4: 0x4 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] 53425355 3 ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 5 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 05 00 00 00 08 00 00 00 80 00 0a 25 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: READ CAPACITY; Dc=10, Di=8; Hc=10, Hi=8 g_file_storage gadget: bulk-in, length 8: 00000000: 00 75 9f c0 00 00 02 00 [start_transfer] c09f7500 20000 ept1 in queue len 0x8, buffer 0xc1340000 0: 0xc09f7500 4: 0x20000 bulk_in_complete --> 0, 8/8 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 05 00 00 00 00 00 00 00 00 [start_transfer] 53425355 5 ept1 in queue len 0xd, buffer 0xc12a0000 0: 0x53425355 4: 0x5 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] c09f7500 20000 ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 6 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 06 00 00 00 c0 00 00 00 80 00 06 1a 00000010: 00 3f 00 c0 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: MODE SENSE(6); Dc=6, Di=192; Hc=6, Hi=192 g_file_storage gadget: bulk-in, length 16: 00000000: 0f 00 00 00 08 0a 04 00 ff ff 00 00 ff ff ff ff [start_transfer] f 40a08 ept1 in queue len 0x10, buffer 0xc1340000 0: 0xf 4: 0x40a08 8: 0xffff c: 0xffffffff bulk_in_complete --> 0, 16/16 g_file_storage gadget: bulk-in set halt kagen2_set_halt 1 1 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 06 00 00 00 b0 00 00 00 00 [start_transfer] 53425355 6 ept1 in queue len 0xd, buffer 0xc12a0000 0: 0x53425355 4: 0x6 8: 0xb0 bulk_in_complete --> 0, 13/13 [start_transfer] f 40a08 ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 7 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 07 00 00 00 00 00 00 00 00 00 06 00 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: TEST UNIT READY; Dc=6, Dn=0; Hc=6, Hn=0 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 07 00 00 00 00 00 00 00 00 [start_transfer] 53425355 7 ept1 in queue len 0xd, buffer 0xc1340000 0: 0x53425355 4: 0x7 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] 53425355 6 ept1 out queue len 0x40, buffer 0xc12a0000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 8 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 08 00 00 00 08 00 00 00 80 00 0a 25 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: READ CAPACITY; Dc=10, Di=8; Hc=10, Hi=8 g_file_storage gadget: bulk-in, length 8: 00000000: 00 75 9f c0 00 00 02 00 [start_transfer] c09f7500 20000 ept1 in queue len 0x8, buffer 0xc12a0000 0: 0xc09f7500 4: 0x20000 bulk_in_complete --> 0, 8/8 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 08 00 00 00 00 00 00 00 00 [start_transfer] 53425355 8 ept1 in queue len 0xd, buffer 0xc1340000 0: 0x53425355 4: 0x8 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] c09f7500 20000 ept1 out queue len 0x40, buffer 0xc12a0000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 9 g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 09 00 00 00 c0 00 00 00 80 00 06 1a 00000010: 00 3f 00 c0 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: MODE SENSE(6); Dc=6, Di=192; Hc=6, Hi=192 g_file_storage gadget: bulk-in, length 16: 00000000: 0f 00 00 00 08 0a 04 00 ff ff 00 00 ff ff ff ff [start_transfer] f 40a08 ept1 in queue len 0x10, buffer 0xc12a0000 0: 0xf 4: 0x40a08 8: 0xffff c: 0xffffffff bulk_in_complete --> 0, 16/16 g_file_storage gadget: bulk-in set halt kagen2_set_halt 1 1 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 09 00 00 00 b0 00 00 00 00 [start_transfer] 53425355 9 ept1 in queue len 0xd, buffer 0xc1340000 0: 0x53425355 4: 0x9 8: 0xb0 bulk_in_complete --> 0, 13/13 [start_transfer] f 40a08 ept1 out queue len 0x40, buffer 0xc12a0000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 a g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 0a 00 00 00 00 10 00 00 80 00 0a 28 00000010: 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: READ(10); Dc=10, Di=4096; Hc=10, Hi=4096 g_file_storage gadget-lun0: file read 4096 @ 0 -> 4096 [start_transfer] 4d9058eb 534f4453 ept1 in queue len 0x1000, buffer 0xc12a0000 len_num 4096, iter_num 0 0: 0x4d9058eb 4: 0x534f4453 8: 0x302e35 c: 0x5500802 len_num 3584, iter_num 1 0: 0x41615252 4: 0x0 8: 0x0 c: 0x0 len_num 3072, iter_num 2 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 2560, iter_num 3 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 2048, iter_num 4 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 1536, iter_num 5 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 1024, iter_num 6 0: 0x4d9058eb 4: 0x534f4453 8: 0x302e35 c: 0x5500802 len_num 512, iter_num 7 0: 0x41615252 4: 0x0 8: 0x0 c: 0x0 bulk_in_complete --> 0, 4096/4096 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 0a 00 00 00 00 00 00 00 00 [start_transfer] 53425355 a ept1 in queue len 0xd, buffer 0xc1340000 0: 0x53425355 4: 0xa 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] 4d9058eb 534f4453 ept1 out queue len 0x40, buffer 0xc12a0000 before kagen2_ep_queue g_file_storage gadget: disconnect or port reset after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 a g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 0a 00 00 00 00 10 00 00 80 00 0a 28 00000010: 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: READ(10); Dc=10, Di=4096; Hc=10, Hi=4096 g_file_storage gadget-lun0: file read 4096 @ 0 -> 4096 g_file_storage gadget: after calling do_scsi_command handle_exception begin handle_exception wait until handle_exception old_state 5 g_file_storage gadget: reset config g_file_storage gadget: reset interface g_file_storage gadget: in handle_exception loop g_file_storage gadget: in fsg->running loop g_file_storage gadget: in fsg->running loop g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 01 00 00 40 00 g_file_storage gadget: get device descriptor ept0 in queue len 0x12, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 18: 00000000: 12 01 00 02 00 00 00 40 25 05 a5 a4 33 03 01 02 00000010: 00 01 g_file_storage gadget: disconnect or port reset handle_exception begin handle_exception wait until handle_exception old_state 5 g_file_storage gadget: in handle_exception loop g_file_storage gadget: in fsg->running loop USB_RECIP_DEVICE fa is 0x7 exit A g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 01 00 00 12 00 g_file_storage gadget: get device descriptor ept0 in queue len 0x12, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 18: 00000000: 12 01 00 02 00 00 00 40 25 05 a5 a4 33 03 01 02 00000010: 00 01 g_file_storage gadget: ep0-setup, length 8: 00000000: 80 06 00 02 00 00 20 00 g_file_storage gadget: get configuration descriptor ept0 in queue len 0x20, buffer 0xc128f800 ep0_complete g_file_storage gadget: ep0-in, length 32: 00000000: 09 02 20 00 01 01 04 c0 01 09 04 00 00 02 08 06 00000010: 50 05 07 05 81 02 40 00 00 07 05 01 02 40 00 00 g_file_storage gadget: ep0-setup, length 8: 00000000: 00 09 01 00 00 00 00 00 g_file_storage gadget: set configuration handle_exception begin handle_exception wait until handle_exception old_state 4 g_file_storage gadget: set interface 0 g_file_storage gadget: full-speed config #1 ept0 in queue len 0x0, buffer 0xc128f800 g_file_storage gadget: in handle_exception loop [start_transfer] 53425355 a ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 b g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 0b 00 00 00 00 10 00 00 80 00 0a 28 00000010: 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: READ(10); Dc=10, Di=4096; Hc=10, Hi=4096 attention condition g_file_storage gadget: bulk-in, length 0: [start_transfer] 43425355 b ept1 in queue len 0x0, buffer 0xc1340000 bulk_in_complete --> 0, 0/0 g_file_storage gadget: bulk-in set halt kagen2_set_halt 1 1 g_file_storage gadget: before calling send_status g_file_storage gadget: sending command-failure status g_file_storage gadget: sense data: SK x06, ASC x29, ASCQ x00; info x0 g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 0b 00 00 00 00 10 00 00 01 [start_transfer] 53425355 b ept1 in queue len 0xd, buffer 0xc12a0000 0: 0x53425355 4: 0xb 8: 0x1000 bulk_in_complete --> 0, 13/13 [start_transfer] 43425355 b ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 c g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 0c 00 00 00 12 00 00 00 80 00 06 03 00000010: 00 00 00 12 00 00 00 00 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: REQUEST SENSE; Dc=6, Di=18; Hc=6, Hi=18 g_file_storage gadget: bulk-in, length 18: 00000000: 70 00 06 00 00 00 00 0a 00 00 00 00 29 00 00 00 00000010: 00 00 [start_transfer] 60070 a000000 ept1 in queue len 0x12, buffer 0xc1340000 0: 0x60070 4: 0xa000000 8: 0x0 c: 0x29 bulk_in_complete --> 0, 18/18 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 0c 00 00 00 00 00 00 00 00 [start_transfer] 53425355 c ept1 in queue len 0xd, buffer 0xc12a0000 0: 0x53425355 4: 0xc 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] 60070 a000000 ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue after kagen2_ep_queue kagen2_ep_queue 31 64 31 [kagen2_ep_queue] 43425355 d g_file_storage gadget: bulk-out, length 31: 00000000: 55 53 42 43 0d 00 00 00 00 10 00 00 80 00 0a 28 00000010: 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 g_file_storage gadget: SCSI command: READ(10); Dc=10, Di=4096; Hc=10, Hi=4096 g_file_storage gadget-lun0: file read 4096 @ 0 -> 4096 [start_transfer] 4d9058eb 534f4453 ept1 in queue len 0x1000, buffer 0xc1340000 len_num 4096, iter_num 0 0: 0x4d9058eb 4: 0x534f4453 8: 0x302e35 c: 0x5500802 len_num 3584, iter_num 1 0: 0x41615252 4: 0x0 8: 0x0 c: 0x0 len_num 3072, iter_num 2 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 2560, iter_num 3 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 2048, iter_num 4 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 1536, iter_num 5 0: 0x0 4: 0x0 8: 0x0 c: 0x0 len_num 1024, iter_num 6 0: 0x4d9058eb 4: 0x534f4453 8: 0x302e35 c: 0x5500802 len_num 512, iter_num 7 0: 0x41615252 4: 0x0 8: 0x0 c: 0x0 bulk_in_complete --> 0, 4096/4096 g_file_storage gadget: before calling send_status g_file_storage gadget: bulk-in, length 13: 00000000: 55 53 42 53 0d 00 00 00 00 00 00 00 00 [start_transfer] 53425355 d ept1 in queue len 0xd, buffer 0xc12a0000 0: 0x53425355 4: 0xd 8: 0x0 bulk_in_complete --> 0, 13/13 [start_transfer] 4d9058eb 534f4453 ept1 out queue len 0x40, buffer 0xc1340000 before kagen2_ep_queue #