From owner-freebsd-usb@FreeBSD.ORG Tue Dec 27 16:26:15 2011 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 6D2AC1065673 for ; Tue, 27 Dec 2011 16:26:15 +0000 (UTC) (envelope-from momchil@xaxo.eu) Received: from vps2.xaxo.eu (vps2.xaxo.eu [78.47.156.66]) by mx1.freebsd.org (Postfix) with ESMTP id 013D48FC0C for ; Tue, 27 Dec 2011 16:26:14 +0000 (UTC) Received: from t61.xaxo.eu ([10.75.23.6]) by vps2.xaxo.eu (8.14.4/8.14.4) with ESMTP id pBRGQ5Xu045306; Tue, 27 Dec 2011 17:26:06 +0100 (CET) (envelope-from momchil@xaxo.eu) Date: Tue, 27 Dec 2011 17:25:58 +0100 Message-ID: <86d3baq8vd.wl%momchil@xaxo.eu> From: =?UTF-8?B?0JzQvtC80YfQuNC7INCY0LLQsNC90L7Qsg==?= To: Hans Petter Selasky In-Reply-To: <201112271651.46421.hselasky@c2i.net> References: <86ipl3dl5q.wl%momchil@xaxo.eu> <201112271628.49501.hselasky@c2i.net> <867h1iggm7.wl%momchil@xaxo.eu> <201112271651.46421.hselasky@c2i.net> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-usb@freebsd.org, =?UTF-8?B?0JzQvtC80YfQuNC7INCY0LLQsNC90L7Qsg==?= Subject: Re: USB problems with 8.2 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: Tue, 27 Dec 2011 16:26:15 -0000 At Tue, 27 Dec 2011 16:51:46 +0100, Hans Petter Selasky wrote: > > On Tuesday 27 December 2011 16:48:48 Момчил Иванов wrote: > > At Tue, 27 Dec 2011 16:28:49 +0100, > > > > Hans Petter Selasky wrote: > > > On Tuesday 27 December 2011 16:21:35 Момчил Иванов wrote: > > > > 16:13:27.509643 usbus6.2 > > > > DONE-BULK-EP=00000081,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR= > > > > > > Hi, > > > > > > The timeout error means the USB host is not getting the expected data. > > > > > > To figure out who is guilty not transferring or receiving the data you > > > need to have an USB analyzer, like the Beagle 480 (Runs under Linux). > > > > > > Else also see the quirks in: > > > > > > sysctl -a hw.usb.ehci > > > > sysctl: unknown oid 'hw.usb.ehci' > > > > btw I don't seem to have any hw.usb.ehci sysctl... This is all that there > > is under hw.usb: > > > > hw.usb.no_boot_wait: 0 > > hw.usb.debug: 0 > > hw.usb.usb_lang_mask: 255 > > hw.usb.usb_lang_id: 9 > > hw.usb.template: 0 > > hw.usb.power_timeout: 30 > > hw.usb.no_pf: 0 > > hw.usb.no_cs_fail: 0 > > > > Since I don't have this kind of equiptment, I will not be able to do > > anything more. Is there some way I can set that timeout to something like > > 1-2 seconds? > > sysctl hw.usb.ehci > hw.usb.ehci.lostintrbug: 0 > hw.usb.ehci.iaadbug: 0 > hw.usb.ehci.no_hs: 0 > hw.usb.ehci.debug: 0 > > I think you need to build a kernel with "options USB_DEBUG" before the > lostintrbug will be available! I suspect setting this parameter will solve > your problem! I've just rebuilt the kernel with "options USB_DEBUG" and rebooted without setting the cache quirk but with "hw.usb.ehci.lostintrbug=1" and rtorrent just hashed more than 4 GB without any stalls. So that seems to fix the issue. Man EHCI(4) needs to fixed since it does not mention anything about that kernel option, should I file a pr? Thank you for your time.