From owner-freebsd-hackers@freebsd.org Tue Dec 26 23:01:13 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7953EE88C5A for ; Tue, 26 Dec 2017 23:01:13 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 664286B56C for ; Tue, 26 Dec 2017 23:01:13 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: by mailman.ysv.freebsd.org (Postfix) id 65B31E88C58; Tue, 26 Dec 2017 23:01:13 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65652E88C57 for ; Tue, 26 Dec 2017 23:01:13 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3CA986B56A for ; Tue, 26 Dec 2017 23:01:12 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id vBQN3Qdr007660; Tue, 26 Dec 2017 15:03:32 -0800 (PST) (envelope-from bsd-lists@BSDforge.com) X-Mailer: UDNSMS MIME-Version: 1.0 Cc: "hackers@freebsd.org>" In-Reply-To: From: "Chris H" Reply-To: bsd-lists@BSDforge.com To: "Warner Losh" Subject: Re: devmatch(8) committed .... Date: Tue, 26 Dec 2017 15:03:32 -0800 Message-Id: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2017 23:01:13 -0000 On Mon, 25 Dec 2017 11:57:10 -0700 "Warner Losh" said > I've committed devmatch(8) to the tree in r327176=2E It's a building block > for automating the loading of modules=2E While we can load modules today by > adding FOO_load=3DYES to loader=2Econf, there's no easy way to load only th= e > modules you need based on the hardware you have in the system=2E devmatch(8= ) > provides the base framework to allow one to do that=2E It does this my > looking at the PNP tables recorded in /boot/kernel/linker=2Ehints=2E I've been *going* to something like this for a long time=2E Thank you!!! >=20 > The version I've committed doesn't have the devd nor the rc=2Ed integration= =2E > I've committed it for people to play with and give me feedback while thos= e > parts are finalized (and while other bugs are fixed)=2E I don't intend to > commit them until the kinks are worked out=2E >=20 > Some notes: >=20 > (1) You'll need a newly built kernel=2E Older kernels have minor bugs that > allowed the terminating sentinel to be included in linker hints=2E All know= n > oens, at least for amd64, have been fixed=2E > (2) Lots and lots of drivers need to have their plug and play tables > decorated=2E This is where I need people's help=2E I'll be writing up somethi= ng > for those that want to help=2E ISAPNP, PC Card and USB drivers already have > this data=2E A few PCI drivers have it, and almost no ACPI drivers=2E The dat= a > is generally there, just not properly decorated for devmatch(8) and > kldxref(8) to do their thing=2E > (3) There's an issue with the USB pnp data=2E It's too long for the current > devinfo(3) interfaces=2E I have fixes in the works to correct this=2E I could > just bump the limits, but I want to do something more general and long te= rm=2E > (4) The end game for this is a GENERIC with most of the drivers removed > that loads drivers automatically=2E Bootable storage drivers will have to > remain for now until the loader can make use of this code=2EThis is why the > warning about hinted ISA devices went into the tree this week=2E > (5) modules will print more than once=2E also the if_em/if_igb driver is a > hard link so both of those will always print=2E >=20 > Please send me your feedback=2E Happy Holidays! Right back at you, and thanks again! --Chris >=20 > Warner