From owner-freebsd-usb@FreeBSD.ORG Tue Aug 28 21:39:24 2007 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 9A36C16A420 for ; Tue, 28 Aug 2007 21:39:24 +0000 (UTC) (envelope-from vss@73rus.com) Received: from tail.lionet.info (tail.lionet.info [216.218.215.226]) by mx1.freebsd.org (Postfix) with ESMTP id 7DB9213C459 for ; Tue, 28 Aug 2007 21:39:24 +0000 (UTC) (envelope-from vss@73rus.com) Received: from [10.72.109.162] (nat-dip4.corp.yahoo.com [207.126.230.225]) (authenticated bits=0) by tail.lionet.info (8.13.8/8.13.6) with ESMTP id l7SLdKHl048242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 28 Aug 2007 14:39:21 -0700 (PDT) (envelope-from vss@73rus.com) Message-ID: <46D49603.5070301@73rus.com> Date: Tue, 28 Aug 2007 14:39:15 -0700 From: Vlad Skvortsov User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 To: "M. Warner Losh" References: <46D36F3B.70400@73rus.com> <46D3B32A.7080603@yandex.ru> <46D47646.7080509@73rus.com> <20070828.150235.1723238677.imp@bsdimp.com> In-Reply-To: <20070828.150235.1723238677.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (tail.lionet.info [216.218.215.226]); Tue, 28 Aug 2007 14:39:21 -0700 (PDT) Cc: freebsd-usb@freebsd.org Subject: Re: low USB tranfer rate with external IDE 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, 28 Aug 2007 21:39:24 -0000 M. Warner Losh wrote: > In message: <46D47646.7080509@73rus.com> > Vlad Skvortsov writes: > : Andrey V. Elsukov wrote: > : > Vlad Skvortsov wrote: > : > > : >> Any clues? Where should I look at? I'm concerned with 'USB revision > : >> 1.0' in the output -- could that be the problem? > : > > : > Do you have "device ehci" in your kernel config? > : > > : > : No, I don't. Should I? The man page says: > : > : "The driver is not finished and is quite buggy." > > The man page takes a too pessimistic view of ehci. It works for most > people. > > Warner > Ok, I have compiled a kernel with ehci in. Here is a snippet of dmesg output (right after rebooting the box): da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) umass0: BBB reset failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: Invalid CSW: sig 0x4628f8ff should be 0x53425355 (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 Note that it displays high transfer rate this time. I've ran 'diskinfo -t' to check the actual rate; the seek tests have passed but transfers hung. 'dd' froze either: 13:31 [vss@bear] ~ > dd if=/dev/da0 of=/dev/null bs=1m count=10 ^C Nothing relevant in /var/log/messages. How can I debug it further? -- Vlad Skvortsov, vss@73rus.com, http://vss.73rus.com