public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Zwell <dzwell@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oliver@neukum.org>,
	Tino Keitel <tino.keitel@gmx.de>,
	David Brownell <david-b@pacbell.net>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.23-rc1: USB hard disk broken
Date: Thu, 09 Aug 2007 18:20:37 -0400	[thread overview]
Message-ID: <46BB9335.4070101@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0708091558260.4244-100000@iolanthe.rowland.org>

[-- Attachment #1: Type: text/plain, Size: 3130 bytes --]

Alan Stern wrote:
> On Thu, 9 Aug 2007, Dan Zwell wrote:
> 
>> Oliver Neukum wrote:
>>> Am Sonntag 05 August 2007 schrieb Tino Keitel:
>>>> On Thu, Jul 26, 2007 at 10:06:40 +0200, Oliver Neukum wrote:
>>>>> Am Mittwoch 25 Juli 2007 schrieb Tino Keitel:
>>>>>> On Wed, Jul 25, 2007 at 10:24:36 +0200, Oliver Neukum wrote:
>>>>>>> Am Mittwoch 25 Juli 2007 schrieb Tino Keitel:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I just tried 2.6.23-rc1 and shortly after the boot my external USB hard
>>>>>>>> disk went mad.
>>>>>> [...]
>>>>>>
>>>>>>> Please recompile with CONFIG_USB_DEBUG set.
>>>>>>>
>>>> I tried again -rc1 without USB_DEBUG, and was able to reproduce the
>>>> bug 2 times. At the second time, the kernel log shows this:
>>>>
>>>> 2007-08-05_10:30:27.75572 kern.err: ehci_hcd 0000:00:1d.7: dev 6 ep1in scatterli
>>>> st error 0/-121
>>>> 2007-08-05_10:30:27.86576 kern.info: usb 1-6: reset high speed USB device using ehci_hcd and address 5
>>>> 2007-08-05_10:30:55.95293 kern.info: usb 1-6: USB disconnect, address 5
>>>> 2007-08-05_10:30:55.95300 kern.err: ehci_hcd 0000:00:1d.7: dev 6 ep1in scatterlist error -108/-108
>>> David, does this error say anything to you?
>>>
>>> 	Regards
>>> 		Oliver
>> Hi,
>>
>> I just completed a git bisect, and commit 
>> 8dfe4b14869fd185ca25ee88b02ada58a3005eaf was the commit that introduced 
>> this problem. This is "usb-storage: implement autosuspend". I don't 
>> think there have been many changes in drivers/usb since I last verified 
>> this problem, so I'm pretty sure this is still happening in the latest 
>> kernel.
>>
> What makes you think the problem you see is the same as the one 
> described by Tino?  Do you get the "scatterlist error 0/-121" line in 
> your log?
> 
> Please provide a dmesg log showing your problem with CONFIG_USB_DEBUG 
> enabled.
> 
> Alan Stern
> 
> 

You're right, it probably isn't the same error, unfortunately. I jumped 
to conclusions when I read Tino's description of the problem, "my 
external USB hard disk went mad", which is a very good description of 
what is happening to me. When any attempt is made to access the USB 
disk, it (logically) disconnects and reconnects. When using hald's 
automounting facilities, this leads to (endlessly repeated) madness.

I have attached my dmesg output (and a sanitized version that should 
contain all the important information, but is easier to read). It looks 
like the drive is auto suspended, but the resume process fails. Then the 
process is repeated.

[  126.512815] usb 1-1: usb auto-resume
[  126.543447] uhci_hcd 0000:00:1f.2: port 1 portsc 00a5,01
[  126.559426] usb 1-1: finish resume
[  126.561435] usb 1-1: gone after usb resume? status -19
[  126.561445] usb 1-1: can't resume, status -19
[  126.561451] hub 1-0:1.0: logical disconnect on port 1
[  126.562486] sd 5:0:0:0: [sdb] Result: hostbyte=DID_ERROR 
driverbyte=DRIVER_OK,SUGGEST_OK

Relevant info:
-obviously, I'm using uhci
-the drive is SATA, connected to USB with a SATA/IDE to USB adapter
-this problem does not occur with a USB flash drive
-reverting the commit that introduced auto-suspend prevents this error.

Thanks,
Dan

[-- Attachment #2: dmesg.bz2 --]
[-- Type: application/x-bzip, Size: 12373 bytes --]

[-- Attachment #3: dmesg_sanitized.bz2 --]
[-- Type: application/x-bzip, Size: 7771 bytes --]

  parent reply	other threads:[~2007-08-09 22:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-25  7:23 2.6.23-rc1: USB hard disk broken Tino Keitel
2007-07-25  8:24 ` Oliver Neukum
2007-07-25 18:13   ` Tino Keitel
2007-07-26  8:06     ` Oliver Neukum
2007-08-05 11:09       ` Tino Keitel
2007-08-05 11:41         ` Tino Keitel
2007-08-05 15:46         ` Oliver Neukum
2007-08-05 19:11           ` David Brownell
2007-08-09 16:58           ` Dan Zwell
2007-08-09 20:00             ` Alan Stern
2007-08-09 20:25               ` Tino Keitel
2007-08-09 22:20               ` Dan Zwell [this message]
2007-08-10 14:18                 ` Alan Stern
2007-08-10 20:30                   ` Dan Zwell
2007-08-10 20:43                     ` Alan Stern
2007-09-12 21:57                     ` 2.6.23-rc1: USB hard disk broken (REGRESSION) Mark Lord
2007-09-12 22:40                       ` 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=46BB9335.4070101@gmail.com \
    --to=dzwell@gmail.com \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oliver@neukum.org \
    --cc=stern@rowland.harvard.edu \
    --cc=tino.keitel@gmx.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