FreeBSD and GeForce RTX 3060 - a fickle thing?

Did an upgrade for this old junk and put a Gainward GeForce RTX 3060 Ghost in it replacing the old Quadro.

This happened:

  1. Xorg crashed on 15-Release latest logging kernel page fault
  2. Reverting to 14.4 all was fine - same driver number as for 15 (595.84)
  3. Deciding to try 15 again - same result- kernel page fault (all installs are handbook)
  4. Once again reverting to 14.4 and after running xorg shutdown screen is garbled - and TTYs - boot is fine
  5. Reinstalling 14.4 once more to make sure - still garbled TTYs and all console after running xorg
A fickle thing?

Read tingo's short thread about similar but not exactly the same.

Anyone with similar and some tips?

/grandpa
 
Which 15-RELEASE? 15.0-RELEASE? Or 15.1-RELEASE?

This question is the prerequisite to answer.

If 15.1 and you're using graphics/nvidia-drm-*-kmod, have you rebuilt at least graphics/drm-*-kmod, graphics/nvidia-drm-*-kmod ("*" would be 61 for 14.*, 66 for 15.0 and 612 for 15.1 and later by default) via ports using 100% in sync /usr/src with running kernel as I've repeatedly, repeatedly and repeatedly commented here and there in this forums?

Until admins of kmod builders addresses the regression that NVIDIA-related kmod ports other than x11/nvidia-kmod are NOT built on kmod repo or 15.0 EoLs and 15.1 becomes the oldest supported minor release of 15.*, the above is mandatory.
 
Until admins of kmod builders addresses the regression that NVIDIA-related kmod ports other than x11/nvidia-kmod are NOT built on kmod repo or 15.0 EoLs and 15.1 becomes the oldest supported minor release of 15.*, the above is mandatory.
14.5 will be released soon. And this story will continue with 14.4 packages vs 14.5 kmods, unfortunately. Although I don't think LinuxKPI changed much on 14.
 
Which 15-RELEASE? 15.0-RELEASE? Or 15.1-RELEASE?

This question is the prerequisite to answer.

If 15.1 and you're using graphics/nvidia-drm-*-kmod, have you rebuilt at least graphics/drm-*-kmod, graphics/nvidia-drm-*-kmod ("*" would be 61 for 14.*, 66 for 15.0 and 612 for 15.1 and later by default) via ports using 100% in sync /usr/src with running kernel as I've repeatedly, repeatedly and repeatedly commented here and there in this forums?

Until admins of kmod builders addresses the regression that NVIDIA-related kmod ports other than x11/nvidia-kmod are NOT built on kmod repo or 15.0 EoLs and 15.1 becomes the oldest supported minor release of 15.*, the above is mandatory.

15.1-release.

Didn't build anything just did pkg update && pkg upgrade until there were no more upgrades.

All versions were the same when I did pkg info | grep nvidia. Since I follow the handbook there was no number on the drm. Simply nvidia-drm-kmod.

/grandpa
 
14.5 will be released soon. And this story will continue with 14.4 packages vs 14.5 kmods, unfortunately. Although I don't think LinuxKPI changed much on 14.
Exactly. Hope bapt@ can take time to look into (seemingly quite busy for pkg works). I think he is the key person.

Unfortunate fact, but LinuxK"P"I should be considered as LinuxK"B"I for pre-built pkgs, thus, bunary data formats that are used for parameters or return values strictly matter. And this often happenes on LinuxKPI.

Fortunately, K"P"I breaking updates becomes much fewer comparing with early days LinuxKPI was introduced. So in most cases, building via ports locally using 100% in-sync /usr/src/sys for running kernel helps.
(Of course, there are some exceptions.)
 
15.1-release.

Didn't build anything just did pkg update && pkg upgrade until there were no more upgrades.

All versions were the same when I did pkg info | grep nvidia. Since I follow the handbook there was no number on the drm. Simply nvidia-drm-kmod.

/grandpa
Note that default for 15.1-RELEASE is 612.

I think pkg attempt to remove graphics/drm-61-kmod and graphics/nvidia-drm-61-kmod (for 14.x) and install graphics/drm-612-kmod and graphics/nvidia-drm-612-kmod instead, but as I've already noted many times, currently pkg for graphics/nvidia-drm-612-kmod on 15.* is built for 15.0-RELEASE and doesn't work for 15.1-RELEASE.

May I ask you why you don't search this forums? There should be many answers by me and others (multiple variations of keywords should be tried, though, as there's no forced "standards"). If your issue doesn't even after reading, understanding and trying, you would know what is different with others and describe it at the first place and make answers better and more precise.
 
14.5 will be released soon. And this story will continue with 14.4 packages vs 14.5 kmods, unfortunately. Although I don't think LinuxKPI changed much on 14.
From a user point of view the expectation is simple: we expect the supported FreeBSD versions to have matching packages that simply work without the need to rebuild ports manually.
As an experienced FreeBSD user I know that currently what we have doesn't match this.
The sooner this deficiency is fixed, the sooner the number of satisfied FreeBSD users will increase.
 
Note that default for 15.1-RELEASE is 612.

I think pkg attempt to remove graphics/drm-61-kmod and graphics/nvidia-drm-61-kmod (for 14.x) and install graphics/drm-612-kmod and graphics/nvidia-drm-612-kmod instead, but as I've already noted many times, currently pkg for graphics/nvidia-drm-612-kmod on 15.* is built for 15.0-RELEASE and doesn't work for 15.1-RELEASE.

May I ask you why you don't search this forums? There should be many answers by me and others (multiple variations of keywords should be tried, though, as there's no forced "standards"). If your issue doesn't even after reading, understanding and trying, you would know what is different with others and describe it at the first place and make answers better and more precise.

Thank you for your replies. I really appreciate it.

/grandpa
 
Attempting to summarise the issue with 15.1 Graphical DRM drivers.

We see frustrated users every day on discord that try to use 15.1 with the REPOS for binary updates to KMODs both for Intel ( i915) and Nvidia DRM.
The cause of the failure is that the REPOS online is for FreeBSD 15.0 .
Freebsd 15.1 is setup to use DRM-6.12 , the online REPOS have binary KMODS for DRM-6.1, DRM-6.6 and DRM-6.9
Therfore the User needs to build/compile the DRM-6.12 kmods from /usr/ports.
As soon as they rebuild the KMODS from a fresh /usr/ports installation everything works.
Note: that the /usr/ports distribution on the 15.1 releasemedia is from month of May. and cant be used as it does not include DRM 6.12
Its requiered to download a fresh /usr/ports copy from github according to chapter 4.5 in the handbook.
You need to have the source distribution ( /usr/src ) installed. See appendix A.2.2 - A.2.3 in the handbook if its missing on your computer.
You need to remove any existing drm-kmod, nvidia-drm-kmods and nvidia-kmod / nvidia-driver you may have installed, using ( pkg delete )


NOTE: Nvidia drivers need LINUX emulation support. Add line: linux_enable="YES" to /etc/rc.conf.

Then recompile ( make install ) graphics/drm-kmod and graphics/nvidia-drm-kmod.
follow the instructions in in the pkg-message shown on screen after each build, to setup /boot/loader.conf and /etc/rc.conf.

Add Line : hw.nvidiadrm.modeset=1


to /boot/loader.conf.

Add Line : kld_list="nvidia-drm"

to /etc/rc.conf
Then build x11/nvidia-settings and x11/linux-nvidia-libs

That gives you a working graphics setup with Freebsd 15.1 !
 
That gives you a working graphics setup with Freebsd 15.1 !
Note that GPUs older than Turing generation of architectures have different story.

For any GPUs supported by 580 series of drivers can be driven via DRM/KMS drivers (any of graphics/nvidia-drm-*-kmod-580), too, but 304, 340, 390 and 470 are NOT supported via DRM/KMS interface. So need to configure manually in old-school way.
 
Back
Top