Solved amdgpu with AMD Ryzen 9 7900 Raphael iGPU

Did anything get changed here?
What is the output of pkg query -e '%n=gpu-firmware-amd-kmod-psp-13-0-5' '[%R] %n %v'
It seems not:

Code:
root@freebsd:/etc/pkg # pkg query -e '%n=gpu-firmware-amd-kmod-psp-13-0-5' '[%R] %n %v'
[FreeBSD] gpu-firmware-amd-kmod-psp-13-0-5 20230625.1403000_2
root@freebsd:/etc/pkg #
 
I think I managed to upgrade it now:

Code:
root@freebsd:/etc/pkg # pkg query -e '%n=gpu-firmware-amd-kmod-psp-13-0-5' '[%R] %n %v'
[FreeBSD-ports-kmods] gpu-firmware-amd-kmod-psp-13-0-5 20230625.1500068_2
root@freebsd:/etc/pkg #

Log:
Code:
root@freebsd:/etc/pkg # pkg delete gpu-firmware-amd-kmod-psp-13-0-5
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 3 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
    drm-kmod: 20250428
    gpu-firmware-amd-kmod-psp-13-0-5: 20230625.1403000_2
    gpu-firmware-kmod: 20241114,1

Number of packages to be removed: 3

Proceed with deinstalling packages? [y/N]: y
[1/3] Deinstalling drm-kmod-20250428...
[1/3] Deleting files for drm-kmod-20250428: 100%
[2/3] Deinstalling gpu-firmware-kmod-20241114,1...
[2/3] Deleting files for gpu-firmware-kmod-20241114,1: 100%
[3/3] Deinstalling gpu-firmware-amd-kmod-psp-13-0-5-20230625.1403000_2...
[3/3] Deleting files for gpu-firmware-amd-kmod-psp-13-0-5-20230625.1403000_2: 100%


root@freebsd:/etc/pkg # pkg install gpu-firmware-amd-kmod-psp-13-0-5
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    gpu-firmware-amd-kmod-psp-13-0-5: 20230625.1500068_2 [FreeBSD-ports-kmods]

Number of packages to be installed: 1

59 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching gpu-firmware-amd-kmod-psp-13-0-5-20230625.1500068_2~46207eff66.pkg: 100%   59 KiB  60.9kB/s    00:01    
Checking integrity... done (0 conflicting)
[1/1] Installing gpu-firmware-amd-kmod-psp-13-0-5-20230625.1500068_2...
[1/1] Extracting gpu-firmware-amd-kmod-psp-13-0-5-20230625.1500068_2: 100%
root@freebsd:/etc/pkg # 


root@freebsd:/etc/pkg # pkg install drm-kmod
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    drm-kmod: 20250428 [FreeBSD-ports]
    gpu-firmware-kmod: 20241114,1 [FreeBSD-ports]

Number of packages to be installed: 2

Proceed with this action? [y/N]: y
[1/2] Installing gpu-firmware-kmod-20241114,1...
[1/2] Extracting gpu-firmware-kmod-20241114,1: 100%
[2/2] Installing drm-kmod-20250428...
[2/2] Extracting drm-kmod-20250428: 100%
root@freebsd:/etc/pkg # 


root@freebsd:/etc/pkg # pkg install gpu-firmware-kmod
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@freebsd:/etc/pkg #
 
Right, for this paticular package that got the job done! However I don't know if there is other stalwarts old stuff from 14.3-RELEASE.
If there are, you'll probably see them turn up in your dmesg output, but now perhaps as different files.

My idea was that this particular file was a good hook and indicator to see if the attempts undertaken were successful.

If this doesn't do enough then, apart from delving into the how-and-why, I see as other option building graphics/gpu-firmware-kmod from source.

pkg refuses to upgrade firmware packages to 15 version seems to have run into similar firmware issues. Maybe that can help as well.
 
Right, for this paticular package that got the job done! However I don't know if there are other stalwarts.
If there are you'll probably see them turn up in your dmesg output, but now perhaps diferent files.

My idea was that this particular file was a good hook and indicator to see if the attempts taken were successful.

If this doesn't do enough then, apart from delving into the how-and-why, I see as other option building graphics/gpu-firmware-kmod from source.

pkg refuses to upgrade firmware packages to 15 version seems to have run into similar firmware issues. Maybe that can help as well.
Yes, it seems deleting and reinstalling the package seems to have upgraded it.

Yes I was wondering similarly...if it won't compile due to missing files then the build will fail and let me know what's missing.
To do that, just pkg delete gpu-firmware-kmod then build the port at /usr/ports/graphics/gpu-firmware-kmod?

I'll take a read of that link, thanks.
 
Yes I was wondering similarly...if it won't compile due to missing files then the build will fail and let me know what's missing.
To do that, just pkg delete gpu-firmware-kmod then build the port at /usr/ports/graphics/gpu-firmware-kmod?
Ha well, the dmesg I was referring to was wrt to loading the drivers, which was how all things started.

I don't expect the built to fail because of missing files; though it is important to monitor a built. Be sure you've got the right source code from the ports, is your case that's an up-to-date quarterly branch.

"To do that, just ..."
Yep, thats what I'do. I have however not done that for quite some time, as I have sofar managed to get things woking with the use of packages.
 
Ha well, the dmesg I was referring to was wrt to loading the drivers, which was how all things started.

I don't expect the built to fail because of missing files; though it is important to monitor a built. Be sure you've got the right source code from the ports, is your case that's an up-to-date quarterly branch.

"To do that, just ..."
Yep, thats what I'do. I have however not done that for quite some time, as I have sofar managed to get things woking with the use of packages.

> Ha well, the dmesg I was referring to was wrt to loading the drivers, which was how all things started.

Yes, exactly, loading the amdgpu driver at boot time.

> I don't expect the built to fail because of missing files; though it is important to monitor a built. Be sure you've got the right source code from the ports, is your case that's an up-to-date quarterly branch.

I downloaded the files as below. Forget about the /mnt/usr/ports, that was an error I later corrected it by issuing the same command but to /usr/ports, the correct place.

Code:
root@freebsd:/mnt/usr/ports # git clone -b release/15.0.0 --depth 1 https://git.freebsd.org/ports.git /mnt/usr/ports
Cloning into '/mnt/usr/ports'...
remote: Enumerating objects: 203949, done.
remote: Counting objects: 100% (203949/203949), done.
remote: Compressing objects: 100% (190393/190393), done.
remote: Total 203949 (delta 14856), reused 128558 (delta 6626), pack-reused 0 (from 0)
Receiving objects: 100% (203949/203949), 93.65 MiB | 6.76 MiB/s, done.
Resolving deltas: 100% (14856/14856), done.
warning: refs/tags/release/15.0.0 8ef8c372d1bb7c162ee4c815c012ebd54a517c96 is not a commit!
Note: switching to '715bf4119527c14e42df3a2ceb8e9137419cfe32'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Updating files: 100% (167615/167615), done.

> Yep, thats what I'do. I have however not done that for quite some time, as I have sofar managed to get things woking with the use of packages.

I'll first take a complete read again of that link you posted and understand the fix (deleting and reinstalling a package upgrades it to 15.0 version I think).
If we can grep the 1403 in the installed packages then I could delete and reinstall each one to be sure no remaining 14.3 stuff is in there still.

Then I'll delete the package and build the port.
 
It seems there are quite a few 1403000 references within the installed packages:

Code:
root@freebsd:/usr/ports/graphics/gpu-firmware-kmod # pkg info -a | grep 1403000
gpu-firmware-amd-kmod-arcturus-20230625.1403000_2 Firmware modules for arcturus AMD GPUs
gpu-firmware-amd-kmod-banks-20230625.1403000_2 Firmware modules for banks AMD GPUs
gpu-firmware-amd-kmod-beige-goby-20230625.1403000_2 Firmware modules for beige_goby AMD GPUs
gpu-firmware-amd-kmod-bonaire-20230625.1403000_2 Firmware modules for bonaire AMD GPUs
gpu-firmware-amd-kmod-carrizo-20230625.1403000_2 Firmware modules for carrizo AMD GPUs
gpu-firmware-amd-kmod-cyan-skillfish2-20230625.1403000_2 Firmware modules for cyan_skillfish2 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-1-4-20230625.1403000_2 Firmware modules for dcn_3_1_4 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-1-5-20230625.1403000_2 Firmware modules for dcn_3_1_5 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-1-6-20230625.1403000_2 Firmware modules for dcn_3_1_6 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-2-0-20230625.1403000_2 Firmware modules for dcn_3_2_0 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-2-1-20230625.1403000_2 Firmware modules for dcn_3_2_1 AMD GPUs
gpu-firmware-amd-kmod-dimgrey-cavefish-20230625.1403000_2 Firmware modules for dimgrey_cavefish AMD GPUs
gpu-firmware-amd-kmod-fiji-20230625.1403000_2 Firmware modules for fiji AMD GPUs
gpu-firmware-amd-kmod-gc-10-3-6-20230625.1403000_2 Firmware modules for gc_10_3_6 AMD GPUs
gpu-firmware-amd-kmod-gc-10-3-7-20230625.1403000_2 Firmware modules for gc_10_3_7 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-0-20230625.1403000_2 Firmware modules for gc_11_0_0 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-1-20230625.1403000_2 Firmware modules for gc_11_0_1 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-2-20230625.1403000_2 Firmware modules for gc_11_0_2 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-3-20230625.1403000_2 Firmware modules for gc_11_0_3 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-4-20230625.1403000_2 Firmware modules for gc_11_0_4 AMD GPUs
gpu-firmware-amd-kmod-green-sardine-20230625.1403000_2 Firmware modules for green_sardine AMD GPUs
gpu-firmware-amd-kmod-hainan-20230625.1403000_2 Firmware modules for hainan AMD GPUs
gpu-firmware-amd-kmod-hawaii-20230625.1403000_2 Firmware modules for hawaii AMD GPUs
gpu-firmware-amd-kmod-kabini-20230625.1403000_2 Firmware modules for kabini AMD GPUs
gpu-firmware-amd-kmod-kaveri-20230625.1403000_2 Firmware modules for kaveri AMD GPUs
gpu-firmware-amd-kmod-mullins-20230625.1403000_2 Firmware modules for mullins AMD GPUs
gpu-firmware-amd-kmod-navi10-20230625.1403000_2 Firmware modules for navi10 AMD GPUs
gpu-firmware-amd-kmod-navi12-20230625.1403000_2 Firmware modules for navi12 AMD GPUs
gpu-firmware-amd-kmod-navi14-20230625.1403000_2 Firmware modules for navi14 AMD GPUs
gpu-firmware-amd-kmod-navy-flounder-20230625.1403000_2 Firmware modules for navy_flounder AMD GPUs
gpu-firmware-amd-kmod-oland-20230625.1403000_2 Firmware modules for oland AMD GPUs
gpu-firmware-amd-kmod-picasso-20230625.1403000_2 Firmware modules for picasso AMD GPUs
gpu-firmware-amd-kmod-pitcairn-20230625.1403000_2 Firmware modules for pitcairn AMD GPUs
gpu-firmware-amd-kmod-polaris10-20230625.1403000_2 Firmware modules for polaris10 AMD GPUs
gpu-firmware-amd-kmod-polaris11-20230625.1403000_2 Firmware modules for polaris11 AMD GPUs
gpu-firmware-amd-kmod-polaris12-20230625.1403000_2 Firmware modules for polaris12 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-0-20230625.1403000_2 Firmware modules for psp_13_0_0 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-10-20230625.1403000_2 Firmware modules for psp_13_0_10 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-11-20230625.1403000_2 Firmware modules for psp_13_0_11 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-4-20230625.1403000_2 Firmware modules for psp_13_0_4 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-7-20230625.1403000_2 Firmware modules for psp_13_0_7 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-8-20230625.1403000_2 Firmware modules for psp_13_0_8 AMD GPUs
gpu-firmware-amd-kmod-raven-20230625.1403000_2 Firmware modules for raven AMD GPUs
gpu-firmware-amd-kmod-raven2-20230625.1403000_2 Firmware modules for raven2 AMD GPUs
gpu-firmware-amd-kmod-renoir-20230625.1403000_2 Firmware modules for renoir AMD GPUs
gpu-firmware-amd-kmod-sdma-5-2-6-20230625.1403000_2 Firmware modules for sdma_5_2_6 AMD GPUs
gpu-firmware-amd-kmod-sdma-5-2-7-20230625.1403000_2 Firmware modules for sdma_5_2_7 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-0-20230625.1403000_2 Firmware modules for sdma_6_0_0 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-1-20230625.1403000_2 Firmware modules for sdma_6_0_1 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-2-20230625.1403000_2 Firmware modules for sdma_6_0_2 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-3-20230625.1403000_2 Firmware modules for sdma_6_0_3 AMD GPUs
gpu-firmware-amd-kmod-si58-20230625.1403000_2 Firmware modules for si58 AMD GPUs
gpu-firmware-amd-kmod-sienna-cichlid-20230625.1403000_2 Firmware modules for sienna_cichlid AMD GPUs
gpu-firmware-amd-kmod-smu-13-0-0-20230625.1403000_2 Firmware modules for smu_13_0_0 AMD GPUs
gpu-firmware-amd-kmod-smu-13-0-10-20230625.1403000_2 Firmware modules for smu_13_0_10 AMD GPUs
gpu-firmware-amd-kmod-smu-13-0-7-20230625.1403000_2 Firmware modules for smu_13_0_7 AMD GPUs
gpu-firmware-amd-kmod-stoney-20230625.1403000_2 Firmware modules for stoney AMD GPUs
gpu-firmware-amd-kmod-tahiti-20230625.1403000_2 Firmware modules for tahiti AMD GPUs
gpu-firmware-amd-kmod-tonga-20230625.1403000_2 Firmware modules for tonga AMD GPUs
gpu-firmware-amd-kmod-topaz-20230625.1403000_2 Firmware modules for topaz AMD GPUs
gpu-firmware-amd-kmod-vangogh-20230625.1403000_2 Firmware modules for vangogh AMD GPUs
gpu-firmware-amd-kmod-vcn-3-1-2-20230625.1403000_2 Firmware modules for vcn_3_1_2 AMD GPUs
gpu-firmware-amd-kmod-vcn-4-0-0-20230625.1403000_2 Firmware modules for vcn_4_0_0 AMD GPUs
gpu-firmware-amd-kmod-vcn-4-0-2-20230625.1403000_2 Firmware modules for vcn_4_0_2 AMD GPUs
gpu-firmware-amd-kmod-vcn-4-0-4-20230625.1403000_2 Firmware modules for vcn_4_0_4 AMD GPUs
gpu-firmware-amd-kmod-vega10-20230625.1403000_2 Firmware modules for vega10 AMD GPUs
gpu-firmware-amd-kmod-vega12-20230625.1403000_2 Firmware modules for vega12 AMD GPUs
gpu-firmware-amd-kmod-vega20-20230625.1403000_2 Firmware modules for vega20 AMD GPUs
gpu-firmware-amd-kmod-vegam-20230625.1403000_2 Firmware modules for vegam AMD GPUs
gpu-firmware-amd-kmod-verde-20230625.1403000_2 Firmware modules for verde AMD GPUs
gpu-firmware-amd-kmod-yellow-carp-20230625.1403000_2 Firmware modules for yellow_carp AMD GPUs
gpu-firmware-intel-kmod-alderlake-20230625.1403000 Firmware modules for alderlake Intel GPUs
gpu-firmware-intel-kmod-broxton-20230625.1403000 Firmware modules for broxton Intel GPUs
gpu-firmware-intel-kmod-cannonlake-20230625.1403000 Firmware modules for cannonlake Intel GPUs
gpu-firmware-intel-kmod-dg1-20230625.1403000 Firmware modules for dg1 Intel GPUs
gpu-firmware-intel-kmod-dg2-20230625.1403000 Firmware modules for dg2 Intel GPUs
gpu-firmware-intel-kmod-elkhartlake-20230625.1403000 Firmware modules for elkhartlake Intel GPUs
gpu-firmware-intel-kmod-geminilake-20230625.1403000 Firmware modules for geminilake Intel GPUs
gpu-firmware-intel-kmod-icelake-20230625.1403000 Firmware modules for icelake Intel GPUs
gpu-firmware-intel-kmod-kabylake-20230625.1403000 Firmware modules for kabylake Intel GPUs
gpu-firmware-intel-kmod-rocketlake-20230625.1403000 Firmware modules for rocketlake Intel GPUs
gpu-firmware-intel-kmod-skylake-20230625.1403000 Firmware modules for skylake Intel GPUs
gpu-firmware-intel-kmod-tigerlake-20230625.1403000 Firmware modules for tigerlake Intel GPUs
gpu-firmware-radeon-kmod-aruba-20220511.1403000 Firmware modules for aruba Radeon GPUs
gpu-firmware-radeon-kmod-barts-20220511.1403000 Firmware modules for barts Radeon GPUs
gpu-firmware-radeon-kmod-bonaire-20220511.1403000 Firmware modules for bonaire Radeon GPUs
gpu-firmware-radeon-kmod-btc-20220511.1403000 Firmware modules for btc Radeon GPUs
gpu-firmware-radeon-kmod-caicos-20220511.1403000 Firmware modules for caicos Radeon GPUs
gpu-firmware-radeon-kmod-cayman-20220511.1403000 Firmware modules for cayman Radeon GPUs
gpu-firmware-radeon-kmod-cedar-20220511.1403000 Firmware modules for cedar Radeon GPUs
gpu-firmware-radeon-kmod-cypress-20220511.1403000 Firmware modules for cypress Radeon GPUs
gpu-firmware-radeon-kmod-hainan-20220511.1403000 Firmware modules for hainan Radeon GPUs
gpu-firmware-radeon-kmod-hawaii-20220511.1403000 Firmware modules for hawaii Radeon GPUs
gpu-firmware-radeon-kmod-juniper-20220511.1403000 Firmware modules for juniper Radeon GPUs
gpu-firmware-radeon-kmod-kabini-20220511.1403000 Firmware modules for kabini Radeon GPUs
gpu-firmware-radeon-kmod-kaveri-20220511.1403000 Firmware modules for kaveri Radeon GPUs
gpu-firmware-radeon-kmod-mullins-20220511.1403000 Firmware modules for mullins Radeon GPUs
gpu-firmware-radeon-kmod-oland-20220511.1403000 Firmware modules for oland Radeon GPUs
gpu-firmware-radeon-kmod-palm-20220511.1403000 Firmware modules for palm Radeon GPUs
gpu-firmware-radeon-kmod-pitcairn-20220511.1403000 Firmware modules for pitcairn Radeon GPUs
gpu-firmware-radeon-kmod-r100-20220511.1403000 Firmware modules for r100 Radeon GPUs
gpu-firmware-radeon-kmod-r200-20220511.1403000 Firmware modules for r200 Radeon GPUs
gpu-firmware-radeon-kmod-r300-20220511.1403000 Firmware modules for r300 Radeon GPUs
gpu-firmware-radeon-kmod-r420-20220511.1403000 Firmware modules for r420 Radeon GPUs
gpu-firmware-radeon-kmod-r520-20220511.1403000 Firmware modules for r520 Radeon GPUs
gpu-firmware-radeon-kmod-r600-20220511.1403000 Firmware modules for r600 Radeon GPUs
gpu-firmware-radeon-kmod-r700-20220511.1403000 Firmware modules for r700 Radeon GPUs
gpu-firmware-radeon-kmod-redwood-20220511.1403000 Firmware modules for redwood Radeon GPUs
gpu-firmware-radeon-kmod-rs600-20220511.1403000 Firmware modules for rs600 Radeon GPUs
gpu-firmware-radeon-kmod-rs690-20220511.1403000 Firmware modules for rs690 Radeon GPUs
gpu-firmware-radeon-kmod-rs780-20220511.1403000 Firmware modules for rs780 Radeon GPUs
gpu-firmware-radeon-kmod-rv610-20220511.1403000 Firmware modules for rv610 Radeon GPUs
gpu-firmware-radeon-kmod-rv620-20220511.1403000 Firmware modules for rv620 Radeon GPUs
gpu-firmware-radeon-kmod-rv630-20220511.1403000 Firmware modules for rv630 Radeon GPUs
gpu-firmware-radeon-kmod-rv635-20220511.1403000 Firmware modules for rv635 Radeon GPUs
gpu-firmware-radeon-kmod-rv670-20220511.1403000 Firmware modules for rv670 Radeon GPUs
gpu-firmware-radeon-kmod-rv710-20220511.1403000 Firmware modules for rv710 Radeon GPUs
gpu-firmware-radeon-kmod-rv730-20220511.1403000 Firmware modules for rv730 Radeon GPUs
gpu-firmware-radeon-kmod-rv740-20220511.1403000 Firmware modules for rv740 Radeon GPUs
gpu-firmware-radeon-kmod-rv770-20220511.1403000 Firmware modules for rv770 Radeon GPUs
gpu-firmware-radeon-kmod-sumo-20220511.1403000 Firmware modules for sumo Radeon GPUs
gpu-firmware-radeon-kmod-sumo2-20220511.1403000 Firmware modules for sumo2 Radeon GPUs
gpu-firmware-radeon-kmod-tahiti-20220511.1403000 Firmware modules for tahiti Radeon GPUs
gpu-firmware-radeon-kmod-turks-20220511.1403000 Firmware modules for turks Radeon GPUs
gpu-firmware-radeon-kmod-verde-20220511.1403000 Firmware modules for verde Radeon GPUs
root@freebsd:/usr/ports/graphics/gpu-firmware-kmod #
 
It seems there are quite a few 1403000 references within the installed packages:
I seem to vaguely remember that there were problems related to the location where these firmware files were once placed.
Your offending /boot/firmware/amdgpu/psp_13_0_5_toc.bin is not where I have currently my firmware files.

I have only this for directories on my 15.0-R:
Code:
# ls -ld /boot/firmware/*/
drwxr-xr-x  3 root wheel  512 Oct 15 00:26 /boot/firmware/mediatek/
drwxr-xr-x  2 root wheel 1024 Oct 15 00:26 /boot/firmware/rtw89/
Could be that all those offending firmware files are located in your /boot/firmware/amdgpu/ perhaps check with:
pkg list(8) or pkg-query(8)

For example I have:
Code:
[21-0] # pkg query '%n %Fp' 'gpu-firmware-amd-kmod-psp-13-0-0'
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_sos_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_ta_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/AMD
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/LICENSE
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/catalog.mk
[22-0] #
 
After sifting through that lot I have identified package blocks that seem likely to be called by the amdgpu driver when it loads.
How many I need for my 'Raphael' graphics within the AMD 9 7900 CPU's iGPU I don't know but after removing and reinstalling each one, at next boot I will see if it still kernel panics, and if so, I will revisit the panic core dump to see which are the offending missing or incompatible version files it complains about.

Here is the list of packages I intend to reinstall:

Code:
gpu-firmware-amd-kmod-dcn-3-1-4-20230625.1403000_2 Firmware modules for dcn_3_1_4 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-1-5-20230625.1403000_2 Firmware modules for dcn_3_1_5 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-1-6-20230625.1403000_2 Firmware modules for dcn_3_1_6 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-2-0-20230625.1403000_2 Firmware modules for dcn_3_2_0 AMD GPUs
gpu-firmware-amd-kmod-dcn-3-2-1-20230625.1403000_2 Firmware modules for dcn_3_2_1 AMD GPUs

gpu-firmware-amd-kmod-gc-10-3-6-20230625.1403000_2 Firmware modules for gc_10_3_6 AMD GPUs
gpu-firmware-amd-kmod-gc-10-3-7-20230625.1403000_2 Firmware modules for gc_10_3_7 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-0-20230625.1403000_2 Firmware modules for gc_11_0_0 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-1-20230625.1403000_2 Firmware modules for gc_11_0_1 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-2-20230625.1403000_2 Firmware modules for gc_11_0_2 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-3-20230625.1403000_2 Firmware modules for gc_11_0_3 AMD GPUs
gpu-firmware-amd-kmod-gc-11-0-4-20230625.1403000_2 Firmware modules for gc_11_0_4 AMD GPUs

gpu-firmware-amd-kmod-psp-13-0-0-20230625.1403000_2 Firmware modules for psp_13_0_0 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-10-20230625.1403000_2 Firmware modules for psp_13_0_10 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-11-20230625.1403000_2 Firmware modules for psp_13_0_11 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-4-20230625.1403000_2 Firmware modules for psp_13_0_4 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-7-20230625.1403000_2 Firmware modules for psp_13_0_7 AMD GPUs
gpu-firmware-amd-kmod-psp-13-0-8-20230625.1403000_2 Firmware modules for psp_13_0_8 AMD GPUs

gpu-firmware-amd-kmod-sdma-5-2-6-20230625.1403000_2 Firmware modules for sdma_5_2_6 AMD GPUs
gpu-firmware-amd-kmod-sdma-5-2-7-20230625.1403000_2 Firmware modules for sdma_5_2_7 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-0-20230625.1403000_2 Firmware modules for sdma_6_0_0 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-1-20230625.1403000_2 Firmware modules for sdma_6_0_1 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-2-20230625.1403000_2 Firmware modules for sdma_6_0_2 AMD GPUs
gpu-firmware-amd-kmod-sdma-6-0-3-20230625.1403000_2 Firmware modules for sdma_6_0_3 AMD GPUs
gpu-firmware-amd-kmod-si58-20230625.1403000_2 Firmware modules for si58 AMD GPUs

gpu-firmware-amd-kmod-smu-13-0-0-20230625.1403000_2 Firmware modules for smu_13_0_0 AMD GPUs
gpu-firmware-amd-kmod-smu-13-0-10-20230625.1403000_2 Firmware modules for smu_13_0_10 AMD GPUs
gpu-firmware-amd-kmod-smu-13-0-7-20230625.1403000_2 Firmware modules for smu_13_0_7 AMD GPUs

gpu-firmware-amd-kmod-vcn-3-1-2-20230625.1403000_2 Firmware modules for vcn_3_1_2 AMD GPUs
gpu-firmware-amd-kmod-vcn-4-0-0-20230625.1403000_2 Firmware modules for vcn_4_0_0 AMD GPUs
gpu-firmware-amd-kmod-vcn-4-0-2-20230625.1403000_2 Firmware modules for vcn_4_0_2 AMD GPUs
gpu-firmware-amd-kmod-vcn-4-0-4-20230625.1403000_2 Firmware modules for vcn_4_0_4 AMD GPUs
 
I seem to vaguely remember that there were problems related to the location where these firmware files were once placed.
Your offending /boot/firmware/amdgpu/psp_13_0_5_toc.bin is not where I have currently my firmware files.

I have only this for directories on my 15.0-R:
Code:
# ls -ld /boot/firmware/*/
drwxr-xr-x  3 root wheel  512 Oct 15 00:26 /boot/firmware/mediatek/
drwxr-xr-x  2 root wheel 1024 Oct 15 00:26 /boot/firmware/rtw89/
Could be that all those offending firmware files are located in your /boot/firmware/amdgpu/ perhaps check with:
pkg list(8) or pkg-query(8)

For example I have:
Code:
[21-0] # pkg query '%n %Fp' 'gpu-firmware-amd-kmod-psp-13-0-0'
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_sos_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_ta_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/AMD
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/LICENSE
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/catalog.mk
[22-0] #

I had a quick look and it seems like yours unless I'm mistaken:

Code:
root@freebsd:/usr/ports/graphics/gpu-firmware-kmod # pkg query '%n %Fp' 'gpu-firmware-amd-kmod-psp-13-0-0'
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_sos_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_ta_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1403000_2/AMD
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1403000_2/LICENSE
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1403000_2/catalog.mk
root@freebsd:/usr/ports/graphics/gpu-firmware-kmod #
 
I deleted and installed all of the above packages now, so it's time to enable 'amdgpu' in /etc/rc.conf and reboot to see what happens. Let's hope no more kernel panics! o_O😂
 
Well the good news is that this time there was no kernel panic.

The bad news is that when the amdgpu driver was initialised during boot, it showed a black screen with a solid white square at the top left of the screen plus a mouse pointer that didn't move.
I captured the boot messages to see what's going on this time and placed '###' symbols before and after lines of interest.
Note how the initialization of amdgpu seems to fail to find files at first and then a few lines later it says that it has successfully loaded the image file.

Generally, the messages seem positive regarding the initialization going well so I'm not sure yet where the problem is.
The last point is that at the end you can see some reference to setting the resolution, so maybe that is a problem, although the settings work when loading the scfb driver instead of the amdgpu one.

See line:
[drm ERROR :amdgpu_bo_init] Unable to set WC memtype for the aperture base

But finally we see:
[drm] Initialized amdgpu 3.54.0 20150101 for drmn0 on minor 0

So to me it looks like the amdgpu driver is loaded and initialized OK but there is some other problem.

This line looks interesting though:
WARNING !(0) failed at /wrkdir/usr/ports/graphics/drm-66-kmod/work/drm-kmod-drm_v6.6.25_7/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c:171

Could it be that the /usr/local/etc/X11/xorg.conf.d/20-amdgpu.conf file is not correct? :

Code:
root@freebsd:/usr/local/etc/X11/xorg.conf.d # cat 20-amdgpu.conf
Section "Device"
    Identifier "AMD GPU"
    Driver "amdgpu"
    Option "TearFree" "true"
    Option "SWCursor" "true"
EndSection
root@freebsd:/usr/local/etc/X11/xorg.conf.d #

Here is the boot log:

Code:
Loading kernel modules: amdgpu
[drm] amdgpu kernel modesetting enabled.
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
[drm] initializing kernel modesetting (IP DISCOVERY 0x1002:0x164E 0x1462:0x7D77 0xC4).
[drm] register mmio base: 0xF6600000
[drm] register mmio size: 524288
[drm] add ip block number 0 <nv_common>
[drm] add ip block number 1 <gmc_v10_0>
[drm] add ip block number 2 <navi10_ih>
[drm] add ip block number 3 <psp>
[drm] add ip block number 4 <smu>
[drm] add ip block number 5 <dm>
[drm] add ip block number 6 <gfx_v10_0>
[drm] add ip block number 7 <sdma_v5_2>
[drm] add ip block number 8 <vcn_v3_0>
[drm] add ip block number 9 <jpeg_v3_0>
drmn0: Fetched VBIOS from VFCT
###
amdgpu: ATOM BIOS: 102-RAPHAEL-008
###
amdgpu/psp_13_0_5_toc.bin: could not load binary firmware /boot/firmware/amdgpu/psp_13_0_5_toc.bin either
psp_13_0_5_toc.bin: could not load binary firmware /boot/firmware/psp_13_0_5_toc.bin either
amdgpu_psp_13_0_5_toc.bin: could not load binary firmware /boot/firmware/amdgpu_psp_13_0_5_toc.bin either
drmn0: successfully loaded firmware image 'amdgpu/psp_13_0_5_toc.bin'
###
amdgpu/psp_13_0_5_ta.bin: could not load binary firmware /boot/firmware/amdgpu/psp_13_0_5_ta.bin either
psp_13_0_5_ta.bin: could not load binary firmware /boot/firmware/psp_13_0_5_ta.bin either
amdgpu_psp_13_0_5_ta.bin: could not load binary firmware /boot/firmware/amdgpu_psp_13_0_5_ta.bin either
drmn0: successfully loaded firmware image 'amdgpu/psp_13_0_5_ta.bin'
###
amdgpu/dcn_3_1_5_dmcub.bin: could not load binary firmware /boot/firmware/amdgpu/dcn_3_1_5_dmcub.bin either
dcn_3_1_5_dmcub.bin: could not load binary firmware /boot/firmware/dcn_3_1_5_dmcub.bin either
amdgpu_dcn_3_1_5_dmcub.bin: could not load binary firmware /boot/firmware/amdgpu_dcn_3_1_5_dmcub.bin either
drmn0: successfully loaded firmware image 'amdgpu/dcn_3_1_5_dmcub.bin'
###
amdgpu/gc_10_3_6_pfp.bin: could not load binary firmware /boot/firmware/amdgpu/gc_10_3_6_pfp.bin either
gc_10_3_6_pfp.bin: could not load binary firmware /boot/firmware/gc_10_3_6_pfp.bin either
amdgpu_gc_10_3_6_pfp.bin: could not load binary firmware /boot/firmware/amdgpu_gc_10_3_6_pfp.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_10_3_6_pfp.bin'
###
amdgpu/gc_10_3_6_me.bin: could not load binary firmware /boot/firmware/amdgpu/gc_10_3_6_me.bin either
gc_10_3_6_me.bin: could not load binary firmware /boot/firmware/gc_10_3_6_me.bin either
amdgpu_gc_10_3_6_me.bin: could not load binary firmware /boot/firmware/amdgpu_gc_10_3_6_me.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_10_3_6_me.bin'
###
amdgpu/gc_10_3_6_ce.bin: could not load binary firmware /boot/firmware/amdgpu/gc_10_3_6_ce.bin either
gc_10_3_6_ce.bin: could not load binary firmware /boot/firmware/gc_10_3_6_ce.bin either
amdgpu_gc_10_3_6_ce.bin: could not load binary firmware /boot/firmware/amdgpu_gc_10_3_6_ce.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_10_3_6_ce.bin'
###
amdgpu/gc_10_3_6_rlc.bin: could not load binary firmware /boot/firmware/amdgpu/gc_10_3_6_rlc.bin either
gc_10_3_6_rlc.bin: could not load binary firmware /boot/firmware/gc_10_3_6_rlc.bin either
amdgpu_gc_10_3_6_rlc.bin: could not load binary firmware /boot/firmware/amdgpu_gc_10_3_6_rlc.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_10_3_6_rlc.bin'
###
amdgpu/gc_10_3_6_mec.bin: could not load binary firmware /boot/firmware/amdgpu/gc_10_3_6_mec.bin either
gc_10_3_6_mec.bin: could not load binary firmware /boot/firmware/gc_10_3_6_mec.bin either
amdgpu_gc_10_3_6_mec.bin: could not load binary firmware /boot/firmware/amdgpu_gc_10_3_6_mec.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_10_3_6_mec.bin'
###
amdgpu/gc_10_3_6_mec2.bin: could not load binary firmware /boot/firmware/amdgpu/gc_10_3_6_mec2.bin either
gc_10_3_6_mec2.bin: could not load binary firmware /boot/firmware/gc_10_3_6_mec2.bin either
amdgpu_gc_10_3_6_mec2.bin: could not load binary firmware /boot/firmware/amdgpu_gc_10_3_6_mec2.bin either
drmn0: successfully loaded firmware image 'amdgpu/gc_10_3_6_mec2.bin'
###
[drm] VCN(0) decode is enabled in VM mode
[drm] VCN(0) encode is enabled in VM mode
###
amdgpu/vcn_3_1_2.bin: could not load binary firmware /boot/firmware/amdgpu/vcn_3_1_2.bin either
vcn_3_1_2.bin: could not load binary firmware /boot/firmware/vcn_3_1_2.bin either
amdgpu_vcn_3_1_2.bin: could not load binary firmware /boot/firmware/amdgpu_vcn_3_1_2.bin either
drmn0: successfully loaded firmware image 'amdgpu/vcn_3_1_2.bin'
###
[drm] JPEG decode is enabled in VM mode
###
drmn0: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
drmn0: PCIE atomic ops is not supported
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit
drmn0: VRAM: 4096M 0x000000F400000000 - 0x000000F4FFFFFFFF (4096M used)
drmn0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
drmn0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
###
[drm ERROR :amdgpu_bo_init] Unable to set WC memtype for the aperture base
###
[drm] Detected VRAM RAM=4096M, BAR=4096M
[drm] RAM width 128bits DDR5
[drm] amdgpu: 4096M of VRAM memory ready
[drm] amdgpu: 14110M of GTT memory ready.
[drm] GART: num cpu pages 262144, num gpu pages 262144
[drm] PCIE GART of 1024M enabled (table at 0x000000F4FFC00000).
[drm] Loading DMUB firmware via PSP: version=0x08001B00
###
amdgpu/sdma_5_2_6.bin: could not load binary firmware /boot/firmware/amdgpu/sdma_5_2_6.bin either
sdma_5_2_6.bin: could not load binary firmware /boot/firmware/sdma_5_2_6.bin either
amdgpu_sdma_5_2_6.bin: could not load binary firmware /boot/firmware/amdgpu_sdma_5_2_6.bin either
drmn0: successfully loaded firmware image 'amdgpu/sdma_5_2_6.bin'
###
[drm] use_doorbell being set to: [true]
###
[drm] Found VCN firmware Version ENC: 1.27 DEC: 2 VEP: 0 Revision: 0
drmn0: Will use PSP to load VCN firmware
###
[drm] reserve 0xa00000 from 0xf4fe000000 for PSP TMR
drmn0: RAS: optional ras ta ucode is not available
drmn0: RAP: optional rap ta ucode is not available
###
drmn0: SECUREDISPLAY: securedisplay ta ucode is not available
drmn0: SMU is initialized successfully!
[drm] Display Core v3.2.247 initialized on DCN 3.1.5
###
[drm] DP-HDMI FRL PCON supported
[drm] DMUB hardware initialized: version=0x08001B00
###
lkpi_iic0: <LinuxKPI I2C> on drmn0
iicbus0: <Philips I2C bus> on lkpi_iic0
iic0: <I2C generic I/O> on iicbus0
lkpi_iic1: <LinuxKPI I2C> on drmn0
iicbus1: <Philips I2C bus> on lkpi_iic1
iic1: <I2C generic I/O> on iicbus1
lkpi_iic2: <LinuxKPI I2C> on drmn0
iicbus2: <Philips I2C bus> on lkpi_iic2
iic2: <I2C generic I/O> on iicbus2
lkpi_iic3: <LinuxKPI I2C> on drmn0
iicbus3: <Philips I2C bus> on lkpi_iic3
iic3: <I2C generic I/O> on iicbus3
[drm] kiq ring mec 2 pipe 1 q 0
###
[drm] VCN decode and encode initialized successfully(under DPG Mode).
[drm] JPEG decode initialized successfully.
###
drmn0: SE 1, SH per SE 1, CU per SH 2, active_cu_number 2
drmn0: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
drmn0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
drmn0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
drmn0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
drmn0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
drmn0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
drmn0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
drmn0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
drmn0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
drmn0: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
drmn0: ring sdma0 uses VM inv eng 12 on hub 0
drmn0: ring vcn_dec_0 uses VM inv eng 0 on hub 8
drmn0: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
drmn0: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
drmn0: ring jpeg_dec uses VM inv eng 5 on hub 8
vgapci0: child drmn0 requested pci_get_powerstate
sysctl_add_oid: can't re-use a leaf (hw.dri.debug)!
lkpi_iic4: <LinuxKPI I2C> on drm2
iicbus4: <Philips I2C bus> on lkpi_iic4
iic4: <I2C generic I/O> on iicbus4
lkpi_iic5: <LinuxKPI I2C> on drm3
iicbus5: <Philips I2C bus> on lkpi_iic5
iic5: <I2C generic I/O> on iicbus5
lkpi_iic6: <LinuxKPI I2C> on drm4
iicbus6: <Philips I2C bus> on lkpi_iic6
iic6: <I2C generic I/O> on iicbus6
###
[drm] Initialized amdgpu 3.54.0 20150101 for drmn0 on minor 0
###
VT: Replacing driver "efifb" with new "drmfb".
###
[drm] DSC precompute is not needed.
[drm] REG_WAIT timeout 1us * 100000 tries - optc31_disable_crtc line:138
###
WARNING !(0) failed at /wrkdir/usr/ports/graphics/drm-66-kmod/work/drm-kmod-drm_v6.6.25_7/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c:171
start FB_INFO:
height=1440 width=2560 depth=32
pbase=0x35600000 vbase=0xfffffe029b200000
name=drmn0 id=amdgpudrmfb flags=0x0 stride=10240
end FB_INFO
###
 
After boot, at the black screen with fixed solid white cursor at the top left I jumped into another fullscreen shell session, logged in as root and listed the loaded kernel modules, and we see amdgpu plus related modules loaded:
Code:
# kldstat

Id Refs Address                Size Name
 1  124 0xffffffff80200000  1f4daa0 kernel
 2    1 0xffffffff8214f000   104450 if_re.ko
 3    1 0xffffffff82254000     76d8 amdtemp.ko
 4    2 0xffffffff8225c000     3728 amdsmn.ko
 5    1 0xffffffff82260000   620c10 zfs.ko
 6    1 0xffffffff82881000     8808 cryptodev.ko
 7    1 0xffffffff84020000     3390 acpi_wmi.ko
 8    1 0xffffffff84024000     21e8 hcons.ko
 9    3 0xffffffff84027000     30a8 hidmap.ko
10    1 0xffffffff8402b000     21e8 hms.ko
11    1 0xffffffff8402e000     21e8 hsctrl.ko
12    1 0xffffffff84031000     3220 intpm.ko
13    1 0xffffffff84035000     2178 smbus.ko
14    1 0xffffffff84038000     58c0 ng_ubt.ko
15    7 0xffffffff8403e000     abb8 netgraph.ko
16    3 0xffffffff84049000     a330 ng_hci.ko
17    4 0xffffffff84054000     2670 ng_bluetooth.ko
18    1 0xffffffff84057000     e4a8 ng_l2cap.ko
19    1 0xffffffff84066000    1c0c8 ng_btsocket.ko
20    1 0xffffffff84083000     3908 ng_socket.ko
21    1 0xffffffff84200000   6dcad0 amdgpu.ko    <------ amdgpu kernel module is loaded
22    2 0xffffffff84087000    8a190 drm.ko       <------ drm is loaded
23    1 0xffffffff84112000     22b8 iic.ko
24    2 0xffffffff84115000     4120 linuxkpi_video.ko
25    3 0xffffffff8411a000     7358 dmabuf.ko
26    3 0xffffffff84122000     3378 lindebugfs.ko
27    1 0xffffffff84126000     b480 ttm.ko
28    1 0xffffffff84132000     27e0 amdgpu_psp_13_0_5_toc_bin.ko  <------ amdgpu-related modules
29    1 0xffffffff84135000    344e0 amdgpu_psp_13_0_5_ta_bin.ko   
30    1 0xffffffff8416a000    4ba00 amdgpu_dcn_3_1_5_dmcub_bin.ko
31    1 0xffffffff841b6000    425e0 amdgpu_gc_10_3_6_pfp_bin.ko
32    1 0xffffffff848dd000    425e0 amdgpu_gc_10_3_6_me_bin.ko
33    1 0xffffffff84920000    42560 amdgpu_gc_10_3_6_ce_bin.ko
34    1 0xffffffff84963000    2d4a0 amdgpu_gc_10_3_6_rlc_bin.ko
35    1 0xffffffff84991000    43a10 amdgpu_gc_10_3_6_mec_bin.ko
36    1 0xffffffff849d5000    43a10 amdgpu_gc_10_3_6_mec2_bin.ko
37    1 0xffffffff84a19000    8da90 amdgpu_vcn_3_1_2_bin.ko
38    1 0xffffffff84aa7000     a5e0 amdgpu_sdma_5_2_6_bin.ko
 
I seem to vaguely remember that there were problems related to the location where these firmware files were once placed.
Your offending /boot/firmware/amdgpu/psp_13_0_5_toc.bin is not where I have currently my firmware files.

I have only this for directories on my 15.0-R:
Code:
# ls -ld /boot/firmware/*/
drwxr-xr-x  3 root wheel  512 Oct 15 00:26 /boot/firmware/mediatek/
drwxr-xr-x  2 root wheel 1024 Oct 15 00:26 /boot/firmware/rtw89/
Could be that all those offending firmware files are located in your /boot/firmware/amdgpu/ perhaps check with:
pkg list(8) or pkg-query(8)

For example I have:
Code:
[21-0] # pkg query '%n %Fp' 'gpu-firmware-amd-kmod-psp-13-0-0'
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_sos_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /boot/modules/amdgpu_psp_13_0_0_ta_bin.ko
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/AMD
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/LICENSE
gpu-firmware-amd-kmod-psp-13-0-0 /usr/local/share/licenses/gpu-firmware-amd-kmod-psp-13-0-0-20230625.1500067_2/catalog.mk
[22-0] #

I think it's working now, I had an extra digit in the BusID parameter within the X11 config file at /usr/local/etc/X11/xorg.conf.d/20-amdgpu.conf file:
Code:
root@freebsd:/usr/local/etc/X11/xorg.conf.d # cat 20-amdgpu.conf
Section "Device"
    Identifier "AMD iGPU"
    Driver "amdgpu"
    BusID  "pci:18:0:0"
    Option "TearFree" "true"
    Option "SWCursor" "true"
EndSection
root@freebsd:/usr/local/etc/X11/xorg.conf.d #

The above file works but the old file failed, causing a black screen and solid white square at top left to appear.
This is what I had that fails:
Code:
root@freebsd:/usr/local/etc/X11/xorg.conf.d # cat 20-amdgpu.conf
Section "Device"
    Identifier "AMD iGPU"
    Driver "amdgpu"
    BusID  "pci0:18:0:0"               <---- note extra 0 (zero) after the word 'pci'
    Option "TearFree" "true"
    Option "SWCursor" "true"
EndSection
root@freebsd:/usr/local/etc/X11/xorg.conf.d #

The reason I had 'pci0:18:0:0' is because I used the ouput from:
Code:
root@freebsd:/usr/local/etc/X11/xorg.conf.d # pciconf -lv | grep -B3 display
vgapci0@pci0:18:0:0:    class=0x030000 rev=0xc4 hdr=0x00 vendor=0x1002 device=0x164e subvendor=0x1462 subdevice=0x7d77
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Raphael'
    class      = display
root@freebsd:/usr/local/etc/X11/xorg.conf.d #

The output gives 'pci0:18:0:0' but I needed 'pci0:18:0:0' in the file for BusID.

Hope it helps anyone else having troubles with this.
 
Back
Top