From: Jan Holst Jensen <jan@jan-holst.dk>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: USB list <linux-usb@vger.kernel.org>,
linux-acpi@vger.kernel.org,
Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: EHCI_HCD resets cause USB disks to fail - caused by CPU C-states.
Date: Sat, 19 Sep 2009 14:45:17 +0200 [thread overview]
Message-ID: <4AB4D25D.30906@jan-holst.dk> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0909181443300.3123-100000@iolanthe.rowland.org>
Sorry - posted first as text + HTML. Re-posting as plain text.
Alan Stern wrote:
> [Adding CC's, since this is a CPU power management issue just as much
> as a USB issue.]
>
> On Fri, 18 Sep 2009, Jan Holst Jensen wrote:
>
>
>> Hi.
>>
>> I recently had severe problems with a new PC. When attaching an external
>> USB disk I would see USB resets once in a while in /var/log/messages and
>> after another while the disk would disconnect and data would be lost.
>> Like this
>>
>> Sep 13 13:30:56 rumleskaft kernel: [164642.760290] usb 1-5: reset high
>> speed USB device using ehci_hcd and address 3
>> [repeated a number of times]
>> Sep 13 13:31:17 rumleskaft kernel: [164663.430421] sd 2:0:0:0: Device
>> offlined - not ready after error recovery
>> Sep 13 13:31:17 rumleskaft kernel: [164663.430459] sd 2:0:0:0: [sdb]
>> Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
>> Sep 13 13:31:17 rumleskaft kernel: [164663.436193] usb 1-5: USB
>> disconnect, address 3
>> Sep 13 13:31:17 rumleskaft kernel: [164663.436446] sd 2:0:0:0: [sdb]
>> Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK
>> Sep 13 13:31:17 rumleskaft kernel: [164663.437711] lost page write due
>> to I/O error on sdb2
>> Sep 13 13:31:17 rumleskaft kernel: [164663.454184] lost page write due
>> to I/O error on sdb2
>>
>> On my machine I found that disabling CPU C-states and forcing "GV3 only"
>> solved the problem completely. So in some cases it would seem that CPU
>> power management is causing timing issues (?). Can this be fixed in the
>> USB driver layer or does it take cooperation from the kernel's CPU power
>> management - or perhaps a combination of both ?
>>
>> You can read more details about my issue at
>>
>> http://www.fit-pc2.com/forum/viewtopic.php?f=26&t=851
>>
>> Cheers
>> -- Jan Holst Jensen, Denmark
>>
>
> For what it's worth, I haven't heard of anything like this before and I
> have no idea what the answers are. My guess is that a hardware bug is
> responsible for the misbehavior while in higher C states.
>
> Alan Stern
>
Could be. Hardware info for my system can be found at
http://www.jan-holst.dk/linux-usb/sysconfig.txt. It is the output of
/proc/version, /etc/issue and lshw.
-- Jan
next prev parent reply other threads:[~2009-09-19 12:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4AB3C97C.8090209@jan-holst.dk>
[not found] ` <4AB3C97C.8090209-U6CCXNQo4XNlY7y4Fx5NiA@public.gmane.org>
2009-09-18 18:46 ` EHCI_HCD resets cause USB disks to fail - caused by CPU C-states Alan Stern
2009-09-19 9:51 ` Jan Holst Jensen
2009-09-19 12:45 ` Jan Holst Jensen
2009-09-19 12:45 ` Jan Holst Jensen [this message]
2009-09-18 18:46 ` Alan Stern
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=4AB4D25D.30906@jan-holst.dk \
--to=jan@jan-holst.dk \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.