Freebsd 14.3 freezes when amdgpu is loaded during boot

I have a 7900xt graphics card, I've installed and tried drm-kmod, drm-61-kmod, and drm-515-kmod. With drm-515-kmod everything boots and I get to login but only amdgpu is loaded, no other modules, and it doesn't appear to actually be using the driver or device. drm-61-kmod and drm-kmod give me the same problem. Resolution hops over to what i assume is 1080p, my second screen displays the output and then freezes with the last output I see being VT: Replacing driver "efifb" with new "drmfb", then like 10 blank lines followed with drm dsc precompute not needed.

Users are in the video group, I've tried hw.syscon.disable=1 after reading it elsewhere on here, and get the same freeze but without output.
 
Which full version is for drm-61-kmod ? And maybe you are missing some gpu firmware ?
I remember that someone got a 7900xt to works on FreeBSD, but I don't recall if that was with drm-61-kmod or drm-66-kmod.
 
They got it working with drm-61-kmod if I remember, but I have the gpu-firmware-kmod pkg installed so the firmware is there. I don't know why it's crashing on start up but my guess is that it has to do with loading the firmware. I'm new to freebsd so this is kinda where my troubleshooting ability ends
 
They got it working with drm-61-kmod if I remember, but I have the gpu-firmware-kmod pkg installed so the firmware is there. I don't know why it's crashing on start up but my guess is that it has to do with loading the firmware. I'm new to freebsd so this is kinda where my troubleshooting ability ends
Can you please post output of this command below?

pkg info -x drm-kmod
 
Were you ever able to figure this out ? I have a 5700XT and it is freezing in the exact same way when using the DRM-61-KMOD - on FreeBSD 14.3 -- I recently switched from an NVIDA GPU to to AMD (so I could have all 4 of my screens in OpenBSD) but I can't get the amdgpu driver to properly initialize in FreeBSD
 
I have a 5700XT and it is freezing in the exact same way when using the DRM-61-KMOD - on FreeBSD 14.3 -- I recently switched from an NVIDA GPU to to AMD ... but I can't get the amdgpu driver to properly initialize in FreeBSD
Did you install graphics/drm-61-kmod from packages or port? Kernel modules must match the running kernel. kernel modules from packages are build currently for the 14.2 branch main package repository, however, a dedicated 14.3 kernel module repository is available.

To install a 14.3 kernel matching graphics/drm-61-kmod, install from port or pkg install -r FreeBSD-kmods drm-61-kmod (delete currently installed package first).
 
I had issues on 14.3 with my amd GPUs as well. I had to remove drm-kmod and specify the driver on each system.

I posted in this thread about it.

 
I have a 5700XT and it is freezing in the exact same way when using the DRM-61-KMOD - on FreeBSD 14.3 -- I recently switched from an NVIDA GPU to to AMD (so I could have all 4 of my screens in OpenBSD) but I can't get the amdgpu driver to properly initialize in FreeBSD
Using FreeBSD 14.3-RELEASE, I suggest using:
# pkg ins drm-kmods
# pkg upgrade -r FreeBSD-kmods

EDIT: <deleted>

In general*, instead of using pkg upgrade, I recommend using:
pkg upgrade -r FreeBSD
pkg upgrade -r FreeBSD-kmods

Afterwards, you should have something like:
Rich (BB code):
[1-0] # pkg query -x '[%R] %n %v' '^drm(-|-510-|-515-|-61-)kmod' | column -t
[FreeBSD-kmods]  drm-61-kmod  6.1.128.1403000_5
[FreeBSD]        drm-kmod     20250428

When using only pkg install -r FreeBSD-kmods drm-61-kmod, you should verify that you also have the appropriate gpu firmware files matched to 14.3:
Code:
[5-0] # pkg list | grep 'firmware.*1403'
/usr/local/share/licenses/gpu-firmware-amd-kmod-aldebaran-20230625.1403000_2/AMD
/usr/local/share/licenses/gpu-firmware-amd-kmod-aldebaran-20230625.1403000_2/LICENSE
/usr/local/share/licenses/gpu-firmware-amd-kmod-aldebaran-20230625.1403000_2/catalog.mk
/usr/local/share/licenses/gpu-firmware-amd-kmod-arcturus-20230625.1403000_2/AMD
/usr/local/share/licenses/gpu-firmware-amd-kmod-arcturus-20230625.1403000_2/LICENSE
/usr/local/share/licenses/gpu-firmware-amd-kmod-arcturus-20230625.1403000_2/catalog.mk
 <snap>

___
* Edit: That is: when pkg(8) is able to work correctly with multiple repositories under all circumstances pkg upgrade should suffice. That doesn't seem to be the case with recent pkg releases, including pkg v2.2.2.
 
Some progress but X fails to load - the relevant warnings/errors in the log file seem to be-

(At this point I am just manually loading the amdgpu driver, and upon loading all 4 screens display video albeit in a more efifb way)

LoadModule "amdgpu"
Warning, couldn't open module amdgpu
Failed to load module "amdgpu" (module does not exist, 0)

In addition the log still indicates it finds multiple devices as my CPU also has an AMD GPU - I made a .conf file in
/usr/local/etc/X11/xorg.conf.d/20-amdgpu.conf that points to my primary GPU via bus ID

If I startx to specifically point at that .conf file the module does load but the errors are:

No devices detected
No Screens found

Thanks for the help so far

Cheers,
 
Back
Top