Date: Tue, 26 Dec 2017 15:03:32 -0800 From: "Chris H" <bsd-lists@BSDforge.com> To: "Warner Losh" <imp@bsdimp.com> Cc: "hackers@freebsd.org>" <freebsd-hackers@freebsd.org> Subject: Re: devmatch(8) committed .... Message-ID: <cc9143e23c543d9ba20ab983f9c4bf02@udns.ultimatedns.net> In-Reply-To: <CANCZdfq-yaOjpPU_U8=oeRZ7G7un%2BEbkDSyiXp2xW6=h-YgyxQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Dec 2017 11:57:10 -0700 "Warner Losh" <imp@bsdimp=2Ecom> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cc9143e23c543d9ba20ab983f9c4bf02>