From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Grant Grundler <grundler@parisc-linux.org>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>,
linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: udev hangs USB-storage (HP r707 camera)
Date: Sat, 19 Jan 2008 20:56:31 -0600 [thread overview]
Message-ID: <1200797791.11214.3.camel@localhost.localdomain> (raw)
In-Reply-To: <20080120022829.GG11553@colo.lackof.org>
On Sat, 2008-01-19 at 19:28 -0700, Grant Grundler wrote:
> On Sun, Jan 20, 2008 at 01:53:51AM +0100, Stefan Richter wrote:
> > Grant Grundler wrote:
> > > https://bugs.launchpad.net/ubuntu/+source/hal/+bug/180472
> > ...
> > > I have a usbmon trace for 2.6.23.13 (appended) along with dmesg output.
> > > What I need is someone to interpret this trace, tell me what happened,
> > > then I can work on tracking down "vol_id"'s role in this mess.
> >
> > You can also enable SCSI command logging. Perhaps userspace sends a
> > specific command which offends the device (because The Other OS wouldn't
> > send that command in this order of sequence).
>
> Thanks for reminding me...I had collected strace output of udev and all
> it's children a few days ago (probably with 2.6.22-14-generic (Ubuntu
> kernel). I've appended everything for PID 17972 (which is only 12k, full
> output is 559KB). Key bit is this:
> 17972 _llseek(3, 31129600, [31129600], SEEK_SET) = 0
> 17972 read(3, <unfinished ...>
> 17972 <... read resumed> 0x804dc80, 512) = -1 EIO (Input/output error)
>
> given the device reports "60801 512-byte hardware sectors (31 MB)"
> and "31129600/512 == 60800"...it's obvious vol_id is trying to read
> the last sector on the disk (I assume it's to verify the size).
> ISTR "reading the last sector" caused problems else where.
> I'll try to hunt that down.
If this is the problem, it ought to be reproducible without vol_id by
doing
dd bs=512b if=/dev/<dev> of=/dev/null seek=60800 count=1
There is a READ_CAPACITY bug where incompetent usb vendors misread the
SCSI standard and actually report one sector more than the actual
capapcity (and crash when this is accessed), but let's verify first.
James
next prev parent reply other threads:[~2008-01-20 2:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-19 17:45 udev hangs USB-storage (HP r707 camera) Grant Grundler
2008-01-20 0:53 ` Stefan Richter
2008-01-20 2:28 ` Grant Grundler
2008-01-20 2:56 ` James Bottomley [this message]
[not found] ` <1200797791.11214.3.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-01-20 3:10 ` Grant Grundler
[not found] ` <20080120031008.GI11553-lGaJ6EKWmV+kGg0756fqLw@public.gmane.org>
2008-01-20 3:12 ` Grant Grundler
2008-01-20 4:11 ` James Bottomley
2008-01-20 5:25 ` [PATCH] [2.6.23.13] " Grant Grundler
[not found] ` <20080120052553.GA5452-lGaJ6EKWmV+kGg0756fqLw@public.gmane.org>
2008-01-23 5:27 ` [linux-usb-devel] " Phil Dibowitz
2008-01-23 6:55 ` Grant Grundler
2008-01-23 7:02 ` [linux-usb-devel] " Grant Grundler
2008-01-23 8:50 ` Phil Dibowitz
2008-01-24 5:55 ` [linux-usb-devel] " Phil Dibowitz
[not found] ` <20080120022829.GG11553-lGaJ6EKWmV+kGg0756fqLw@public.gmane.org>
2008-01-20 2:57 ` Grant Grundler
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=1200797791.11214.3.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=grundler@parisc-linux.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stefanr@s5r6.in-berlin.de \
/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