Bug 278329 - x11/nvidia-driver-470: When built with LINUX=off, the modeset driver loads Linux compatibility kernel modules
Summary: x11/nvidia-driver-470: When built with LINUX=off, the modeset driver loads Li...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-12 14:03 UTC by Ross McKelvie
Modified: 2024-04-12 14:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross McKelvie 2024-04-12 14:03:05 UTC
I built the legacy NVidia driver, x11/nvidia-driver-470, using the option LINUX=off to exclude Linux compatibility support.

When loading the modeset driver with:
kldload nvidia-modeset

the following kernel modules are loaded (obtained from listing loaded kernel modules with kldstat before and after):
nvidia-modeset.ko
nvidia.ko
linux.ko
linux-common.ko

I would not expect the Linux compatibility modules to be loaded; this is what I was actively looking to avoid.

I see in the Makefile for x11/nvidia-driver line 293 there is a replacement in one of the source header files if the LINUX option is not set but have not investigated further at this point.

Many thanks for looking at this bug.
Comment 1 Ross McKelvie 2024-04-12 14:05:06 UTC
This is building for FreeBSD 14.0-RELEASE p6 using a poudriere jail of the same version.