From: Dirk Hohndel <hohndel-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
To: Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>
Cc: Sarah Sharp
<sarah.a.sharp-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Matthew Dharm
<mdharm-usb-JGfshJpz5UybPZpvUQj5UqxOck334EZe@public.gmane.org>,
linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: strange USB storage failure with 2.6.29-rc2
Date: Tue, 27 Jan 2009 20:06:07 -0800 [thread overview]
Message-ID: <20090127200607.369a1693@infradead.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0901271548370.2286-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
Copied to linux-scsi, so a bit context for folks there...
On a 64bit 2.6.29-rc2 system (and a few earlier kernels that I have
tried) I can no longer use USB sticks. When I connect one it gets
correctly identified, but then when I try to access it I get "Medium
not present" error.
Turning on debugging in the USB storage subsystem indicates that we are
sending START_STOP to the device which really confuses it...
On Tue, 27 Jan 2009 15:56:11 -0500 (EST)
Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org> wrote:
> On Tue, 27 Jan 2009, Dirk Hohndel wrote:
>
> > Here you go:
>
> >From the middle of the log (after the partition table has been read):
>
> > [ 32.056855] usb-storage: queuecommand called
> > [ 32.056886] usb-storage: *** thread awakened.
> > [ 32.056888] usb-storage: Command START_STOP (6 bytes)
> > [ 32.056889] usb-storage: 1b 00 00 00 02 00
> > [ 32.056894] usb-storage: Bulk Command S 0x43425355 T 0x24 L 0 F 0 Trg 0 LUN 0 CL 6
> > [ 32.056896] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
> > [ 32.057328] usb-storage: Status code 0; transferred 31/31
> > [ 32.057329] usb-storage: -- transfer complete
> > [ 32.057330] usb-storage: Bulk command transfer result=0
> > [ 32.057332] usb-storage: Attempting to get CSW...
> > [ 32.057333] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
> > [ 32.057430] usb-storage: Status code 0; transferred 13/13
> > [ 32.057432] usb-storage: -- transfer complete
> > [ 32.057433] usb-storage: Bulk status result = 0
> > [ 32.057435] usb-storage: Bulk Status S 0x53425355 T 0x24 R 0 Stat 0x0
> > [ 32.057437] usb-storage: scsi cmd done, result=0x0
> > [ 32.057440] usb-storage: *** thread sleeping.
>
> This command is basically an Eject. Even though the device doesn't
> have removable media, it apparently gets very confused when it receives
> this command.
Doing some googling around that seems to imply that this is not unusual
for USB devices...
> So the real question is: Who is responsible for sending that Eject
> command? It certainly isn't usb-storage or any other part of the USB
> stack. Maybe something in the SCSI disk driver or maybe a user
> program.
That's one valid question... maybe someone on the linux-scsi list can
sched some light onto this? Are there SCSI specific debugging options I
should turn on?
The other one is "why isn't the USB stack filtering that command when
it comes down from SCSI?"
Way back when in 2002 Matt Dharm suggested doing just that and Greg
applied it:
http://osdir.com/ml/usb.devel/2002-08/msg00357.html
http://osdir.com/ml/usb.devel/2002-08/msg00447.html
A few months later this code was removed again as we allegedly don't
need it anymore:
http://www.mail-archive.com/linux-usb-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org/msg09331.html
Maybe we need to bring such code back?
/D
--
Dirk Hohndel
Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2009-01-28 4:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090127122641.1564fc46@infradead.org>
[not found] ` <Pine.LNX.4.44L0.0901271548370.2286-100000@iolanthe.rowland.org>
[not found] ` <Pine.LNX.4.44L0.0901271548370.2286-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2009-01-28 4:06 ` Dirk Hohndel [this message]
[not found] ` <20090127200607.369a1693-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2009-01-28 16:54 ` strange USB storage failure with 2.6.29-rc2 Alan Stern
2009-01-28 17:14 ` Dirk Hohndel
2009-01-28 17:47 ` Alan Stern
2009-01-28 19:59 ` Dirk Hohndel
2009-01-28 20:14 ` Alan Stern
[not found] ` <20090128091406.316a80fc-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2009-01-28 17:59 ` James Bottomley
2009-01-28 20:01 ` Dirk Hohndel
2009-01-28 21:13 ` Pete Zaitcev
2009-01-28 21:23 ` Alan Stern
2009-01-28 21:29 ` Pete Zaitcev
[not found] ` <20090128142915.3b6f1949.zaitcev-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-01-28 21:41 ` Alan Stern
2009-01-28 21:49 ` Oliver Neukum
[not found] ` <Pine.LNX.4.44L0.0901281622210.2231-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2009-01-28 22:39 ` Dirk Hohndel
2009-01-28 21:10 ` Pete Zaitcev
[not found] ` <20090128141035.3a26ea60.zaitcev-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-01-28 21:21 ` Alan Stern
2009-01-28 21:22 ` Dirk Hohndel
[not found] ` <20090128132228.3f1e2f8a-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2009-01-28 21:27 ` Pete Zaitcev
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=20090127200607.369a1693@infradead.org \
--to=hohndel-wegcikhe2lqwvfeawa7xhq@public.gmane.org \
--cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mdharm-usb-JGfshJpz5UybPZpvUQj5UqxOck334EZe@public.gmane.org \
--cc=sarah.a.sharp-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
--cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org \
/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