Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762850AbXILXjh (ORCPT ); Wed, 12 Sep 2007 19:39:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756067AbXILXj3 (ORCPT ); Wed, 12 Sep 2007 19:39:29 -0400 Received: from canuck.infradead.org ([209.217.80.40]:44022 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754619AbXILXj2 (ORCPT ); Wed, 12 Sep 2007 19:39:28 -0400 Date: Wed, 12 Sep 2007 16:42:37 -0700 From: Greg KH To: Mark Lord Cc: Chuck Ebbert , Niels , linux-kernel@vger.kernel.org, linux-scsi , USB development list Subject: Re: Problems with USB disk [solved] Message-ID: <20070912234237.GB455@kroah.com> References: <20070807211847.GA25391@kroah.com> <200708081357.03238.ismail@pardus.org.tr> <46C1C560.80801@redhat.com> <46E863EA.4060806@rtr.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46E863EA.4060806@rtr.ca> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4483 Lines: 117 On Wed, Sep 12, 2007 at 06:10:50PM -0400, Mark Lord wrote: > Chuck Ebbert wrote: >> On 08/13/2007 10:50 AM, Niels wrote: >>> On Sunday 12 August 2007 11:54, Niels wrote: >>> >>>> On Friday 10 August 2007 14:43, Niels wrote: >>>> >>>>> On Wednesday 08 August 2007 12:57, Ismail D??nmez wrote: >>>>> >>>>>> On Wednesday 08 August 2007 13:48:29 you wrote: >>>>>>> On Tuesday 07 August 2007 23:18, Greg KH wrote: >>>>>>>> On Tue, Aug 07, 2007 at 10:26:15PM +0200, Niels wrote: >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I'm having problems with a new 500 GB USB disk. It works, but >>>>>>>>> sometimes I get these in dmesg: >>>>>>>>> >>>>>>>>> >>>>>>>>> usb 1-3: reset high speed USB device using ehci_hcd and address 2 >>>>>>>>> usb 5-1: USB disconnect, address 2 >>>>>>>>> drivers/usb/class/usblp.c: usblp0: removed >>>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current] >>>>>>>>> >>>>>>>>> : ASC=0x4 ASCQ=0x2 >>>>>>>>> >>>>>>>>> end_request: I/O error, dev sda, sector 254148215 >>>>>>>>> sd 0:0:0:0: Device not ready: <6>: Sense Key : 0x2 [current] >>>>>>>>> >>>>>>>>> : ASC=0x4 ASCQ=0x2 >>>>>>>>> >>>>>>>>> end_request: I/O error, dev sda, sector 252434023 >>>>>>>>> EXT3-fs error (device sda1): ext3_find_entry: reading directory >>>>>>>>> #15761836 offset 0 >>>>>>>>> >>>>>>>>> >>>>>>>>> There's also a printer connected. This is on a pci/usb2 card. When >>>>>>>>> the above happens, I get I/O errors. When I mount the drive next, >>>>>>>>> there are errors and often missing files. Quite annoying! >>>>>>>>> >>>>>>>>> Kernel is 2.6.21 >>>>>>>>> >>>>>>>>> What's going on? >>>>>>>> You have a low voltage issue, or a bad cable. The device is >>>>>>>> electronically disconnecting itself. Try using a externally-powered >>>>>>>> hub, or a new cable. >>>>>> I am seeing a similar problem with 2.6.22 and 2.6.23-* kernels with my >>>>>> 60G iPod Video, works fine with 2.6.18 kernel though. >>>>>> >>>>> So far I'm seeing this: >>>>> >>>>> - On 2.6.21 I mount the drive. After a while it spins down, and when I >>>>> then unmount it, an error pops up in dmesg. >>>>> >>>>> - On 2.6.18 I can't provoke the same error. The drive doesn't appear to >>>>> spin down. I don't know if the data corruption from 2.6.21 occurs with >>>>> regular use. >>>>> >>>>> There are a number of other factor I need to eliminate on my system, >>>>> but >>>>> that's it so far. CONFIG_USB_SUSPEND is not set on either kernel. >>>> OK, on a vanilla 2.6.18.8 I also have this problem, with both the >>>> pci/usb2 >>>> card, and the usb1 on the board. I listen to music from the drive, and >>>> after some time (10-20 minutes or so), it freaks out: >>>> >>>> ========= >>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2 >>>> ASC=0x4 ASCQ=0x2 >>>> end_request: I/O error, dev sda, sector 126693711 >>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2 >>>> ASC=0x4 ASCQ=0x2 >>>> end_request: I/O error, dev sda, sector 126693711 >>>> sd 1:0:0:0: Device not ready: <6>: Current: sense key=0x2 >>>> ASC=0x4 ASCQ=0x2 >>>> end_request: I/O error, dev sda, sector 126693711 >>>> ========= >>>> >>> Using a new PSU and a powered hub made no difference. But I found a >>> solution >>> here: >>> >>> http://alienghic.livejournal.com/382903.html >>> >>> Basically, the problem is, as suspected, that the drive spins down / goes >>> to >>> suspend. This can be disabled with "sdparm --clear STANDBY -6 /dev/sda". >>> >>> It seems to me to be an error that the kernel reports this as something >>> like >>> a hardware failure. Or at least very misleading. >>> >> Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't >> handle that. >> Should we be disabling auto-spindown when we connect the device, or be >> able to >> handle this by sending the start command when needed? > > There's more to this. > > My Sandisk Cruzer Micro 1GB USB sticks suffer from this regression. > Plug one in, it works for about 5 seconds, then the light goes off (bad). > Next access requires a 30s timeout + reset. Etc.. > > This is with 2.6.23-rc6. > Works without any problems in 2.6.22. REGRESSION. Disable CONFIG_USB_SUSPEND, that will fix the problem for you, or we can add your device to the quirk list. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/