Is drm-612-kmod ready to be used on FreeBSD 15.1p2?

Hi.I saw that drm-612-kmod is available in the main branch of ports,but not in the quarterly and the pkg repository for FreeBSD 15.1.I installed it on my system,and it generally work except being prone to have GPU hangs while playing videos.I wonder if it is already available for FreeBSD 15.1 or require further testing and debugging.
 
You shouldn't be able to install it on 15.1 because it only supports for 16-CURRENT.
/usr/ports/graphics/drm-612-kmod/Makefile
Makefile:
.if ${OPSYS} != FreeBSD
IGNORE=         not supported on anything but FreeBSD (missing linuxkpi functionality)
.elif ${OSVERSION} < 1500509
IGNORE=         not supported on FreeBSD < 1500509, no kernel support
.elif 1600000 <= ${OSVERSION} && ${OSVERSION} < 1600018
IGNORE=         not supported on FreeBSD 16 before 1600018, no kernel support
.endif
 
You shouldn't be able to install it on 15.1 because it only supports for 16-CURRENT.
/usr/ports/graphics/drm-612-kmod/Makefile
Makefile:
.if ${OPSYS} != FreeBSD
IGNORE=         not supported on anything but FreeBSD (missing linuxkpi functionality)
.elif ${OSVERSION} < 1500509
IGNORE=         not supported on FreeBSD < 1500509, no kernel support
.elif 1600000 <= ${OSVERSION} && ${OSVERSION} < 1600018
IGNORE=         not supported on FreeBSD 16 before 1600018, no kernel support
.endif
Note that OSVERSION of 1500509 means stable/15 at some point BEFORE releng/15.1 (used for building 15.1-RELEASE{-p*}) is branched from stable/15. So 15.1-RELEASE supports graphics/drm-612-kmod.
And releng/15.1 starts from 1501000. (Also, stable/15 is bumped to 1501500 after the branch and now at 1501502.)
 
I recently upgrade from 15.0 to 15.1-p3 on my reliable desktop with old gpu RTX2080.

My pkg repository for port is pointing to latest. I did port upgrade and freebsd-fetch install. The port provided me with nvidia-drm-66-kmod-595.91.07.

It crashed my display manager sddm and dropped me to the console. I tried to start my window manager on console and realized xorg segfault when accessing the gpu /dev/drm/card0.

I suspect maybe it is due to kernel ABI, the port provides me with latest drm but was compiled with OSVERSION 1500xxx.

So I tried compile from port using poudriere. But this time the package produced is nvidia-drm-612-kmod-595.99.02. Installed it, and I can start my usual session with xorg.

Then migrate to wayland. I use mangoWM + sddm. So far my games + necessary applications work fine.

Still have minor edges that I can lived with:

1. Login and logout session between sddm and mangowm. It takes longer compare pure x11.

2. chromium using wayland backend is unable to play video or else that page and tab will crash. I have to switch the backend to x11 using xwayland, and things working fine. Firefox has no issue playing video with wayland backend.
 
Note that OSVERSION of 1500509 means stable/15 at some point BEFORE releng/15.1 (used for building 15.1-RELEASE{-p*}) is branched from stable/15. So 15.1-RELEASE supports graphics/drm-612-kmod.
And releng/15.1 starts from 1501000. (Also, stable/15 is bumped to 1501500 after the branch and now at 1501502.)
If I remember correctly it was merged one or two days before the cut for 15.1. There were fixes (but the API was stable) for 15.1 Beta 1 that were added with 15.1 Beta 2.

Basically any version since 15.1-RELEASE (including 16 starting with 1600018) with the latest gpu-firmware-amd-kmod package supports running drm-612-kmod.
That does not mean your card will work 100% okay as you discovered. If you have issues, please check if the issue was already reported on https://github.com/freebsd/drm-kmod/issues or https://bugs.freebsd.org/bugzilla/query.cgi?format=advanced and add your case or open a new ticket.

If 6.12 does not work but 6.6 works better you can go with that. You have the benefit of newer firmware and a newer mesa version (which may be an issue for older hardware).

GPUs are getting too complicated for their own good..
 
Back
Top