From owner-freebsd-usb@FreeBSD.ORG Wed Dec 2 19:27:30 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3D1A106566B; Wed, 2 Dec 2009 19:27:30 +0000 (UTC) (envelope-from gjin@ubicom.com) Received: from server70.appriver.com (server70.appriver.com [69.20.119.203]) by mx1.freebsd.org (Postfix) with ESMTP id C11118FC22; Wed, 2 Dec 2009 19:27:29 +0000 (UTC) X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Primary: gjin@ubicom.com X-Note: This Email was scanned by AppRiver SecureTide X-Virus-Scan: V- X-Note: TCH-CT/SI:0-74/SG:2 12/2/2009 2:27:10 PM X-GBUdb-Analysis: 0, 216.112.109.98, Ugly c=0.716086 p=-0.925144 Source White X-Signature-Violations: 0-0-0-4256-c X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES X-Note-Sending-IP: 216.112.109.98 X-Note-Reverse-DNS: 216.112.109.98.ptr.us.xo.net X-Note-WHTLIST: gjin@ubicom.com X-Note: User Rule Hits: X-Note: Global Rule Hits: 115 116 117 118 122 123 221 X-Note: Mail Class: VALID X-Note: Headers Injected Received: from [216.112.109.98] (HELO stork.scenix.com) by server70.appriver.com (CommuniGate Pro SMTP 5.3c2) with ESMTP id 108439598; Wed, 02 Dec 2009 14:27:18 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 2 Dec 2009 11:26:54 -0800 Message-ID: In-Reply-To: <4B142864.3000103@freebsd.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 8.0-RC USB/FS problem Thread-Index: Acpzg9klNJvTzW2WRSuEdCNrNAWFAQAAQbOw References: <200911221047.20362.hselasky@c2i.net> <4B142864.3000103@freebsd.org> From: "Guojun Jin" To: "Stefan Esser" , "Hans Petter Selasky" Cc: bugs@freebsd.org, freebsd-stable@freebsd.org, freebsd-usb@freebsd.org Subject: RE: 8.0-RC USB/FS problem 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: Wed, 02 Dec 2009 19:27:30 -0000 I noticed that your machine also has an AMD CPU. Hopefully this may NOT imply something to the hardware. I will find more systems especially Intel CPUs to do further test. -----Original Message----- From: Stefan Esser [mailto:se@freebsd.org]=20 Sent: Monday, November 30, 2009 12:18 PM To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org; bugs@freebsd.org; freebsd-stable@freebsd.org; Guojun Jin Subject: Re: 8.0-RC USB/FS problem On 22.11.2009 10:47 Hans Petter Selasky wrote: > Other operating systems do a port bus reset when the device has a problem. On=20 > FreeBSD we just try a software reset via the control endpoint. I guess that it=20 > is a device problem you are seeing. The USB stack in FreeBSD is faster than=20 > the old one, and maybe the faster queueing of mass storage requests trigger=20 > some hidden bugs in your device. >=20 > When the problem happens try: >=20 > sysctl hw.usb.umass.debug=3D-1 I have observed USB lock-ups with several external drive enclosures that used to work with the old USB stack (and continue to work when connected to a Windows notebook, for example). (BTW: System is AMD X2 with Nvidia chip-set and i386 kernel.) In my case, hw.usb.debug=3D6 makes the drive work at some 4MB/s for any amount of data transfered, while hw.usb.debug=3D5 (and an ylower value) lets the drive pause for about 1 Minute per 100MB transfered. I wanted to test whether short delays inserted in the places with DPRINTFN(6, ...) make a difference, but will not get to it before the weekend. Regards, STefan