From owner-freebsd-stable@FreeBSD.ORG Tue Aug 10 22:44:56 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F00D016A4CE; Tue, 10 Aug 2004 22:44:55 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (80-219-164-131.dclient.hispeed.ch [80.219.164.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9A7643D48; Tue, 10 Aug 2004 22:44:53 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:50db:a483:0:20e:2eff:fe06:2376]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id i7AMigh14189 verified NO); Wed, 11 Aug 2004 00:44:47 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id i7AMid614188; Wed, 11 Aug 2004 00:44:40 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Wed, 11 Aug 2004 00:44:40 +0200 (CEST) Message-Id: <200408102244.i7AMid614188@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma References: <200407200045.aa99979@salmon.maths.tcd.ie> <200407271843.aa10377@salmon.maths.tcd.ie> To: freebsd-current@freebsd.org cc: Ian Dowse cc: freebsd-stable@freebsd.org cc: Julian Elischer Subject: Re: Unloading USB driver while device is attached. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2004 22:44:56 -0000 [keep replies to the list and I'll catch up later, thanks] [posted to -stable as well, as that's what I'm running so it could be of interest there, for the daring and headstrong] Two weeks ago (shows how far behind I am), Ian Dowse wrote to freebsd-current: > In message <200407200045.aa99979@salmon.maths.tcd.ie>, Ian Dowse writes: > >>: http://people.freebsd.org/~iedowse/usb.diff > FYI, I've updated this patch to the latest -CURRENT, and finished > an initial attempt at support for EHCI interrupt pipes. The interrupt > pipe support is likely to be fairly broken, but it seems to be > enough to allow attachment of USB2 hubs and at least some USB2 > devices through USB2 hubs; I have only tested it with a USB2 umass > device connected through a USB2 hub. USB1 devices will definitely > not work via USB2 hubs, as none of the split transaction support > is there. This looks like great fun. I've taken this and -current dev/usb source from 10.Aug (last changed 08.Aug) and gotten at least part of this combination to work under my RELENG_4 system. I no longer see the need_toggle_updates that froze my disk, from my previous attempt to merge in -current code, and I've got that disk attached now via a USB2 hub. There is a slight performance degradation going through the hub measured by throughput (5,9MB/sec direct, 5,1MB/sec via hub) on my ten-year-old machine, and now that I'm continuing my world build via USB instead of firewire, the machine seems decidedly sluggish. The `system' CPU slice according to `top' hovers between 30 and 70% most of the time, but I haven't watched it with either firewire or bypassing the hub and going direct. This is all probably to be expected anyway. I haven't even gotten to the point of trying to merge in my various hacks that I needed to apply to earlier code, some of which seem to no longer be needed. I'm using usb.ko, umass.ko, and ums.ko, as well as loaded-but- not-in-use ugen.ko out of the modules built from this directory in -current, on my -stable box. Is there any interest out there in my hacks to be used with -stable, pulling the latest code from -current? If so, I'll try to clean them up to make them presentable and to remain compatible with a -current build as well. (If nothing else, this diff created from my hacks would be up-to-date against 08.aug -current source.) I haven't really pounded on things either. But the advantage I see from this (compared with my earlier code) is functioning EHCI umass support, and USB2 hubs with USB2 devices attached, which has to be good for something. And it hasn't died yet. thanks barry bouwsma