From owner-freebsd-usb@FreeBSD.ORG Thu Oct 7 21:25:49 2010 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 6FD0E1065670 for ; Thu, 7 Oct 2010 21:25:49 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.49]) by mx1.freebsd.org (Postfix) with ESMTP id 479B98FC13 for ; Thu, 7 Oct 2010 21:25:49 +0000 (UTC) Received: (qmail 8568 invoked from network); 7 Oct 2010 20:59:07 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Oct 2010 20:59:07 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id D6A1150837; Thu, 7 Oct 2010 16:59:06 -0400 (EDT) From: Lowell Gilbert To: Anselm Strauss References: <4CA3B8F5.80904@gmail.com> <201009302138.51616.hselasky@c2i.net> <4CA72917.8060209@gmail.com> <201010021639.11568.hselasky@c2i.net> <4CAE29B8.8010304@gmail.com> Date: Thu, 07 Oct 2010 16:59:06 -0400 In-Reply-To: <4CAE29B8.8010304@gmail.com> (Anselm Strauss's message of "Thu, 07 Oct 2010 22:12:40 +0200") Message-ID: <44bp753ejp.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB disk on CS5536 unstable 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: Thu, 07 Oct 2010 21:25:49 -0000 Anselm Strauss writes: > On 10/02/10 16:39, Hans Petter Selasky wrote: >> On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote: >>> On 09/30/10 21:38, Hans Petter Selasky wrote: >>>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote: >>>>> Maybe sending it to just the USB list was too specific ... >>>>> >>>>> On 09/30/10 00:08, Anselm Strauss wrote: >>>>>> Hi >>>>>> >>>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion >>>>>> chip with integrated USB on it. When I connect a USB disk I have >>>>>> observed various problems. For example when I run fsck_ufs on a 250 GB >>>>>> partition the process gets stuck in biord state and fsck reports >>>>>> unreadable sectors. When I do a dd over the whole disk and direct it >>>>>> to /dev/null it suddenly returns with no error, but having read only a >>>>>> small fraction of the disk. I tried it with two different disks and >>>>>> two different ALIX boards. I'm pretty sure the disks are okay since I >>>>>> tried them on other hardware. >>>>>> >>>>>> As far as I know there was some trouble with the chip regarding >>>>>> timeouts. Under load after some time the USB just stops responding. I >>>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track >>>>>> this down? >>>>>> >>>>>> Anselm >>>> >>>> If you compile the kernel with USB_DEBUG, then there are some sysctls >>>> under hw.usb.ehci which you can tweak. Needs to be set before boot. >>>> >>>> --HPS >>> >>> Did not know that there were configurable bug workarounds in sysctl. >>> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems >>> seem gone. >>> >>> Without this setting I got the following kernel message when dd did abort: >>> >>> ehci_timeout: xfer=0xc29cd3c8 >>> >>> >>> Thanks, >>> Anselm >> >> Maybe you can report the PCI vendor ID and product so that we can add this >> quirk. >> >> --HPS > > Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX > 2d2 from http://pcengines.ch/alix. pciconf(8) will tell you. Try sending "pciconf -l" output.