Hi, Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> writes: [...] >>> Any ideas on how to debug this would be apreciated. >> >> You can start by enabling verbose debugging in f_mass_storage.c. >> Uncomment the two lines that say: >> >> /* #define VERBOSE_DEBUG */ >> /* #define DUMP_MSGS */ >> >> You'll probably also have to enable dynamic debugging for the >> g_mass_storage module. > > right, I'll do that tomorrow. I'll probably need some rather larger > kernel logbuf too. Hopefully some 8MiB is enough. Here are the last few transfers. It's as if we don't get as far as check_command() in this particular case: > [ 78.234519] g_mass_storage gadget: bulk-out, length 31: > [ 78.234521] 00000000: 55 53 42 43 2e 09 00 00 00 00 02 00 80 00 0a 28 > [ 78.234522] 00000010: 00 00 08 e4 00 00 01 00 00 00 00 00 00 00 00 > [ 78.234523] g_mass_storage gadget: bulk_out_complete --> 0, 31/31 > [ 78.234652] SCSI CDB: 28 00 00 08 e4 00 00 01 00 00 > [ 78.234654] g_mass_storage gadget: SCSI command: READ(10); Dc=10, Di=131072; Hc=10, Hi=131072 > [ 78.234661] lun0: file read 16384 @ 298319872 -> 16384 > [ 78.234682] lun0: file read 16384 @ 298336256 -> 16384 > [ 78.234695] lun0: file read 16384 @ 298352640 -> 16384 > [ 78.234707] lun0: file read 16384 @ 298369024 -> 16384 > [ 78.234721] lun0: file read 16384 @ 298385408 -> 16384 > [ 78.234734] lun0: file read 16384 @ 298401792 -> 16384 > [ 78.234747] lun0: file read 16384 @ 298418176 -> 16384 > [ 78.234763] lun0: file read 16384 @ 298434560 -> 16384 > [ 78.234773] g_mass_storage gadget: bulk-in, length 13: > [ 78.234774] 00000000: 55 53 42 53 2e 09 00 00 00 00 00 00 00 > [ 78.234795] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.234802] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.234877] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.234883] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.234968] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.234974] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235055] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235061] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235166] g_mass_storage gadget: bulk_in_complete --> 0, 13/13 128k > [ 78.235172] g_mass_storage gadget: bulk-out, length 31: > [ 78.235173] 00000000: 55 53 42 43 2f 09 00 00 00 00 02 00 80 00 0a 28 > [ 78.235175] 00000010: 00 00 08 e5 00 00 01 00 00 00 00 00 00 00 00 > [ 78.235176] g_mass_storage gadget: bulk_out_complete --> 0, 31/31 > [ 78.235181] SCSI CDB: 28 00 00 08 e5 00 00 01 00 00 > [ 78.235183] g_mass_storage gadget: SCSI command: READ(10); Dc=10, Di=131072; Hc=10, Hi=131072 > [ 78.235188] lun0: file read 16384 @ 298450944 -> 16384 > [ 78.235210] lun0: file read 16384 @ 298467328 -> 16384 > [ 78.235225] lun0: file read 16384 @ 298483712 -> 16384 > [ 78.235238] lun0: file read 16384 @ 298500096 -> 16384 > [ 78.235251] lun0: file read 16384 @ 298516480 -> 16384 > [ 78.235264] lun0: file read 16384 @ 298532864 -> 16384 > [ 78.235277] lun0: file read 16384 @ 298549248 -> 16384 > [ 78.235289] lun0: file read 16384 @ 298565632 -> 16384 > [ 78.235300] g_mass_storage gadget: bulk-in, length 13: > [ 78.235301] 00000000: 55 53 42 53 2f 09 00 00 00 00 00 00 00 > [ 78.235321] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235327] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235406] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235413] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235496] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235504] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235590] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235598] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384 > [ 78.235671] g_mass_storage gadget: bulk_in_complete --> 0, 13/13 128k > [ 78.235677] g_mass_storage gadget: bulk-out, length 31: > [ 78.235678] 00000000: 55 53 42 43 30 09 00 00 00 00 02 00 80 00 0a 28 > [ 78.235679] 00000010: 00 00 08 e6 00 00 01 00 00 00 00 00 00 00 00 > [ 78.235680] g_mass_storage gadget: bulk_out_complete --> 0, 31/31 another READ(10), but nothing else. I'll continue debugging this one. -- balbi
Attachment:
signature.asc
Description: PGP signature