From owner-freebsd-current@FreeBSD.ORG Tue Apr 15 07:49:33 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B564A37B401 for ; Tue, 15 Apr 2003 07:49:33 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09EAE43FA3 for ; Tue, 15 Apr 2003 07:49:30 -0700 (PDT) (envelope-from ticso@cicely9.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h3FEnLcx079618 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 15 Apr 2003 16:49:26 +0200 (CEST) (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (cicely9.cicely.de [IPv6:3ffe:400:8d0:301:210:5aff:fe30:1c1a]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h3FEnIYi052347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Apr 2003 16:49:19 +0200 (CEST) (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (localhost [127.0.0.1]) by cicely9.cicely.de (8.12.9/8.12.8) with ESMTP id h3FEnHtA003198; Tue, 15 Apr 2003 16:49:18 +0200 (CEST) (envelope-from ticso@cicely9.cicely.de) Received: (from ticso@localhost) by cicely9.cicely.de (8.12.9/8.12.9/Submit) id h3FEnFWk003197; Tue, 15 Apr 2003 16:49:15 +0200 (CEST) (envelope-from ticso) Date: Tue, 15 Apr 2003 16:49:15 +0200 From: Bernd Walter To: Bryan Liesner Message-ID: <20030415144914.GJ529@cicely9.cicely.de> References: <20030415080609.G621@gravy.homeunix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030415080609.G621@gravy.homeunix.net> X-Operating-System: FreeBSD cicely9.cicely.de 5.0-CURRENT alpha User-Agent: Mutt/1.5.3i cc: freebsd-current@freebsd.org Subject: Re: new usb2 stuff X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 14:49:34 -0000 On Tue, Apr 15, 2003 at 08:28:42AM -0400, Bryan Liesner wrote: > > Unless I compile in ohci along with ehci, I get the following error: > gravy kernel: usb0: wrong number of companions (2 != 0) EHCI controllers can't work alone. You need to have either UHCI or OHCI controller compiled in, depending on what combination your controller chip has. > Using both ohci and ehci results in probing the attached devices > twice, then removing the ohci device in favor of the ehci device. > So, in the dmesg, I see my usb hard drive twice, assigning umass0, > then umass1. After umass1 is assigned, umass0 is then detached. > > kernel: umass0: Buslink USB 2.0 Hard Drive, rev 2.00/11.00, addr 2 > kernel: umass1: Buslink USB 2.0 Hard Drive, rev 2.00/11.00, addr 2 > kernel: umass0: at uhub2 port 4 (addr 2) disconnected > kernel: umass0: detached > > Is this the intended behavior? No, but known: [88]cicely8# head ehci.c /* $NetBSD: ehci.c,v 1.46 2003/03/09 19:51:13 augustss Exp $ */ /* $FreeBSD$ */ /* * TODO * hold off explorations by companion controllers until ehci has started. */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. The problem is that we have to probe the companion controllers first, but until the EHCI controller is enabled the 1.1 fallback causes them to be probed by the companion controllers first. The EHCI controller than takes over. The EHCI manpage is on the way. > I've been using a partitioned off usb hard drive as a tape device, > just using the raw devices as tapes. (Much cheaper than a tape drive). > My nightly dump caused a panic, although shorter transfers seem ok. > > I found this in messages: > kernel: umass1: Invalid CSW: sig 0x00010001 should be 0x53425355 Is this with USB 2.0 or USB 1.x? Do you use a 2.0 capable cable? Can you show us usbdevs -v and dmesg output? > Sorry I don't have more info at this time, I've been flooded at work > and haven't had the time to reproduce and create a core dump yet. > > Finally, I see no difference in speed between the 1.0 drivers and the > 2.0 drivers. I did testings with an ASUS SCB-1608-D drive and was able to see Datarates up to 3.5M while readings CDs. I don't know if this was the drive limit, or the limit of my test host. It was also possible to write CDRs faster than with USB1.1. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de