14.2 to 14.3 upgrade on AMD Ryzen 7 5700G video driver issue

Just a heads up for anyone running with the subject CPU - my system was running fine prior to the upgrade but the amdgpu kmod failed to load after.

It was running with drm-510-kmod and gpu-firmware-amd-kmod-green-sardine.

Removing drm-510-kmod and installing drm-515-kmod resolved the issue. I don't recall seeing any traffic on the change but it would have been easy to miss I guess.

Note that using drm-kmod as per the handbook does not work as it brings in drm-61-kmod which doesn't appear to be compatible.
 
Perhaps not the same issue.
But on my end intel driver could not be load due drm module issue.

KLD drm.ko: depends on dmabuf - not available or version mismatch
linker_load_file: /boot/modules/drm.ko - unsupported file type
KLD i915kms.ko: depends on drmn - not available or version mismatch
KLD drm.ko: depends on dmabuf - not available or version mismatch


I dont use any custom kernel, the system is being upgraded with
freebsd-update
and
pkg


freebsd-version -kru
14.2-RELEASE-p1
14.2-RELEASE-p1
14.2-RELEASE-p3



PS: I reverted back to 14.2
 
You should have deleted the drm-xxx-kmod and then reinstalled it. This way, the kernel modules would have been in sync with the running kernel thanks to the kmods repository.

From: https://www.freebsd.org/releases/14.3R/relnotes/
A new FreeBSD-kmods repository is included in the default /etc/pkg/FreeBSD.conf pkg(8) configuration file. This repository contains kernel modules compiled specifically for 14.3-RELEASE rather than for the 14-STABLE branch. Installing kernel modules from this repository allows drivers with unstable kernel interfaces, in particular graphics drivers, to work even when the main 14-STABLE repository has packages build on a previous release. (a47542f71511).
 
for some reason it did not work for me.
the following snippet was added to my pkg config file

+FreeBSD-kmods: {
+ url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_latest_${VERSION_MINOR}",
+ mirror_type: "srv",
+ signature_type: "fingerprints",
+ fingerprints: "/usr/share/keys/pkg",
+ enabled: yes
+}



then I forced all packages to be reinstalled

pkg-static upgrade -f
 
i had to comment the main repo and leave only the kmod repo

#FreeBSD: {
# url: "pkg+https://pkg.FreeBSD.org/${ABI}/latest",
# mirror_type: "srv",
# signature_type: "fingerprints",
# fingerprints: "/usr/share/keys/pkg",
# enabled: yes
#}

FreeBSD-kmods: {
url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}


otherwise the pkg manager is confused and doesnt know from where to pull the required package.

I am not sure if I do in the right way but that looks messy.
 
i had to comment the main repo and leave only the kmod repo
[...]
otherwise the pkg manager is confused and doesnt know from where to pull the required package
The complete commenting out of the FreeBSD repository is not ideal, same holds for toggling it yes->no->yes when trying to upgrade.

A standard/usual way to install a suited drm package for your graphics, matched for minor-specific 14.x release versions , is to use pkg install drm-kmod. For 14.2-RELEASE and 14.3-RELEASE that results in the installation of graphics/drm-61-kmod (and appropriate other dependent packages) because graphics/drm-kmod is a meta package. Your graphics hardware is fairly new, so the default seems appropriate, unless you has some specific reason to want drm-515-kmod.

Currently there are some problems with pkg with upgrading when multiple repositories are enabled (more info: PR 285197 - thread with PR 283755). I have found using a two step upgrade process works correctly in selecting and upgrading to the desired highest numbered version of packages:
pkg upgrade -r FreeBSD
pkg upgrade -r FreeBSD-kmods

If desired, you can define appropriate alias(es).
 
Back
Top