linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Lord <lkml@rtr.ca>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: usb-storage@lists.one-eyed-alien.net,
	mdharm-usb@one-eyed-alien.net,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-scsi@vger.kernel.org,
	linux-usb-devel@lists.sourceforge.net
Subject: Re: usb device problem
Date: Wed, 07 Jun 2006 09:14:55 -0400	[thread overview]
Message-ID: <4486D14F.50607@rtr.ca> (raw)
In-Reply-To: <44860586.5080308@gmail.com>

Jiri Slaby wrote:
> Jiri Slaby napsal(a):
>> Mark Lord napsal(a):
>>> Mmm.. okay, a quick glance at the USB storage code revealed one instance:
>>>
>>>        /* Did we transfer less than the minimum amount required? */
>>>        if (srb->result == SAM_STAT_GOOD &&
>>>                        srb->request_bufflen - srb->resid < srb->underflow)
>>>                srb->result = (DID_ERROR << 16) | (SUGGEST_RETRY << 24);
>>>
>>>        return;
>>>
>>> So I suppose this *could* be the driver thinking it had a bad sector,
>>> but it really looks like it's guessing.  The code also appears to be
>>> instrumented for some kind of USB tracing.. If you can figure out how
>>> to turn that on, then the trace will probably tell us what is really
>>> going on there.
>>> Look for a file called "usbmon.txt" in the Documentation/usb/ subdir
>>> of your kernel source tree.  It describes how to do the tracing.
>> Did you want me to do something like this:
>> http://www.fi.muni.cz/~xslaby/sklad/usbmon/?M=A
>>
>> usb2 means usb bus 2.
>>
>> without "a"s commands was:
>>
>> [connect the device]
>> mount /dev/sdb usb/ [filesystem is vfat]
>> dd if=/dev/zero of=usb/zero1 bs=1k count=3
>> [wait some time to let system syncing automagically]
>> umount usb/
>> [disconnect the device]
>>
>>
>>
>> with "a" there is only difference in dd command:
>> ...
>> dd if=/dev/zero of=usb/zero2 bs=1k count=5
>> ...
>>
>> The first serie is without the error in the latter one appeared (some time after
>> `dd', when system syncs):
>> sd 6:0:0:0: SCSI error: return code = 0x10070000
>> end_request: I/O error, dev sdb, sector 8223
>> [same as before]
>>
>>
>>
>> I have i386 arch, so 4096 is PAGE_SIZE, when it syncs only one dirty page, it
>> seems to be OK, otherwise it's not, if this helps in any way.
>>
> 
> Just a notice, I've just returned from the big w*ows system and it's working
> there ... huh ... better to say, it doesn't complain ... hum ... it means almost
> nothing ... But seems to work.

I think it's time for you to try the USB Storage maintainer(s).

I've CC'd their mailing list on this note, but you should probably
repost the earlier descriptions to their lists.

Cheers




_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

      reply	other threads:[~2006-06-07 13:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-06 15:09 usb device problem Jiri Slaby
2006-06-06 15:43 ` Mark Lord
2006-06-06 16:08   ` Jiri Slaby
2006-06-06 18:07     ` Mark Lord
2006-06-06 18:13       ` Mark Lord
2006-06-06 21:37         ` Jiri Slaby
2006-06-06 22:46           ` Jiri Slaby
2006-06-07 13:14             ` Mark Lord [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4486D14F.50607@rtr.ca \
    --to=lkml@rtr.ca \
    --cc=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=mdharm-usb@one-eyed-alien.net \
    --cc=usb-storage@lists.one-eyed-alien.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).