From owner-freebsd-usb@FreeBSD.ORG Sat Oct 9 09:06:25 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 D438D106566C; Sat, 9 Oct 2010 09:06:25 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 37D5D8FC13; Sat, 9 Oct 2010 09:06:24 +0000 (UTC) Received: by ewy27 with SMTP id 27so948097ewy.13 for ; Sat, 09 Oct 2010 02:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=iYYz3jz2A0KuqYqRsUfkQe4rVdXpG457AB37ZAg5YQY=; b=FDeRJyOZgyQFHUEtYz6Q4PI08UKl6SnsZTr/3OzV8qEvfAoAWoHepSWYRs3irLZxzi n+CwNBGUVXuZE4KUieSB9VzH+/UQiWzdBWU+oRCQCNjRUAr5lXu0m9KKkjPz9pufU7G6 2z4oeJ9oid6C6pAmhMd778jO/ZoeXUhEMuHH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=ZKjqYJRCfTdb7cOK+l9OOf7WnmSO3flhQlQTi2iVMedQMM40Ri0fQICBnwFQ+LFm8A sWjVTPThY+kGbZ0KqMWfLCkkL9S0rdjF9Szoc8J3vRyx4A6R7PtGuWrkMTO2bNo8JntO t4+gnn1QSXAAj2K2LPy7r7516r57dLJU6GWvE= Received: by 10.213.27.76 with SMTP id h12mr550363ebc.60.1286615182869; Sat, 09 Oct 2010 02:06:22 -0700 (PDT) Received: from hulk.l.ttyv0.net (80-219-18-72.dclient.hispeed.ch [80.219.18.72]) by mx.google.com with ESMTPS id q54sm3092230eeh.6.2010.10.09.02.06.20 (version=SSLv3 cipher=RC4-MD5); Sat, 09 Oct 2010 02:06:21 -0700 (PDT) Message-ID: <4CB0308B.7070908@gmail.com> Date: Sat, 09 Oct 2010 11:06:19 +0200 From: Anselm Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.12) Gecko/20101006 Thunderbird/3.0.8 MIME-Version: 1.0 References: <4CA3B8F5.80904@gmail.com> <201009302138.51616.hselasky@c2i.net> <4CA72917.8060209@gmail.com> <201010021639.11568.hselasky@c2i.net> <4CAE29B8.8010304@gmail.com> <44bp753ejp.fsf@be-well.ilk.org> In-Reply-To: <44bp753ejp.fsf@be-well.ilk.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Sat, 09 Oct 2010 09:06:25 -0000 On 10/07/10 22:59, Lowell Gilbert wrote: > 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. -> pciconf -lv hostb0@pci0:0:1:0: class=0x060000 card=0x20801022 chip=0x20801022 rev=0x33 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Conrad Kostecki' class = bridge subclass = HOST-PCI none0@pci0:0:1:2: class=0x101000 card=0x20821022 chip=0x20821022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Geode GX3 AES Crypto Driver (GX3)' class = encrypt/decrypt vr0@pci0:0:9:0: class=0x020000 card=0x01061106 chip=0x30531106 rev=0x96 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'Rhine III Management Adapter (VT6105M)' class = network subclass = ethernet vr1@pci0:0:11:0: class=0x020000 card=0x01061106 chip=0x30531106 rev=0x96 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'Rhine III Management Adapter (VT6105M)' class = network subclass = ethernet ath0@pci0:0:12:0: class=0x020000 card=0x1600185f chip=0x001b168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5006 family 802.11abg Wireless NIC' class = network subclass = ethernet isab0@pci0:0:15:0: class=0x060100 card=0x20901022 chip=0x20901022 rev=0x03 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 [Geode companion] ISA' class = bridge subclass = PCI-ISA atapci0@pci0:0:15:2: class=0x010180 card=0x209a1022 chip=0x209a1022 rev=0x01 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 IDE Controller (CS5536)' class = mass storage subclass = ATA ohci0@pci0:0:15:4: class=0x0c0310 card=0x20941022 chip=0x20941022 rev=0x02 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 OHCI USB Host Controller (CS5536)' class = serial bus subclass = USB ehci0@pci0:0:15:5: class=0x0c0320 card=0x20951022 chip=0x20951022 rev=0x02 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 EHCI USB Host Controller (CS5536)' class = serial bus subclass = USB So I guess it is the last one, the ehci device.