From owner-freebsd-arch@FreeBSD.ORG Wed Oct 8 21:45:17 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 292511065687; Wed, 8 Oct 2008 21:45:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C5D18FC16; Wed, 8 Oct 2008 21:45:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m98Lj5u2059033; Wed, 8 Oct 2008 17:45:05 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-arch@freebsd.org Date: Wed, 8 Oct 2008 17:43:44 -0400 User-Agent: KMail/1.9.7 References: <48E6D21E.8040808@bluezbox.com> <48E7AE7D.6020709@bluezbox.com> <8C0B1202-5DF8-45CF-82EA-03367BFABAE7@FreeBSD.ORG> In-Reply-To: <8C0B1202-5DF8-45CF-82EA-03367BFABAE7@FreeBSD.ORG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810081743.45011.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Wed, 08 Oct 2008 17:45:05 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8396/Wed Oct 8 14:48:47 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Oleksandr Tymoshenko , =?iso-8859-1?q?S=F8ren_Schmidt?= Subject: Re: Modular ata chipsets data X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2008 21:45:17 -0000 On Saturday 04 October 2008 02:31:35 pm S=F8ren Schmidt wrote: > I found the devel tree with a modulerized ATA subsystem in it, and =20 > just upgraded it to the latest greatest from -current. > It can be found on http://deepcore.dk/pub/ATA as two files, ata-=20 > modules-diff that contains a diff for /sys/conf/files and ata-=20 > modules.tgz that is a replacement for /sys/dev/ata. > This turns the chipset parts into a module for each vendor, and they =20 > are all compiled in as is, however they can be left out on a pr vendor =20 > basis (there are a few interdependencies though). > I havn't written all the /sys/modules/ata/*/Makefiles that it would =20 > take to make it into loadable modules, but thats trivial todo. >=20 > Now what I'd like to find good generic solutions to is: >=20 > How to select the proper modules at config/compile time without =20 > drowning in "option ATA_BLA_BLA" in the config. What happens with mii is that you have a choice, you can either use 'device= =20 miibus' in which case you get all of the various drivers and the=20 infrastructure, or you can use 'device mii', 'device rlphy', etc. if you wi= sh=20 to take a more fine-grained approach. Similarly, there is a miibus.ko that= =20 just depends on all the sub-drivers so you can still do 'kldload miibus.ko'= =20 to load all of them. I think this is probably a fine model as it will stil= l=20 load everything by default, but people who care about the space savings can= =20 trim things down as desired. =2D-=20 John Baldwin