From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 00:16:01 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0726837B401; Mon, 7 Jul 2003 00:16:01 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0646543F85; Mon, 7 Jul 2003 00:16:00 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h677ehMa032632; Mon, 7 Jul 2003 03:40:43 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h677GHtK062633; Mon, 7 Jul 2003 00:16:17 -0700 (PDT) (envelope-from jmg) Date: Mon, 7 Jul 2003 00:16:17 -0700 From: John-Mark Gurney To: joe@FreeBSD.org, arch@FreeBSD.org Message-ID: <20030707071617.GD44762@funkthat.com> Mail-Followup-To: joe@FreeBSD.org, arch@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Subject: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 07:16:01 -0000 I would like to move the usb modules into a subdir like the many other "groups" of modules already in the tree. (i2c, digi, geom, netgraph, to name a few) i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. Comments? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 03:24:50 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC93037B404; Mon, 7 Jul 2003 03:24:50 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E89C43F3F; Mon, 7 Jul 2003 03:24:49 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id UAA27976; Mon, 7 Jul 2003 20:24:44 +1000 Date: Mon, 7 Jul 2003 20:24:43 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: John-Mark Gurney In-Reply-To: <20030707071617.GD44762@funkthat.com> Message-ID: <20030707202047.M7292@gamplex.bde.org> References: <20030707071617.GD44762@funkthat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: arch@freebsd.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 10:24:52 -0000 On Mon, 7 Jul 2003, John-Mark Gurney wrote: > I would like to move the usb modules into a subdir like the many > other "groups" of modules already in the tree. (i2c, digi, geom, > netgraph, to name a few) > > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. This would be bug-for-bug compatible with the i2c, digi, geom, netgraph groups of modules to name a few. Don't forget to put the installed modules in subdirs so that they are hard to find too. Bruce From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 06:53:37 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F256137B401; Mon, 7 Jul 2003 06:53:36 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16AC943F3F; Mon, 7 Jul 2003 06:53:36 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h67DrWdP024745; Mon, 7 Jul 2003 07:53:32 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 07 Jul 2003 07:53:31 -0600 (MDT) Message-Id: <20030707.075331.37591870.imp@bsdimp.com> To: gurney_j@efn.org From: "M. Warner Losh" In-Reply-To: <20030707071617.GD44762@funkthat.com> References: <20030707071617.GD44762@funkthat.com> X-Mailer: Mew version 2.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: arch@freebsd.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 13:53:37 -0000 In message: <20030707071617.GD44762@funkthat.com> John-Mark Gurney writes: : I would like to move the usb modules into a subdir like the many : other "groups" of modules already in the tree. (i2c, digi, geom, : netgraph, to name a few) : : i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. : : Comments? I think that's fine. You aren't moving the files from dev/usb are you? The problem is that if people have MODULES_OVERRIDE in their kernel config file, they will need to be changed. Warner From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 12:09:31 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C61D137B401; Mon, 7 Jul 2003 12:09:31 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6019243FBD; Mon, 7 Jul 2003 12:09:30 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h67JYLMa024097; Mon, 7 Jul 2003 15:34:22 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h67J9iBF072819; Mon, 7 Jul 2003 12:09:44 -0700 (PDT) (envelope-from jmg) Date: Mon, 7 Jul 2003 12:09:44 -0700 From: John-Mark Gurney To: Bruce Evans Message-ID: <20030707190944.GE44762@funkthat.com> Mail-Followup-To: Bruce Evans , joe@freebsd.org, arch@freebsd.org References: <20030707071617.GD44762@funkthat.com> <20030707202047.M7292@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707202047.M7292@gamplex.bde.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: arch@freebsd.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 19:09:32 -0000 Bruce Evans wrote this message on Mon, Jul 07, 2003 at 20:24 +1000: > On Mon, 7 Jul 2003, John-Mark Gurney wrote: > > > I would like to move the usb modules into a subdir like the many > > other "groups" of modules already in the tree. (i2c, digi, geom, > > netgraph, to name a few) > > > > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. > > This would be bug-for-bug compatible with the i2c, digi, geom, > netgraph groups of modules to name a few. Don't forget to put > the installed modules in subdirs so that they are hard to find too. There is one thing that I don't like about modules in a subdir is that you can't select them well. But, not having them in a sub dir means you don't know what modules belong to usb w/o using a find . -name Makefile | xargs grep usb (or something else). Even then do you put something like uaudio under sound or usb? :) (currently it's under sound) Do you want me to bug compatible by adding a prefix for it? (like snd_ or geom_, but not i2c.) -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 12:47:51 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FCE337B401; Mon, 7 Jul 2003 12:47:51 -0700 (PDT) Received: from mx0.freebsd-services.com (survey.codeburst.net [195.149.39.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE63D43F3F; Mon, 7 Jul 2003 12:47:49 -0700 (PDT) (envelope-from paul@freebsd-services.com) Received: by mx0.freebsd-services.com (Postfix, from userid 1002) id EE62C1B212; Mon, 7 Jul 2003 20:47:47 +0100 (BST) Date: Mon, 7 Jul 2003 20:47:47 +0100 From: Paul Richards To: John-Mark Gurney Message-ID: <20030707194747.GA21209@survey.codeburst.net> References: <20030707071617.GD44762@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707071617.GD44762@funkthat.com> User-Agent: Mutt/1.5.4i cc: joe@FreeBSD.org cc: arch@FreeBSD.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 19:47:51 -0000 On Mon, Jul 07, 2003 at 12:16:17AM -0700, John-Mark Gurney wrote: > I would like to move the usb modules into a subdir like the many > other "groups" of modules already in the tree. (i2c, digi, geom, > netgraph, to name a few) > > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. That'd be like putting all the pci drivers in the same dir; I think it's the wrong grouping. The error is that the USB drivers are in /sys/dev/usb, we spent a while moving drivers out of /sys/dev/pci and /sys/i386/isa so I don't think grouping by bus in /sys/modules is any more sensible. It makes more sense to shift them around into /sys/modules/ether or /sys/modules/disk, which is why /sys/modules/sound is somewhat acceptable. -- Tis a wise thing to know what is wanted, wiser still to know when it has been achieved and wisest of all to know when it is unachievable for then striving is folly. [Magician] From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 14:39:08 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7F1A37B401; Mon, 7 Jul 2003 14:39:08 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE5A43FBF; Mon, 7 Jul 2003 14:39:05 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h67M3pMa016851; Mon, 7 Jul 2003 18:03:51 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h67LdCIO075179; Mon, 7 Jul 2003 14:39:12 -0700 (PDT) (envelope-from jmg) Date: Mon, 7 Jul 2003 14:39:12 -0700 From: John-Mark Gurney To: Paul Richards Message-ID: <20030707213912.GH44762@funkthat.com> Mail-Followup-To: Paul Richards , joe@FreeBSD.org, arch@FreeBSD.org References: <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707194747.GA21209@survey.codeburst.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: joe@FreeBSD.org cc: arch@FreeBSD.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 21:39:09 -0000 Paul Richards wrote this message on Mon, Jul 07, 2003 at 20:47 +0100: > On Mon, Jul 07, 2003 at 12:16:17AM -0700, John-Mark Gurney wrote: > > I would like to move the usb modules into a subdir like the many > > other "groups" of modules already in the tree. (i2c, digi, geom, > > netgraph, to name a few) > > > > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. > > That'd be like putting all the pci drivers in the same dir; I think > it's the wrong grouping. The error is that the USB drivers are in > /sys/dev/usb, we spent a while moving drivers out of /sys/dev/pci > and /sys/i386/isa so I don't think grouping by bus in /sys/modules > is any more sensible. But the pci is truely newbus'ifed. The usb code doesn't make proper use of newbus, and is really just a port from NetBSD. So, it's a bit different. Also, usb is different than PCI in that it has well documented "device" interfaces. So unlike PCI there is a more limited number of device drivers. With your statements I do agree that any device drivers that aren't part of the spec should be located else where, otherwise we should break down PCI even more than they are now. > It makes more sense to shift them around into /sys/modules/ether or > /sys/modules/disk, which is why /sys/modules/sound is somewhat > acceptable. If you do the work for the others, I'll make usb follow that, but right now I'm most interested in cleaning up the usb support. Also, the ether, disk, etc. has no precedence compared to the others. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 15:16:13 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B72AE37B401; Mon, 7 Jul 2003 15:16:13 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id E47BB43FA3; Mon, 7 Jul 2003 15:16:11 -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]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h67MFlhR059764 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 8 Jul 2003 00:15:52 +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.9/8.12.9) with ESMTP id h67MFjw6088889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jul 2003 00:15:46 +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 h67MFjgt033022; Tue, 8 Jul 2003 00:15:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h67MFj1a033021; Tue, 8 Jul 2003 00:15:45 +0200 (CEST) Date: Tue, 8 Jul 2003 00:15:45 +0200 From: Bernd Walter To: Paul Richards Message-ID: <20030707221544.GL31285@cicely12.cicely.de> References: <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707194747.GA21209@survey.codeburst.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: arch@freebsd.org cc: John-Mark Gurney Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 22:16:14 -0000 On Mon, Jul 07, 2003 at 08:47:47PM +0100, Paul Richards wrote: > On Mon, Jul 07, 2003 at 12:16:17AM -0700, John-Mark Gurney wrote: > > I would like to move the usb modules into a subdir like the many > > other "groups" of modules already in the tree. (i2c, digi, geom, > > netgraph, to name a few) > > > > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. > > That'd be like putting all the pci drivers in the same dir; I think > it's the wrong grouping. The error is that the USB drivers are in > /sys/dev/usb, we spent a while moving drivers out of /sys/dev/pci > and /sys/i386/isa so I don't think grouping by bus in /sys/modules > is any more sensible. Agreed. > It makes more sense to shift them around into /sys/modules/ether or > /sys/modules/disk, which is why /sys/modules/sound is somewhat > acceptable. It's an ambiguous idea. Think of a device drivers creating multiple different devices. Sometimes it's possible to have multiple (interface) drivers as well, but in other cases it's impossible. Such multi purpose devices without using multiple interfaces do exist, because microcontrollers with embedded usb usually have a limited number of supported interfaces. If usb files should be moved then the drivers itself, so we have dev/usb, dev/ohci, dev/ehci, dev/ulpt, dev/umass and so on. dev/usb might be discussable as it's not a device in the strong sense. Also it would be a great idea to split the usb module into usb, ehci, ohci, uhci and maybe uhub. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 15:35:49 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B69537B401; Mon, 7 Jul 2003 15:35:49 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41AE743F3F; Mon, 7 Jul 2003 15:35:48 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h67N0cMa026323; Mon, 7 Jul 2003 19:00:39 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h67MZxto076222; Mon, 7 Jul 2003 15:35:59 -0700 (PDT) (envelope-from jmg) Date: Mon, 7 Jul 2003 15:35:59 -0700 From: John-Mark Gurney To: ticso@cicely.de Message-ID: <20030707223559.GL44762@funkthat.com> Mail-Followup-To: ticso@cicely.de, Paul Richards , joe@freebsd.org, arch@freebsd.org References: <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> <20030707221544.GL31285@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707221544.GL31285@cicely12.cicely.de> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: arch@freebsd.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 22:35:49 -0000 Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:15 +0200: > Also it would be a great idea to split the usb module into usb, ehci, > ohci, uhci and maybe uhub. -current is broken wrt split usb modules. when you set usbd_enable="YES" in rc.conf, it only loads the usb device. If you then load ugen or any other device, any existing devices are not reprobed. You have to unplug and replug the device back in. So if you broke uhub out, then you'd be in even work trouble since you can't disconnect the internal hub to magicly make it appear. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 15:46:40 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A46237B401; Mon, 7 Jul 2003 15:46:40 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id D93D643FAF; Mon, 7 Jul 2003 15:46:38 -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]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h67MkXhR060141 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 8 Jul 2003 00:46:35 +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.9/8.12.9) with ESMTP id h67MkWw6089028 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jul 2003 00:46:32 +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 h67MkVgt033145; Tue, 8 Jul 2003 00:46:31 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h67MkVQS033144; Tue, 8 Jul 2003 00:46:31 +0200 (CEST) Date: Tue, 8 Jul 2003 00:46:31 +0200 From: Bernd Walter To: ticso@cicely.de, Paul Richards , joe@freebsd.org, arch@freebsd.org Message-ID: <20030707224630.GM31285@cicely12.cicely.de> References: <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> <20030707221544.GL31285@cicely12.cicely.de> <20030707223559.GL44762@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707223559.GL44762@funkthat.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 22:46:40 -0000 On Mon, Jul 07, 2003 at 03:35:59PM -0700, John-Mark Gurney wrote: > Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:15 +0200: > > Also it would be a great idea to split the usb module into usb, ehci, > > ohci, uhci and maybe uhub. > > -current is broken wrt split usb modules. when you set usbd_enable="YES" > in rc.conf, it only loads the usb device. If you then load ugen or any > other device, any existing devices are not reprobed. You have to unplug > and replug the device back in. So if you broke uhub out, then you'd > be in even work trouble since you can't disconnect the internal hub to > magicly make it appear. uhub support is mandantory - just make it an dependency of usb. Naturally usb need to be a dependency to the controller modules. For the reprobing thing - it's easy to write a userland tool which cycles the port to get a reprobe - I thought about writing one since a while. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 15:54:04 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 773F837B401; Mon, 7 Jul 2003 15:54:04 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80ED943F3F; Mon, 7 Jul 2003 15:54:03 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h67NItMa029360; Mon, 7 Jul 2003 19:18:56 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h67MsGcn076558; Mon, 7 Jul 2003 15:54:16 -0700 (PDT) (envelope-from jmg) Date: Mon, 7 Jul 2003 15:54:16 -0700 From: John-Mark Gurney To: ticso@cicely.de Message-ID: <20030707225416.GM44762@funkthat.com> Mail-Followup-To: ticso@cicely.de, Paul Richards , joe@freebsd.org, arch@freebsd.org References: <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> <20030707221544.GL31285@cicely12.cicely.de> <20030707223559.GL44762@funkthat.com> <20030707224630.GM31285@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707224630.GM31285@cicely12.cicely.de> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: arch@freebsd.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 22:54:04 -0000 Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:46 +0200: > On Mon, Jul 07, 2003 at 03:35:59PM -0700, John-Mark Gurney wrote: > > Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:15 +0200: > > > Also it would be a great idea to split the usb module into usb, ehci, > > > ohci, uhci and maybe uhub. > > > > -current is broken wrt split usb modules. when you set usbd_enable="YES" > > in rc.conf, it only loads the usb device. If you then load ugen or any > > other device, any existing devices are not reprobed. You have to unplug > > and replug the device back in. So if you broke uhub out, then you'd > > be in even work trouble since you can't disconnect the internal hub to > > magicly make it appear. > > uhub support is mandantory - just make it an dependency of usb. > Naturally usb need to be a dependency to the controller modules. but usb is a dependancy of uhub. so, which do you load first? :) > For the reprobing thing - it's easy to write a userland tool which > cycles the port to get a reprobe - I thought about writing one since a > while. why doesn't usbd do this? we shouldn't need another program to do this. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 16:09:17 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6ECA37B401; Mon, 7 Jul 2003 16:09:17 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D03B43F93; Mon, 7 Jul 2003 16:09:16 -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]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h67N97hR060478 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 8 Jul 2003 01:09:12 +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.9/8.12.9) with ESMTP id h67N95w6089127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jul 2003 01:09:06 +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 h67N95gt033231; Tue, 8 Jul 2003 01:09:05 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h67N942T033230; Tue, 8 Jul 2003 01:09:04 +0200 (CEST) Date: Tue, 8 Jul 2003 01:09:04 +0200 From: Bernd Walter To: ticso@cicely.de, Paul Richards , joe@freebsd.org, arch@freebsd.org Message-ID: <20030707230903.GN31285@cicely12.cicely.de> References: <20030707071617.GD44762@funkthat.com> <20030707194747.GA21209@survey.codeburst.net> <20030707221544.GL31285@cicely12.cicely.de> <20030707223559.GL44762@funkthat.com> <20030707224630.GM31285@cicely12.cicely.de> <20030707225416.GM44762@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030707225416.GM44762@funkthat.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 23:09:18 -0000 On Mon, Jul 07, 2003 at 03:54:16PM -0700, John-Mark Gurney wrote: > Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:46 +0200: > > On Mon, Jul 07, 2003 at 03:35:59PM -0700, John-Mark Gurney wrote: > > > Bernd Walter wrote this message on Tue, Jul 08, 2003 at 00:15 +0200: > > > > Also it would be a great idea to split the usb module into usb, ehci, > > > > ohci, uhci and maybe uhub. > > > > > > -current is broken wrt split usb modules. when you set usbd_enable="YES" > > > in rc.conf, it only loads the usb device. If you then load ugen or any > > > other device, any existing devices are not reprobed. You have to unplug > > > and replug the device back in. So if you broke uhub out, then you'd > > > be in even work trouble since you can't disconnect the internal hub to > > > magicly make it appear. > > > > uhub support is mandantory - just make it an dependency of usb. > > Naturally usb need to be a dependency to the controller modules. > > but usb is a dependancy of uhub. so, which do you load first? :) Mmm - yes a bad idea - Ok don't split usb and uhub until there is a good solution on how this can be handled. > > For the reprobing thing - it's easy to write a userland tool which > > cycles the port to get a reprobe - I thought about writing one since a > > while. > > why doesn't usbd do this? we shouldn't need another program to do > this. If a user wants to reprobe or reset a device he needs a command line tool not a daemon. usbd is a daemon and idealy it should be replaced by devd some day. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de From owner-freebsd-arch@FreeBSD.ORG Tue Jul 8 00:32:17 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 133A137B405; Tue, 8 Jul 2003 00:32:17 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id A036243F93; Tue, 8 Jul 2003 00:32:14 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id RAA07159; Tue, 8 Jul 2003 17:31:59 +1000 Date: Tue, 8 Jul 2003 17:31:57 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: John-Mark Gurney In-Reply-To: <20030707190944.GE44762@funkthat.com> Message-ID: <20030708172030.G10618@gamplex.bde.org> References: <20030707071617.GD44762@funkthat.com> <20030707202047.M7292@gamplex.bde.org> <20030707190944.GE44762@funkthat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: arch@freebsd.org Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 07:32:17 -0000 On Mon, 7 Jul 2003, John-Mark Gurney wrote: > Bruce Evans wrote this message on Mon, Jul 07, 2003 at 20:24 +1000: > > On Mon, 7 Jul 2003, John-Mark Gurney wrote: > > > > > I would like to move the usb modules into a subdir like the many > > > other "groups" of modules already in the tree. (i2c, digi, geom, > > > netgraph, to name a few) > > > > > > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. > > > > This would be bug-for-bug compatible with the i2c, digi, geom, > > netgraph groups of modules to name a few. Don't forget to put > > the installed modules in subdirs so that they are hard to find too. > > There is one thing that I don't like about modules in a subdir is that > you can't select them well. But, not having them in a sub dir means you > don't know what modules belong to usb w/o using a find . -name Makefile > | xargs grep usb (or something else). Even then do you put something > like uaudio under sound or usb? :) (currently it's under sound) > > Do you want me to bug compatible by adding a prefix for it? (like snd_ > or geom_, but not i2c.) Many of them (all except network drivers?) already have a 'u' prefix. I wouldn't mind that, but would prefer not to change to or from it. Bruce From owner-freebsd-arch@FreeBSD.ORG Fri Jul 11 14:14:53 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C181337B401 for ; Fri, 11 Jul 2003 14:14:53 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FC9443FBD for ; Fri, 11 Jul 2003 14:14:53 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id D59BD4840; Fri, 11 Jul 2003 22:14:44 +0100 (BST) Date: Fri, 11 Jul 2003 22:14:44 +0100 From: Josef Karthauser To: arch@FreeBSD.org Message-ID: <20030711211444.GC2992@genius.tao.org.uk> References: <20030707071617.GD44762@funkthat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uh9ZiVrAOUUm9fzH" Content-Disposition: inline In-Reply-To: <20030707071617.GD44762@funkthat.com> User-Agent: Mutt/1.5.4i Subject: Re: usb module orginization X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2003 21:14:54 -0000 --uh9ZiVrAOUUm9fzH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 07, 2003 at 12:16:17AM -0700, John-Mark Gurney wrote: > I would like to move the usb modules into a subdir like the many > other "groups" of modules already in the tree. (i2c, digi, geom, > netgraph, to name a few) >=20 > i.e. modules/usb/ucom, modules/usb/usb, modules/usb/aue etc. >=20 > Comments? I don't see that it gains us anything. Probably best to spend your time fixing the real problems. Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --uh9ZiVrAOUUm9fzH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iEYEARECAAYFAj8PKMQACgkQXVIcjOaxUBYsKACdFA6gARgukHiplWb1AtyvuNyl /uMAoJJ6H5VCc7MfMeiHMAKiCwvCikmZ =Y0mt -----END PGP SIGNATURE----- --uh9ZiVrAOUUm9fzH-- From owner-freebsd-arch@FreeBSD.ORG Sat Jul 12 19:14:43 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0737937B401 for ; Sat, 12 Jul 2003 19:14:43 -0700 (PDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D1AD43F93 for ; Sat, 12 Jul 2003 19:14:42 -0700 (PDT) (envelope-from hmp@nxad.com) Received: by perrin.int.nxad.com (Postfix, from userid 1072) id E22EC2105E; Sat, 12 Jul 2003 19:14:41 -0700 (PDT) Date: Sat, 12 Jul 2003 19:14:41 -0700 From: Hiten Pandya To: Andrew Gallatin Message-ID: <20030713021441.GA21110@perrin.int.nxad.com> References: <3EF3C12F.9060303@btc.adaptec.com> <16124.39930.142492.356163@grasshopper.cs.duke.edu> <3EFC9F2D.6020908@btc.adaptec.com> <16124.43999.333761.397624@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16124.43999.333761.397624@grasshopper.cs.duke.edu> X-Operating-System: FreeBSD FreeBSD 4.7-STABLE User-Agent: Mutt/1.5.4i cc: Scott Long cc: freebsd-arch@freebsd.org Subject: Re: API change for bus_dma X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 02:14:43 -0000 On Fri, Jun 27, 2003 at 04:41:03PM -0400, Andrew Gallatin wrote: > > Scott Long writes: > > > > As you hinted below, BUS_DMA_NOWAIT does what you want. It will return > > ENOMEM to the caller if the bounce buffers cannot be pre-allocated > > during bus_dmamap_load(). > > OK, thanks. I looks like sparc64 also returns ENOMEM if it runs out of > sgmap space.. > > One more question: What's the FreeBSD equivalent of Solaris' > DDI_DMA_CONSISTENT and DDI_DMA_STREAMING? As of now, the only one which comes to mind is NetBSD which supports such an equivalence; known as BUS_DMA_STREAMING. From what I can recall, the client sets the flag upon call of a DMA memory allocation or DMA load function. The flag is to be used if the client is doing sequential, uni-directional transfers that are regulated by some sort of alignment and size constraint. According to the NetBSD code, it also "takes advantage" of middle-man I/O cache hardware... I am not sure if the NetBSD bus_dma assumes coherency or not. Only a very few platforms support this... For DDI_DMA_CONSISTENT, I think it would be BUS_DMA_COHERENT which is what you are looking for if I am reading the Solaris 2.6 DDI docs correctly. Hope this helps in the slightest. Cheers. -- Hiten (hmp@FreeBSD.ORG)