From owner-freebsd-usb@FreeBSD.ORG Sat Oct 2 12:44:11 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 C3E73106564A; Sat, 2 Oct 2010 12:44:11 +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 2689E8FC14; Sat, 2 Oct 2010 12:44:10 +0000 (UTC) Received: by ewy22 with SMTP id 22so1801976ewy.13 for ; Sat, 02 Oct 2010 05:44:10 -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:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=le/EKRmQwKzEyuAt6QAhcElAnW48qkVjXxfPmIlyt1M=; b=l07Qc1vuqXt6PopAx+VqjL+wlQNKo2iNHwj5x1MPmY7Co1BaYVeHbyv/1Ssd51e0uu Gdx5rN0QxjMgaMGYBM30ZX5IZEdo1gTLDSf3QSHKDWH1MURWCfrMTYTgq/7TTovEWJfY /3knwohDel9hFwMRL7S6IDU2EncopnUyGr3rE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=lDcPB7KGtDKOIOWMWBNqWXFSuyBPz5k1OZeK0qWNLjNwEiocCUfAKeFwBQbUbbEUPP WZM9/nkwVuDc5Y1e9atdVkk4o/aBrgYuFSVEgCD3Kp21oeHWIt1cLUWxerIfAYXM+eG9 nxNdsIOu0MlAPXuNf/Hv39pA/qkop8HMRvgy8= Received: by 10.213.105.134 with SMTP id t6mr4350800ebo.1.1286023449948; Sat, 02 Oct 2010 05:44:09 -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 a48sm3589361eei.0.2010.10.02.05.44.08 (version=SSLv3 cipher=RC4-MD5); Sat, 02 Oct 2010 05:44:09 -0700 (PDT) Message-ID: <4CA72917.8060209@gmail.com> Date: Sat, 02 Oct 2010 14:44:07 +0200 From: Anselm Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100723 Thunderbird/3.0.6 MIME-Version: 1.0 To: Hans Petter Selasky References: <4CA3B8F5.80904@gmail.com> <4CA4E0C3.1050707@gmail.com> <201009302138.51616.hselasky@c2i.net> In-Reply-To: <201009302138.51616.hselasky@c2i.net> 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, 02 Oct 2010 12:44:11 -0000 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