From: Jiri Slaby <jirislaby@gmail.com>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: Mark Lord <lkml@rtr.ca>,
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 00:45:03 +0159 [thread overview]
Message-ID: <44860586.5080308@gmail.com> (raw)
In-Reply-To: <4485F590.8000304@gmail.com>
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.
regards,
--
Jiri Slaby www.fi.muni.cz/~xslaby
\_.-^-._ jirislaby@gmail.com _.-^-._/
B67499670407CE62ACC8 22A032CC55C339D47A7E
next prev parent reply other threads:[~2006-06-06 22:45 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 [this message]
2006-06-07 13:14 ` Mark Lord
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=44860586.5080308@gmail.com \
--to=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=lkml@rtr.ca \
/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