From owner-freebsd-usb@FreeBSD.ORG Mon Dec 10 07:21:22 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 85E34A31 for ; Mon, 10 Dec 2012 07:21:22 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 063248FC08 for ; Mon, 10 Dec 2012 07:21:21 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 354477733; Mon, 10 Dec 2012 08:21:03 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: USB Harddrive g_vfs_done() Errors Date: Mon, 10 Dec 2012 08:22:40 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121209232855.142840@gmx.com> In-Reply-To: <20121209232855.142840@gmx.com> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201212100822.40618.hselasky@c2i.net> Cc: robert_cargil@gmx.com X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2012 07:21:22 -0000 On Monday 10 December 2012 00:28:55 robert_cargil@gmx.com wrote: > I am running 9.1RC1: > > FreeBSD system 9.1-RC1 FreeBSD 9.1-RC1 #0 r240745: Thu Sep 20 08:33:01 PDT > 2012 root@system:/usr/obj/usr/src/sys/GENERIC amd64 > > on a system with this motherboard: > > GIGABYTE GA-Z68X-UD3H-B3 LGA 1155 Intel Z68 HDMI SATA 6Gb/s USB 3.0 ATX > Intel Motherboard > http://www.newegg.com/Product/Product.aspx?Item=N82E16813128498 > > I am randomly gettting g_vfs_done() errors when writing to my 2 gig > Western Digital USB drives. Reading and writing work up until some point > that a copy to the drive fails and I start getting an endless stream the > g_vfs_done() errors. All subsequent writes to the drive immediately fail. > However, reading from the drive works fine for hours after the write error > first occured. The system will not shut down cleanly and forces me to hard > power it off or reset it. Sometimes the drive needs to be repaired by > booting into Windows 7. I've used the 2 gig drives for over a year in > Windows 7 on the exact same hardware with not a single problem ever. Hi, Windows operating systems and Linux will hide these errors from the user interface. They silently reset the drive when such errors occur and go on. Such a reset sequence can be noticed by that the device is not responding for several hundred milliseconds. There is no reason that USB traffic should stop at the USB host side, except for a known lost interrupt bug. See the hw.usb.ehci.lostintrbug sysctl. If this variable is set and you still see errors, then there is most likely a USB firmware error in your device and not FreeBSD that makes the so-called USB endpoints on the device side stop receving data suddenly. You can verify my claims by checking the USB traffic using usbdump -i usbusX -f Y . --HPS