From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 30 03:33:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E04AF16A4B3 for ; Tue, 30 Sep 2003 03:33:47 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E1EE43F3F for ; Tue, 30 Sep 2003 03:33:45 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) h8UAXfFs008388 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 30 Sep 2003 12:33:43 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id h8UAXeWZ091389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Sep 2003 12:33:40 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h8UAXdrY049817; Tue, 30 Sep 2003 12:33:39 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h8UAXchm049812; Tue, 30 Sep 2003 12:33:38 +0200 (CEST) Date: Tue, 30 Sep 2003 12:33:38 +0200 From: Bernd Walter To: Barry Bouwsma Message-ID: <20030930103337.GL18891@cicely12.cicely.de> References: <200309300326.h8U3QXx12997@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309300326.h8U3QXx12997@Mail.NOSPAM.DynDNS.dK> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: FreeBSD Hacking Group Subject: Re: USB2.0 external hub and ehci question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 10:33:48 -0000 On Tue, Sep 30, 2003 at 05:26:33AM +0200, Barry Bouwsma wrote: > [Drop hostname part of IPv6-only address above to obtain IPv4-capable e-mail, > or just drop me from the recipients and I'll catch up from the archives] > > > Hallo Hackers, I suppose I should post this to -current as the code in > question is derived from there, but I'm running it on RELENG_4, so... > > I've ported the USB controller codes (uhci, ohci, and ehci) from -current > to 4.9-PRERELEASE in order to try and add USB2.0 support to 4.x, and I see > something that I also saw with the NetBSD ehci codes back last December; > namely, that I can't attach an external hub, supposedly with USB2.0 > capability, and have it be recognized. > > First, I seem to have no problems building just the uhci and ohci codes > into the usb.ko kernel module, and using them, though I haven't thoroughly > crash-tested them. > > I've mixed all three controller codes, with the result that the hub is > not seen. Nor is the external drive. Which I attribute to my own > incompetence more than anything. So to make things easier, I ditched > all but the ehci code and ignored the check for companion controllers, > to limit testing to just that. > > With an external USB2.0 drive connected, I am able to see and mount it. > When I connect the external hub in its place, I get the error that the > port was disabled, STALLED -- just as I saw under old NetBSD. > > I haven't built -current, or a more recent NetBSD, to see if their > behaviour is any different when faced with this hub. Is it possible > I need some sort of quirks entry for this device, which I can use as > a USB1.x device fine? Or do I not even get that far? cypress hubs stall the controll endpoint without a reason when running high speed - even if it had one the specs say that the control endpoint shouldn't stall at all. I have a workaround for the probing problem, but USB2 hubs won't work anyway, because at ehci is missing support for interrupt endpoints. Maybe there are other show stopppers too. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de