nVidia driver issue (RTX 4070 Super)

I'm having this (likely skill-based) issue with getting my nVidia card working with FreeBSD on my main system, resulting in delightful kernel panics. Here's the message I get at boot:
IMG_1506.jpeg


The graphic mode never changes from the onset of boot. And here's what happens if I try to launch into Plasma:

IMG_1507.jpeg


I've had the same issue with 14.2, 14.3, and now 15.0. And in the installation I've ran the procedure laid out in the Handbook, so first I run:

pkg ins nvidia-drm-kmod

Then

sysrc kld_list+=nvidia-drm

And then I modify /boot/loader.conf to include the line:

Code:
hw.nvidiadrm.modeset="1"

The last step is worded in a way in the Handbook that I think it's a necessary step with this gpu/driver -combo, but it's a bit hard to follow, so I've tried with and without with similar issues. The error messages are here with this flag set to 1.

Any ideas? Did I miss any important info?
 
Admittedly I have not since I don't really want to deal with xorg anymore, but it is indeed a troubleshooting step I should do. I'll report back!
 
What happenes if you once deinstall nvidia stuff (plus, drm stuff to be sure) and reinstall restricting repo like below (the example is for 15.0)?
  1. pkg deinstall -f graphics/nvidia-drm-kmod graphics/nvidia-drm-66-kmod graphics/drm-66-kmod x11/nvidia-kmod x11/nvidia-driver
  2. pkg install -r FreeBSD-ports graphics/nvidia-drm-kmod
  3. restart your computer
What are deinstalled on step 1 is what should be installed with pkg install nvidia-drm-kmod. Ports other than *-kmod would be installed from FreeBSD-ports repo and *-kmod would be installed from FreeBSD-ports-kmods repo.

Step 2 is to specify FreeBSD-ports repo only to be used for install.

For 14.3, re-read 66 to 61and FreeBSD-port to FreeBSD.
For 14.2, official pkg are no longer provided since early October. If you want to try, you need to build yourself using ports.

If nothing changes, what happenes if you add hw.nvidia.registry.EnableGpuFirmware=1 in your /boot/loader.conf?
This is mandatory for RTX 5xxx series, but as far as I've heard, not mandatory for older GPUs and harm suspend/resume.
 
I had similar experiences with amdgpu a while back. Building graphics/drm-kmod from ports against a matching kernel source tree for my running release in /usr/src fixed things for me.
 
As I always recommend: just use the native nvidia driver x11/nvidia-driver and ignore the drm drivers - those are linux drivers with a lot of intermedie/abstraction added to work on FreeBSD. Entirely unnecessary for nvidia as they provide native drivers for FreeBSD - as long as the kernel module matches the kernel version, this driver works. period.
 
Back
Top