[Bug 278329] x11/nvidia-driver-470: When built with LINUX=off, the modeset driver loads Linux compatibility kernel modules

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Apr 2024 14:03:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278329

            Bug ID: 278329
           Summary: x11/nvidia-driver-470: When built with LINUX=off, the
                    modeset driver loads Linux compatibility kernel
                    modules
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: ross@exitzero.uk
          Assignee: danfe@FreeBSD.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)

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.

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