rx7900xtx: only one screen mode, 1024x768

Just a heads-up:

If OP looks at the output of kldstat | grep amdgpu (as provided by it-people ), OP will notice the variation in the names of different modules that have to be loaded so that RX 7900 XTX works.

ALL of those parts have to be loaded by amdgpu.ko in order for the RX 7900 XTX to work at all.

Unfortunately, the naming scheme leaves a lot to be desired. Namely - each of those inconvenient-looking names are worked into the packages. As in: if you have a module named amdgpu_dcn_3_2_0_dmcub_bin.ko, the FreeBSD-kmods repo will have amdgpu_dcn_3_2_0_dmcub_bin.pkg package. Paying attention to names like that, collecting stuff that you actually need - and making sense of version numbers is a pain. Not newbie-friendly engineering by any stretch of imagination. And this certainly does not lend itself well to any kind of automation like pkg.

This is why I don't trust the FreeBSD-kmods repo, and recommend compiling the drivers using the Ports Collection's Makefiles. I went through this with my own hardware, and learned what to pay attention to.
 
Just to be clear: below is related, in part, to the usage of installing packages from the remote FreeBSD package repositories. However, as building ports from source is an alternative way to get to installed packages, the use of the various pkg(8) commands (like pkg-query(8), pkg-info(8) and pkg-annotate(8)) to show details of installed packages apply generally.

2) kldstat | grep amdgpu returns no information. This makes sense as we established earlier that the -kld_list="amdgpu"- in /etc/rc.conf does not work in stock config.
"the -kld_list="amdgpu"- in /etc/rc.conf does not work in stock config."
This should work when the correct version is used; it might possibly be the case that here the RX 7900 XTX is the exception but, earlier reported successful functioning of this graphics card suggests otherwise.

"kldstat | grep amdgpu returns no information."
It looks like you do not have the right package installed from which you are using amdgpu in kld_list="amdgpu" and therefore the loading of this kernel module (file /boot/modules/amdgpu.ko) fails; this failure should also have been logged, review the output of dmesg -a. The problem might even be caused by trying to load a correct version of amdgpu (of the 1403000 variety) while trying to combine that with loading all the firmware kernel modules of the wrong version (of the 1402000 variety). As a result all fail to load.

amdgpu.ko is contained in graphics/drm-61-kmod. graphics/drm-kmod is a meta package; using pkg install drm-kmod on 14.3-RELEASE will try to install the package graphics/drm-61-kmod as default; in addition to a full set of firmware packages. graphics/drm-61-kmod should also be of the 1403000 variety. You should have something similar 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

Just to be sure, please post the ouput of
pkg query -x '[%R] %n %v' '^drm-(510-|515-|61-)?kmod'
pkg repositories
 
Apparently, portsnap was depricated about 5 years ago (yes, it's been a while). :)

Also, there is a warning about using the ports and pkg systems together, as pkg automatically ensures the quarterly ports are up to date. Given the amdgpu source appears to have been released in April, and that I've updated my system, I think I should have the updated source and be ready to build.

I'll verify sometime this week, then give it a whirl, then report back.

Thanks all.

lc
 
Back
Top