Re: g_mass_storage not queueing requests

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

 



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:

[...]

> another READ(10), but nothing else. I'll continue debugging this one.

Seems like the kthread doesn't execute. I've added a few __func__,
__LINE__ prints to fsg_main_thread(). Here's what we have now:

> [  201.134964] g_mass_storage gadget: bulk-out, length 31:
> [  201.134966] 00000000: 55 53 42 43 e5 9c 00 00 00 00 02 00 80 00 0a 28
> [  201.134967] 00000010: 00 00 09 45 00 00 01 00 00 00 00 00 00 00 00
> [  201.134968] g_mass_storage gadget: bulk_out_complete --> 0, 31/31
> [  201.134980] g_mass_storage gadget: fsg_main_thread 2543
> [  201.134981] g_mass_storage gadget: fsg_main_thread 2546
> [  201.134983] g_mass_storage gadget: fsg_main_thread 2549
> [  201.134984] g_mass_storage gadget: do_scsi_command 1836
> [  201.134985] SCSI CDB: 28 00 00 09 45 00 00 01 00 00
> [  201.134989] g_mass_storage gadget: do_scsi_command 1838
> [  201.134994] g_mass_storage gadget: do_scsi_command 1848
> [  201.134997] g_mass_storage gadget: do_scsi_command 1851
> [  201.135001] g_mass_storage gadget: SCSI command: READ(10);  Dc=10, Di=131072;  Hc=10, Hi=131072
> [  201.135007] lun0: file read 16384 @ 311033856 -> 16384
> [  201.135033] lun0: file read 16384 @ 311050240 -> 16384
> [  201.135050] lun0: file read 16384 @ 311066624 -> 16384
> [  201.135063] lun0: file read 16384 @ 311083008 -> 16384
> [  201.135075] lun0: file read 16384 @ 311099392 -> 16384
> [  201.135087] lun0: file read 16384 @ 311115776 -> 16384
> [  201.135105] lun0: file read 16384 @ 311132160 -> 16384
> [  201.135120] lun0: file read 16384 @ 311148544 -> 16384
> [  201.135130] g_mass_storage gadget: fsg_main_thread 2552
> [  201.135131] g_mass_storage gadget: fsg_main_thread 2555
> [  201.135131] g_mass_storage gadget: fsg_main_thread 2558
> [  201.135132] g_mass_storage gadget: fsg_main_thread 2561
> [  201.135133] g_mass_storage gadget: bulk-in, length 13:
> [  201.135134] 00000000: 55 53 42 53 e5 9c 00 00 00 00 00 00 00
> [  201.135143] g_mass_storage gadget: fsg_main_thread 2564
> [  201.135144] g_mass_storage gadget: fsg_main_thread 2567
> [  201.135145] g_mass_storage gadget: fsg_main_thread 2570
> [  201.135146] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135147] g_mass_storage gadget: fsg_main_thread 2572
> [  201.135148] g_mass_storage gadget: fsg_main_thread 2525
> [  201.135149] g_mass_storage gadget: fsg_main_thread 2532
> [  201.135149] g_mass_storage gadget: fsg_main_thread 2538
> [  201.135153] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135230] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135238] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135322] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135329] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135411] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135419] g_mass_storage gadget: bulk_in_complete --> 0, 16384/16384
> [  201.135490] g_mass_storage gadget: bulk_in_complete --> 0, 13/13
> [  201.135496] g_mass_storage gadget: bulk-out, length 31:
> [  201.135497] 00000000: 55 53 42 43 e6 9c 00 00 00 00 02 00 80 00 0a 28
> [  201.135499] 00000010: 00 00 09 46 00 00 01 00 00 00 00 00 00 00 00
> [  201.135500] g_mass_storage gadget: bulk_out_complete --> 0, 31/31

-- 
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