[Bug 211528] [request] Mellanox ConnectX-3 drivers compiled into the base system

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 8 20:27:04 UTC 2016


Matthew Macy <mmacy at nextbsd.org> changed:

           What    |Removed                     |Added
                 CC|                            |mmacy at nextbsd.org

--- Comment #4 from Matthew Macy <mmacy at nextbsd.org> ---
(In reply to Ben RUBSON from comment #3)
There are two problems with this:

The one that gives me say:
1) The linuxkpi that drm-next uses is very different from the linuxkpi in HEAD.
Adding COMPAT_LINUXKPI to HEAD would essentially preclude ever supporting
anything newer than Haswell on FreeBSD with a GENERIC kernel config. It's safe
to say that there are a lot more users of X11 on Intel hardware built within
the last 3 years than there are IB users.

The one that really bother me:
2) Once a driver is in GENERIC there is no established mechanism for removing
it.  The kernel is reaching upwards of 30 MB. Unlike Linux and everything else,
FreeBSD has no namespacing for modules statically linked in to the kernel. I've
hit namespace conflicts between the linuxkpi and 20 year old raid drivers. The
driver has no reason to be there now and should have its own namespace even if
it does.

FreeBSD is already several times slower booting than linux. A large part of
this is due to the fact that it runs the probe routine for every PCI driver at
every PCI node in the device tree.

Thus with any driver being added to GENERIC, the question should be: "is this
device needed to work out of the box?" For drivers like em or igb the answer is
yes. For most things the answer is no. 

I assume that you're not really asking to further slow down boot times, bloat
the kernel, and create a perpetual burden on developers. What you probably
really want is for device support to automatically load the modules as needed.
If that's the case, take a look at Warner's initial work and see if you're able
to apply that to mlx: 

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list