From owner-freebsd-usb@FreeBSD.ORG Sun Feb 1 17:09:08 2009 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 D88531065679; Sun, 1 Feb 2009 17:09:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4628FC14; Sun, 1 Feb 2009 17:09:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n11H78hl092705; Sun, 1 Feb 2009 10:07:08 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 01 Feb 2009 10:07:36 -0700 (MST) Message-Id: <20090201.100736.-403077701.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200902011123.47690.hselasky@c2i.net> References: <20090131231957.GB31825@citylink.fud.org.nz> <200902011123.47690.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org, thompsa@FreeBSD.org Subject: Re: USB2 patches 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: Sun, 01 Feb 2009 17:09:09 -0000 In message: <200902011123.47690.hselasky@c2i.net> Hans Petter Selasky writes: : Hi Andrew, : : First of all thanks for helping out. I will spend some time now to go through : your changes. : : One thing about the taskqueue. How does it work? I mean, if multiple events : gets queued on the same handler, how will the events get executed? In : parallell, in serial. I never fully understood that. Serially. If they are the same task that's queued multiple times, you get a count of how many times it was queued to do something useful with. Warner : --HPS : : On Sunday 01 February 2009, Andrew Thompson wrote: : > Hi, : > : > : > I have several patches in my svn user branch that I would like to see : > committed to HEAD. Some of these change the usb2 core code so I am : > interested in feedback or shootdowns. I am right behind the change to : > USB2 and this is an effort to help. : > : > The patch can be found here, : > http://people.freebsd.org/~thompsa/usb_head1.diff : > 73 files changed, 9229 insertions(+), 13261 deletions(-) : > : > but its rather large so it may be easier to look at the various changes : > via the svn web interface. : > : > http://svn.freebsd.org/viewvc/base/user/thompsa/usb/ : > : > : > r187750 : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187750 : > : > Change over to using taskqueue(9) instead of hand rolled threads and : > the config_td system. This removes the config_td code and makes the : > API much simpler to use. : > : > r187751, r187752, r187753, r187754, r187755, r187756 : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187751 : > : > Change over to usb2_proc w/ taskqueues for the usb2/ethernet, : > usb2/serial and usb2/wlan code. : > : > r187965 : > http://svn.freebsd.org/viewvc/base?view=revision&revision=187965 : > : > Move most of the ifnet logic into the usb2_ethernet module, this : > includes, - make all usb ethernet interfaces named ue%d : > - handle all threading in usb2_ethernet : > - provide default ioctl handler : > - handle mbuf rx : > - provide locked callbacks for init,start,stop,etc : > : > The drivers are not much more than data pushers now. : > : > : > regards, : > Andrew : : : _______________________________________________ : freebsd-usb@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-usb : To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" : :