Hi everybody, I want to put a fine point on this issue/resolution as I ran into this issue myself. I’m running Debian 12 (Bookworm) on my Framework 16 with an AMD Ryzen 7 7840HS w/ Radeon 780M Graphics. On install, I got the following error in my dmesg:
amdgpu 0000:c1:00.0: firmware: failed to load amdgpu/gc_11_0_1_mes_2.bin (-2)
Any programs that used GPU would cause a my GUI to freeze and crash, often forcing me into TTY. I saw Firefox-ESR and Wayland both trigger this issue. The general error on crash looked like this:
kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=35557, emitted seq=35559
kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process firefox-esr pid 8531 thread firefox-es:cs0 pid 8640
kernel: amdgpu 0000:c1:00.0: amdgpu: GPU reset begin!
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
kernel: [drm:amdgpu_mes_unmap_legacy_queue [amdgpu]] *ERROR* failed to unmap legacy queue
kernel: [drm:gfx_v11_0_hw_fini [amdgpu]] *ERROR* failed to halt cp gfx
If you are experiencing this issue the solution is as follows:
Press CTRL+ALT+F3 to access TTY. If you’re Fn lock is activated, de-activate it first.
Login with your normal credentials.
Download the AMDGPU folder from the above link, use this command:
wget https://gitlab.com/kernel-firmware/linux-firmware/-/archive/main/linux-firmware-main.zip?path=amdgpu
If you’ve already added user account to the sudoers file, use sudo, otherwise elevate yourself to root:
su
I’m a little fuzzy on if there was an amdgpu directory on my fresh install of Debian, so as sudo or root, try and create /lib/firmware/amdgpu. If it doesn’t exist, it will create the directory, if it does, it will give you an error and that’s OK, then we can move on to the next step. The command is as follows:
mkdir /lib/firmware/amdgpu
Next step: As sudo or root, move the amdgpu file to /lib/firmware
mv ./amdgpu/* /lib/firmware/amdgpu/
As sudo or root, rebuilt your initramfs (this is CRUCIAL):
update-initramfs -u
There will be some errors, that’s OK.
Now reboot.
This should resolve the issue. I don’t believe there is a need to upgrade to a newer kernel via Debian backports as is listed above.