From owner-freebsd-arch@FreeBSD.ORG Sat Nov 22 00:06:35 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D995579D for ; Sat, 22 Nov 2014 00:06:35 +0000 (UTC) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A6C77FBC for ; Sat, 22 Nov 2014 00:06:35 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id kx10so5920410pab.2 for ; Fri, 21 Nov 2014 16:06:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=RPxlKqb8jG0MJUAQbSzMvKsJZzOtecMi1aRNHw8sVrY=; b=cak4VL4+IOY2as0Pnlo/Im2FetEdZnzegdjQdNwgRMFiTgLwVysDy41Tuqk3N8se7N lJxcAlylx5VgM/q37iGcIlHeHevnRuChYu7ZMDyMJQ0n2A4hSkN6xFuBRNqUXKElXK4A +E3+m80mUKxkxqqaaJm3lIaRbgHWr3z9GEKR80wM2hoh16+KEMwf985jmriSbQUp+UFv yjSLRDzqlkKvjm3ZINb4bCk4ywqxZCGvYmUCx2a9WSy/BsNfeXyyUgWg4OS59xt3EhTR 69Tx1XaXPiKH7JoaJOeWaQv1i2hmJzpCZPtImy7qYC6+17mvZcZ/R4y43lIxeYJx6JYB Eb8Q== X-Gm-Message-State: ALoCoQnznbHfzBHIfEFGKNff6a0RUZPBbxbtmLEZi+jABMa0Qv8oWbRCjWZFzDOp+NWkzXj+mTer X-Received: by 10.70.132.130 with SMTP id ou2mr11719850pdb.168.1416614794436; Fri, 21 Nov 2014 16:06:34 -0800 (PST) Received: from lgmac-stuffs.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id yw1sm5795338pbb.52.2014.11.21.16.06.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Nov 2014 16:06:33 -0800 (PST) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_C880F4EE-956A-487C-9B56-01F615F8FB3A"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: I'd like to axe some drivers From: Warner Losh In-Reply-To: <2540829.zyhqHXzioZ@ralph.baldwin.cx> Date: Fri, 21 Nov 2014 17:06:28 -0700 Message-Id: <14FB18AA-11CB-4501-80E6-5214C3AD36AD@bsdimp.com> References: <201411201631.27556.jhb@freebsd.org> <20141120220752.GI24601@funkthat.com> <2540829.zyhqHXzioZ@ralph.baldwin.cx> To: John Baldwin X-Mailer: Apple Mail (2.1878.6) Cc: arch@freebsd.org, John-Mark Gurney X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2014 00:06:35 -0000 --Apple-Mail=_C880F4EE-956A-487C-9B56-01F615F8FB3A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 21, 2014, at 8:55 AM, John Baldwin wrote: > On Thursday, November 20, 2014 02:07:52 PM John-Mark Gurney wrote: >> I'm fine w/ removing these... Should we do some house cleaning on >> amd64's GENERIC too? >=20 > I'd rather not diverge this thread too much. >=20 >> amd64's GENERIC has a lot of ISA or 100Mbit ethernet cards that are >> clearly not going to be used on these machines... >=20 > I think ISA might make sense. I think 100Mbit PCI ethernet is not as > obvious. One of my previous desktops (an Athlon64 machine) had pcn as > its on-board Ethernet. >=20 >> My recommended list to remove: >> ae, bfe, dc, fxp, hme?, pcn, rl, tx, vr, wb, xl, cs, ed, ex, ep, fe, >> sn, xe >>=20 >> All of these are modules, so if someone really needs them, they can >> load the module... >=20 > One thing that might help is that if pccard grows the same ability as > USB to auto-load modules on insert (I feel like pccardd did this in > 4.x, so this might still work via devd now?), we could remove most of > the ISA drivers from GENERIC on both i386 and amd64 that are nowadays > only going to be used for pccard (that's pretty much all the ISA NICs > aside from ie(4)). (And pccard things still work in CardBus slots, so > are still possibly relevant for 64-bit laptops with CardBus.) USB doesn=92t have the ability to autoload, and never has. Huge, ugly tables of all USB devices are generated and fed into devd=20 as NOMATCH rules to give the illusion that it supports autoload. It is = really evil. pccardd never did do autoload, unless you hacked the default matching stuff to include module loading. PC Card devices could do a similar set of evil, since almost almost all = the PC Card drivers use a centralized table routine. It could almost be an = ELF section of the .ko that could be parsed by a generic NOMATCH program. But failing that, an ugly dirty script could be written to grep the data = out of the source and produce evil nasty Bagginses, errr, NOMATCH scripts. Forget about it for CardBus cards, because PCI never did do anything = this nicely and there=92s a wide variety of ways to match the card extant in = the tree. Warner --Apple-Mail=_C880F4EE-956A-487C-9B56-01F615F8FB3A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUb9OEAAoJEGwc0Sh9sBEAnFEQANX9f+/fCnulzOdkfdlIIWJz hqXSgvPALQkhDlzhrZ6VnHhQLAw6AHkOO4GGhyTgJusJl7pGLlA45Se8R2mZO+fS MCFxKJV4NfYHGrHwNtPVG2MydukKY+2fdBT+UHs8mySpJXWIQnPpYbME803Iln80 AlP8opcda7ZZPHZJpQSKDF61NOzKh81mkTYYL3rYqYIQyjnzWF022LJ3hssQdBt4 d0uUCof9N1ItXZZu1+wi0dJ9JFsnvc+wM8we5bmq7jgFkyg9d7/ufNrlreEV54zl S0cPiN/DjuO9fbTljRWP3uUvkCJESxhw3iew5jdYosO+nczyJPeN5AZa/cIlBzNU ZCww4mPTEr2JIZpoemdpZn1A/LSpaimySlwBGeyP7Rxhg83a0Ph9HPCQOQojTbg9 jJ+/ED0UIZWgJw0YxE9J2GLvUT26jAv+NkcJCViS9fAH2jJXFgS8z0wfzUEyD3pi +zMhFGl81BZHInOEp5Zg8DgkDks6+Qx7/Y8aIbKc5K2T1Re82h1hR2eCcb6NHNTH pEnezzhW6XcEi32Myap8dlnDBGDTgN32SEzrWd2KbjdeY75cKW6GV4rWZi1yUBG7 KYWESu0DarNHKL7gl70WEsCsSKG93ykJ+ym9DedAxPWYmrBSqAOQsagkqvTqpZ9/ PXT2Iy+IPCzXGHctatGn =vBfm -----END PGP SIGNATURE----- --Apple-Mail=_C880F4EE-956A-487C-9B56-01F615F8FB3A--