From owner-freebsd-usb@FreeBSD.ORG Wed Dec 2 19:45:55 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 89EE0106568F for ; Wed, 2 Dec 2009 19:45:55 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp143.mail.ukl.yahoo.com (smtp143.mail.ukl.yahoo.com [77.238.184.74]) by mx1.freebsd.org (Postfix) with SMTP id F39B58FC14 for ; Wed, 2 Dec 2009 19:45:54 +0000 (UTC) Received: (qmail 10660 invoked from network); 2 Dec 2009 19:19:13 -0000 Received: from xdsl-81-173-189-47.netcologne.de (se@81.173.189.47 with plain) by smtp143.mail.ukl.yahoo.com with SMTP; 02 Dec 2009 19:19:13 +0000 GMT X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. X-YMail-OSG: BTQc.1sVM1mQtmIz2jB.geKVyRpJ9bLle5J7nX_dIGq9CsbBXlWXueOyni4g7ZllfNbcRBIGICIelG1c9WVtxUYWJwll4Ijl1NTb.Wf1W13PWq74Aum4KK4Th.L6F4kTQNVQXy_P0oA_FgFFI7swCHcO_Qi_0tZ1aPGuuWJwP.lJMunkocg1_8IABjGFOH7aY0NUIIub14kSxykQObJ_YJfyD0l7bRcOWrM_WAXH3T7lCdW63NeSOav1hLWxz3ud X-Yahoo-Newman-Property: ymail-3 Message-ID: <4B142864.3000103@freebsd.org> Date: Mon, 30 Nov 2009 21:17:40 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091121 Lightning/1.0pre Thunderbird/3.0 MIME-Version: 1.0 To: Hans Petter Selasky References: <200911221047.20362.hselasky@c2i.net> In-Reply-To: <200911221047.20362.hselasky@c2i.net> X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: bugs@freebsd.org, freebsd-stable@freebsd.org, Guojun Jin , 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:45:55 -0000 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 > FreeBSD we just try a software reset via the control endpoint. I guess that it > is a device problem you are seeing. The USB stack in FreeBSD is faster than > the old one, and maybe the faster queueing of mass storage requests trigger > some hidden bugs in your device. > > When the problem happens try: > > sysctl hw.usb.umass.debug=-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=6 makes the drive work at some 4MB/s for any amount of data transfered, while hw.usb.debug=5 (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