On Sat, 29 Nov 2025 14:25:00 +0100
FreeBSD User <[email protected]> wrote:

> On Sat, 29 Nov 2025 13:18:12 +0100
> Tomek CEDRO <[email protected]> wrote:
> 
> > On Sat, Nov 29, 2025 at 1:15 PM FreeBSD User <[email protected]> wrote:
> > > Since some recent changes to the CURRENT kernel, x11/nividia-kmod/driver 
> > > is
> > > no longer working. Either kernel module nvidia-modeset.ko/nvidia.ko reject
> > > to load with a failure when both  the following OIDs are set to ZERO:  
> > 
> > Do you have this set in /boot/loader.conf for the new nvidia gpu?
> > 
> 
> Loading the GPU driver module via /etc/rc.conf.local saves me from
> crashes/kernel hung in case of a problem, so setting those OIDs in loader.conf
> is ineffective here because the module isn't already loaded.
> 
> > hw.nvidiadrm.modeset=1
> > hw.nvidia.registry.EnableGpuFirmware=1
> 
> I've set hw.nvidia.registry.EnableGpuFirmware=1 in /etc/sysctl.conf.local, the
> first one not.
> 
> Loading "kldload nvidia-modeset" after a successful boot of CURRENT.
> 
> Issuing
> sysctl hw.nvidia.registry.EnableGpuFirmware=1
> hw.nvidia.registry.EnableGpuFirmware: 0 -> 1
> 
> but for 
> # sysctl hw.nvidiadrm.modeset=1
> sysctl: unknown oid 'hw.nvidiadrm.modeset'
> 
> > 
> > Or this is another problem?
> > 
> > --
> > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Please try patch at Bug291212 [1] or review D53987 [2].
Both are actually the same patch.

But if this is the case, the offending commit is temporarily
reverted now at commit fad4c92b78a123f87195173ac118655fa8e325cd
as of "Stabilization Week".

So upgrading to it would help, but once the offending
commit 9562994a7aacee2baae6ddee1a7b558b48ae39ef is reapplied,
the issue would be surely revive without actual fix.

And maybe commit e00a781c216cb12603a0a71c9ca293dde3e06250
or later would be wanted if you don't explicitly disabled
LINUX option for x11/nvidia-kmod[-devel].
(This is just my prediction, as my main branch environment
 is too outdated to test. stable/15 and main are installed
 in different SSDs of exactly the same computer, thus, hard
 to take time to switch to main and upgrade to test.)

[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291212

[2] https://reviews.freebsd.org/D53987

-- 
Tomoaki AOKI    <[email protected]>

Reply via email to