From owner-freebsd-usb@FreeBSD.ORG Sat Jun 23 13:56:50 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F492106566B for ; Sat, 23 Jun 2012 13:56:50 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 6080E8FC16 for ; Sat, 23 Jun 2012 13:56:49 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 286577031; Sat, 23 Jun 2012 15:51:40 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 23 Jun 2012 15:51:21 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201206231551.21894.hselasky@c2i.net> Cc: Subject: Re: Seagate FreeAgent GoFlex 1.5TB external HDD problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 13:56:50 -0000 On Saturday 23 June 2012 15:43:15 maxim naumov wrote: > hi everyone > > I am having problems with a recently purchased external HDD: > 0bc2:5031 Seagate RSS LLC, FreeAgent GoFlex 1.5TB USB 3.0. > > the HDD would work fine for a while but then the kernel would lock up > and require a powercycle. after turning off soft updates on that > filesystem the lock up has disappeared, but the system still reports > lots of errors repeatedly like the following: > > Jun 22 17:05:13 xxxx kernel: (da0:umass-sim0:0:0:0): AutoSense failed > Jun 22 17:05:13 xxxx kernel: > g_vfs_done():da0s1d[WRITE(offset=406613852160, length=16384)]error = 5 > Jun 22 17:05:13 xxxx kernel: > g_vfs_done():da0s1d[WRITE(offset=406613868544, length=16384)]error = 5 > Jun 22 17:05:13 xxxx kernel: > g_vfs_done():da0s1d[WRITE(offset=406613884928, length=16384)]error = 5 > Jun 22 17:05:13 xxxx kernel: > g_vfs_done():da0s1d[WRITE(offset=406613901312, length=16384)]error = 5 > Jun 22 17:05:13 xxxx kernel: > g_vfs_done():da0s1d[WRITE(offset=406613917696, length=16384)]error = 5 > Jun 22 17:05:13 xxxx kernel: > g_vfs_done():da0s1d[WRITE(offset=406613934080, length=16384)]error = 5 > Jun 22 17:05:13 xxxx kernel: > g_vfs_done():da0s1d[WRITE(offset=406613950464, length=16384)]error = 5 > > after getting into that state the HDD seems unresponsive. usbconfig > reset/power doesn't help, you have to physically unplug the drive and > plug it back in. > > the same FreeBSD box, same USB socket, same cable, same backup > software and data, but a different USB 3.0 drive (Verbatim 1TB) shows > no errors. > > I tried the UQ_MSC_NO_SYNC_CACHE quirk, no luck. > > I initially thought the drive was failing, but the long smart test > detected no errors. > > it looks like the Seagate is getting its knickers in a twist for some > reason, but after similar tests I found that it works fine in > GNU/Linux 2.6.38, however, the following error is displayed from time > to time during transfers: > > [ 5633.140506] sd 7:0:0:0: [sdb] Sense Key : Recovered Error > [current] [descriptor] > [ 5633.140521] Descriptor sense data with sense descriptors (in hex): > [ 5633.140526] 72 01 04 1d 00 00 00 0e 09 0c 00 00 00 00 00 00 > [ 5633.140548] 00 4f 00 c2 40 50 > [ 5633.140560] sd 7:0:0:0: [sdb] ASC=0x4 ASCQ=0x1d > [ 5700.040026] [Hardware Error]: Machine check events logged > > googling shows that this is a known but benign problem: "SMART > responses for SATA disks on SAS get interpreted as errors". > http://forums.whirlpool.net.au/archive/1881928 > https://bugzilla.kernel.org/show_bug.cgi?id=13594 > > I was wondering if the GNU/Linux error is somehow related to the > problem I see with FreeBSD. perhaps it is also seen as an error but > the umass code doesn't cope well with it. > > more info about my system: 8.2-RELEASE on i386. USB2 EHCI host > controller: Intel Corporation 82801DB/DBM. > > it looks like it is more likely to fail when transferring large files. > I use the external HDD for backups (rdiff-backup), backing up hundreds > of GBs, with many files over 1GB. > > any ideas and requests for more data are welcome. Hi, To figure out what is actually going on, you can try running "usbdump -i X -f Y -s 1024 -vvv". Also, there are some ehci quirks under hw.usb.ehci, not sure if they will help. Depends on the information you get from usbdump. --HPS