From owner-freebsd-usb@FreeBSD.ORG Tue Aug 19 23:12:09 2008 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 2D7381065672; Tue, 19 Aug 2008 23:12:09 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.freebsd.org (Postfix) with ESMTP id D4F4A8FC1B; Tue, 19 Aug 2008 23:12:08 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id ZFU96136; Tue, 19 Aug 2008 16:01:36 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id B5CAD4500F; Tue, 19 Aug 2008 16:01:36 -0700 (PDT) To: Hans Petter Selasky In-Reply-To: Your message of "Tue, 19 Aug 2008 22:44:20 +0200." <200808192244.24034.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1219186896_26888P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 19 Aug 2008 16:01:36 -0700 From: "Kevin Oberman" Message-Id: <20080819230136.B5CAD4500F@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ; ; ; ; ; X-Sender: X-To_Name: Hans Petter Selasky X-To_Domain: c2i.net X-To: Hans Petter Selasky X-To_Email: hselasky@c2i.net X-To_Alias: hselasky Cc: usb@freebsd.org, current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP new usb code coming in. 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, 19 Aug 2008 23:12:09 -0000 --==_Exmh_1219186896_26888P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > From: Hans Petter Selasky > Date: Tue, 19 Aug 2008 22:44:20 +0200 > > On Tuesday 19 August 2008, Kevin Oberman wrote: > > > Date: Tue, 19 Aug 2008 12:44:13 -0700 > > > From: Alfred Perlstein > > > Sender: owner-freebsd-current@freebsd.org > > > > > > After a long period of review and testing I am on the verge of > > > committing Hans Peter's new usb stack to -current. > > > > > > The patchset requires a SMALL _493_ line diff to the main code, > > > mostly bug fixes to arm. And then a large number of new files > > > for the usb system. > > > > > > The new usb system will be committed as separate files with > > > the intention of folding them over the old files before the > > > 9.0 release. > > > > > > The diff to the main files is here: > > > http://mu.org/~bright/usb2/usb2_release_001.diff > > > > > > The whole diff, including new files is here: > > > http://mu.org/~bright/usb2/usb4bsd.diff.gz > > > > > > FAQ: > > > Q. Has this been reviewed? > > > A. Yes, pretty strongly by myself and we've consulted with > > > various others, Warner, Scott and Andrew for review/testing. > > > I wouldn't say that Warner or Scott have given full review > > > but just about all questions have been answered. > > > > > > Q. Can we change the name from "usb2_" to my favorite name? > > > A. No. This is for a short period, stop being so annoying. > > > > > > Q. What about the old usb code? > > > A. What about it? :D > > > > > > Q. What about ttys? > > > A. I don't know, we'll address the mpsafe aspects of ttys shortly, > > > Hans is very responsive to SMP issues. > > > > > > Q. Shouldn't you wait? > > > A. Wait for what? No. > > > > > > Q. I have some whitespace nits, can you do those? > > > A. No. It's a 100k line diff and a 3meg delta, we tried really hard > > > to get all whitespace right, but you're welcome to point things out after > > > the commit. > > > > Cool! I've been waiting for this for a loooooong time. Thanks to you, > > Hans Peter and all of the folks who have helped! > > > > Not on the FAQ: > > > > Q: Other then no longer requiring giant [MPSAFE], what does usb2 give > > us? Does it fix the battery-eating on laptops? Does it allow the > > system to reach C3 and lower sleep states? (These are at least > > closely linked issues.) > > Hi, > > Regarding power save there is no news. But I have been thinking about it, and > a simple patch like turning off the ASYNC and SYNC schedules when no devices > are plugged is not impossible. Only that it hasn't been done yet, because > there is already plenty of USB stuff to do. > > New stuff (all of which I can remember right now): > > - Full support for Split transactions, which means you can use your full > speed USB audio on a high speed USB HUB. > - Full support for HS ISOC transactions, which makes writing drivers for > various HS webcams possible, for example > - Full support for USB on embedded platforms, mostly cache flushing and > buffer invalidating stuff. > - Safer parsing of USB descriptors. > - Autodetect of annoying USB install disks. > - Support for USB device side (and a handful of USB device side chips) > - Support for USB transfers like I/O vectors, means more throughput and less > interrupts. > - New UGEN backend and libusb library, finally solves the "driver unloading" > problem. > - A new USB API. > - Many USB drivers are now running Giant free. > - Linux USB kernel compat layer. > - ... see the FreeBSD quarterly status reports > > --HPS > Very impressive. Yes, turning off polling when there are no connected devices would help with the battery drain in that regard, but I don't see how this would solve the problem of getting to C3 or lower when a USB device is connected. I know that Windows once had this problem early in the XP days and they fixed it in some way. I am not at all expert on USB, so I don't know at what frequency USB polls, but I would hope it's not so high that a system can't even get to C3, but with the current stack, C2 is the best you can get and C2 does not save a lot of power on most systems. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1219186896_26888P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFIq1DQkn3rs5h7N1ERAnnnAKCye7xsnZt3XEsoQIQGwgUlxyXoMgCgrysf NJ2GRfPMmeAd70Vs8ym5M5Q= =+CqL -----END PGP SIGNATURE----- --==_Exmh_1219186896_26888P--