AMD GPU MES Timeouts Causing System Hangs on Framework Laptop 13 (AMD AI 300 Series)

Seems like we’re having the same problem, see recent post from my sad thread: Outstanding problems with LG monitor Thunderbolt stability - #9 by Lukasz_Siudut .

I’m also using KDE + brave/chromium. Possibly this duo is triggering something. Kernel 6.18.2 + firmware pack w/ the revert.

Unfortunately, I have the same issues on my Framework Laptop 13.
amdgpu.cwsr_enable=0 seems to give me more time but the issue still persists.

When you applied the revert did you rebuild your initramfs?

Yes I have. My newest pursue is that Arch might have not picked up on all of the reverts of yours, as commented in my thread. I checked checksums and they didn’t match. I downloaded it manually, applied and I’m in the middle of testing now.

Edit: FWIW I think that pointing out expected FW version would be more descriptive for whoever struggles with it. When I found out that there’s 0x80 vs 0x83 it kinda became clear that something’s wrong.

$ cat /sys/class/drm/card1/device/fw_version/mes_fw_version 
0x00000080

Thank you @Mario_Limonciello. I downloaded linux-firmware from head, packaged it with make rpm and installed linux-firmware-upstream, which is parallel installable along Fedora’s firmware package. All files went into /lib/firmware/updates.

I removed all amdgpu parameters from my kernel cmdline and appended dyndbg="file drivers/base/firmware_loader/main.c +fmp" to confirm that the new firmware is being loaded:

Jan 03 12:09:43 giskard kernel: firmware_class:fw_log_firmware_info: amdxdna 0000:c2:00.1: Loaded FW: amdnpu/17f0_10/npu.sbin, sha256: 81831072efc3db9e0a1038cded24afd2e67a29434de550e51a19544de05ba91a
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/psp_14_0_0_toc.bin, sha256: da82e510ba90b3939656ecd2092870e5eef1c1b71ad2a4b776bc9e57bae1f05f
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/psp_14_0_0_ta.bin, sha256: f09a913b72b1042502b7a62c1356804f3de96fce0d568b03ba140f98b13baf0d
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/dcn_3_5_dmcub.bin, sha256: 36de3bb91518d4cf80cdd67bb6765f5be005968f7add05aede8fa27b86041a04
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/gc_11_5_0_pfp.bin, sha256: 0124f540871a7759fa8aaae046d458dfb34aeea12a1183ff962c3f1a33067d5a
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/gc_11_5_0_me.bin, sha256: 8f906b64d0a29503daa662c93ec44d076fcac11b78f70cd50ce0af2b500a05a6
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/gc_11_5_0_rlc.bin, sha256: 68cd85567f4f2f8d6b80db294988806d956bf826979c3597daccb71c7ee6aadd
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/gc_11_5_0_mec.bin, sha256: a01c324ab14ec89792449a621a541829b9af26865019027a411a14b910145dfa
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/gc_11_5_0_imu.bin, sha256: 469add57cafead90ab1953d6039cd8e39bc50dfd78aa5fd78f019ccf66a0af41
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/sdma_6_1_0.bin, sha256: 22e55d0ad5f0247a7f0fffc67cfd3161b39f24ad6062ff3c91ec7ff38bd7e1e1
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/vcn_4_0_5.bin, sha256: cd69518af2d7fb4a033339011c458f7eaf83eedb6c02634ced3ca62b9b8f18e4
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/gc_11_5_0_mes_2.bin, sha256: 5ddc544ce31c49c7ef0f1410ca8ee88b72a6ac04514bd11cfaffe004943971ed
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/gc_11_5_0_mes1.bin, sha256: 15995c0308c1aa85bc4a05c1adcca3f4ce8ea5bf3f1e9e3631c57dce1bfe0519
Jan 03 12:09:46 giskard kernel: firmware_class:fw_log_firmware_info: amdgpu 0000:c1:00.0: Loaded FW: amdgpu/vpe_6_1_0.bin, sha256: d93e8f03d3e32ead4592fe508e7d3b3b3a0c00aac387237ec73028b2088ee9de
Jan 03 12:09:48 giskard kernel: firmware_class:fw_log_firmware_info: faux_driver regulatory: Loaded FW: regulatory.db, sha256: 5560f4f0fdac7d1bb2adf8d4d083f39e3bee5ba55192feadadc091df55a813eb
Jan 03 12:09:48 giskard kernel: firmware_class:fw_log_firmware_info: faux_driver regulatory: Loaded FW: regulatory.db.p7s, sha256: 5dd27969661bed1e021ce435f535a53f201705bda14c2dba0db6353d1cdc6fff
Jan 03 12:09:48 giskard kernel: firmware_class:fw_log_firmware_info: bluetooth hci0: Loaded FW: mediatek/mt7925/BT_RAM_CODE_MT7925_1_1_hdr.bin, sha256: f393b73cb68c79d0481817da741fa850fa0d478f01e8292f40dacf45fad1ea87
Jan 03 12:09:48 giskard kernel: firmware_class:fw_log_firmware_info: mt7925e 0000:c0:00.0: Loaded FW: mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin, sha256: 7c974117957d0195b95e2e874ca948d3be603938ebc87fd9cd3470056b4e2b63
Jan 03 12:09:48 giskard kernel: firmware_class:fw_log_firmware_info: mt7925e 0000:c0:00.0: Loaded FW: mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin, sha256: 4a214345fc96bc8f6d55c8d9384fbeebe653421873eedd1230e78592c6330203
Jan 03 12:09:48 giskard kernel: firmware_class:fw_log_firmware_info: mt7925e 0000:c0:00.0: Loaded FW: mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin, sha256: 7c974117957d0195b95e2e874ca948d3be603938ebc87fd9cd3470056b4e2b63
Jan 03 12:09:48 giskard kernel: firmware_class:fw_log_firmware_info: mt7925e 0000:c0:00.0: Loaded FW: mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin, sha256: 7c974117957d0195b95e2e874ca948d3be603938ebc87fd9cd3470056b4e2b63
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/psp_14_0_0_toc.bin, sha256: da82e510ba90b3939656ecd2092870e5eef1c1b71ad2a4b776bc9e57bae1f05f
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/psp_14_0_0_ta.bin, sha256: f09a913b72b1042502b7a62c1356804f3de96fce0d568b03ba140f98b13baf0d
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_pfp.bin, sha256: 0124f540871a7759fa8aaae046d458dfb34aeea12a1183ff962c3f1a33067d5a
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_me.bin, sha256: 8f906b64d0a29503daa662c93ec44d076fcac11b78f70cd50ce0af2b500a05a6
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/sdma_6_1_0.bin, sha256: 22e55d0ad5f0247a7f0fffc67cfd3161b39f24ad6062ff3c91ec7ff38bd7e1e1
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_rlc.bin, sha256: 68cd85567f4f2f8d6b80db294988806d956bf826979c3597daccb71c7ee6aadd
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_imu.bin, sha256: 469add57cafead90ab1953d6039cd8e39bc50dfd78aa5fd78f019ccf66a0af41
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/dcn_3_5_dmcub.bin, sha256: 36de3bb91518d4cf80cdd67bb6765f5be005968f7add05aede8fa27b86041a04
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin, sha256: 4a214345fc96bc8f6d55c8d9384fbeebe653421873eedd1230e78592c6330203
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/vpe_6_1_0.bin, sha256: d93e8f03d3e32ead4592fe508e7d3b3b3a0c00aac387237ec73028b2088ee9de
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_mec.bin, sha256: a01c324ab14ec89792449a621a541829b9af26865019027a411a14b910145dfa
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_mes1.bin, sha256: 15995c0308c1aa85bc4a05c1adcca3f4ce8ea5bf3f1e9e3631c57dce1bfe0519
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/vcn_4_0_5.bin, sha256: cd69518af2d7fb4a033339011c458f7eaf83eedb6c02634ced3ca62b9b8f18e4
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_mes_2.bin, sha256: 5ddc544ce31c49c7ef0f1410ca8ee88b72a6ac04514bd11cfaffe004943971ed
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: mediatek/mt7925/BT_RAM_CODE_MT7925_1_1_hdr.bin, sha256: f393b73cb68c79d0481817da741fa850fa0d478f01e8292f40dacf45fad1ea87
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: amdnpu/17f0_10/npu.sbin, sha256: 81831072efc3db9e0a1038cded24afd2e67a29434de550e51a19544de05ba91a
Jan 03 12:26:31 giskard kernel: (NULL device *): Loaded FW: mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin, sha256: 7c974117957d0195b95e2e874ca948d3be603938ebc87fd9cd3470056b4e2b63
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/psp_14_0_0_toc.bin, sha256: da82e510ba90b3939656ecd2092870e5eef1c1b71ad2a4b776bc9e57bae1f05f
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/sdma_6_1_0.bin, sha256: 22e55d0ad5f0247a7f0fffc67cfd3161b39f24ad6062ff3c91ec7ff38bd7e1e1
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/vpe_6_1_0.bin, sha256: d93e8f03d3e32ead4592fe508e7d3b3b3a0c00aac387237ec73028b2088ee9de
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_imu.bin, sha256: 469add57cafead90ab1953d6039cd8e39bc50dfd78aa5fd78f019ccf66a0af41
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_rlc.bin, sha256: 68cd85567f4f2f8d6b80db294988806d956bf826979c3597daccb71c7ee6aadd
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_pfp.bin, sha256: 0124f540871a7759fa8aaae046d458dfb34aeea12a1183ff962c3f1a33067d5a
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_me.bin, sha256: 8f906b64d0a29503daa662c93ec44d076fcac11b78f70cd50ce0af2b500a05a6
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_mes_2.bin, sha256: 5ddc544ce31c49c7ef0f1410ca8ee88b72a6ac04514bd11cfaffe004943971ed
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/psp_14_0_0_ta.bin, sha256: f09a913b72b1042502b7a62c1356804f3de96fce0d568b03ba140f98b13baf0d
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_mec.bin, sha256: a01c324ab14ec89792449a621a541829b9af26865019027a411a14b910145dfa
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/gc_11_5_0_mes1.bin, sha256: 15995c0308c1aa85bc4a05c1adcca3f4ce8ea5bf3f1e9e3631c57dce1bfe0519
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/vcn_4_0_5.bin, sha256: cd69518af2d7fb4a033339011c458f7eaf83eedb6c02634ced3ca62b9b8f18e4
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdgpu/dcn_3_5_dmcub.bin, sha256: 36de3bb91518d4cf80cdd67bb6765f5be005968f7add05aede8fa27b86041a04
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: mediatek/mt7925/WIFI_MT7925_PATCH_MCU_1_1_hdr.bin, sha256: 4a214345fc96bc8f6d55c8d9384fbeebe653421873eedd1230e78592c6330203
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: amdnpu/17f0_10/npu.sbin, sha256: 81831072efc3db9e0a1038cded24afd2e67a29434de550e51a19544de05ba91a
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: mediatek/mt7925/BT_RAM_CODE_MT7925_1_1_hdr.bin, sha256: f393b73cb68c79d0481817da741fa850fa0d478f01e8292f40dacf45fad1ea87
Jan 03 12:38:16 giskard kernel: (NULL device *): Loaded FW: mediatek/mt7925/WIFI_RAM_CODE_MT7925_1_1.bin, sha256: 7c974117957d0195b95e2e874ca948d3be603938ebc87fd9cd3470056b4e2b63

This is what I see now in /sys/kernel/debug/dri/0000:c1:00.0/amdgpu_firmware_info:

VCE feature version: 0, firmware version: 0x00000000
UVD feature version: 0, firmware version: 0x00000000
MC feature version: 0, firmware version: 0x00000000
ME feature version: 35, firmware version: 0x00000020
PFP feature version: 35, firmware version: 0x0000002e
CE feature version: 0, firmware version: 0x00000000
RLC feature version: 1, firmware version: 0x11510546
RLC SRLC feature version: 0, firmware version: 0x00000000
RLC SRLG feature version: 0, firmware version: 0x00000000
RLC SRLS feature version: 0, firmware version: 0x00000000
RLCP feature version: 1, firmware version: 0x11510341
RLCV feature version: 0, firmware version: 0x00000000
MEC feature version: 35, firmware version: 0x00000020
IMU feature version: 0, firmware version: 0x0b332000
SOS feature version: 0, firmware version: 0x00000000
ASD feature version: 553648388, firmware version: 0x21000104
TA XGMI feature version: 0x00000000, firmware version: 0x00000000
TA RAS feature version: 0x00000000, firmware version: 0x00000000
TA HDCP feature version: 0x00000000, firmware version: 0x1700004a
TA DTM feature version: 0x00000000, firmware version: 0x1200001a
TA RAP feature version: 0x00000000, firmware version: 0x00000000
TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000
SMC feature version: 0, program: 11, firmware version: 0x0b5d0a00 (93.10.0)
SDMA0 feature version: 60, firmware version: 0x0000000e
VCN feature version: 0, firmware version: 0x0911801b
DMCU feature version: 0, firmware version: 0x00000000
DMCUB feature version: 0, firmware version: 0x09003600
TOC feature version: 0, firmware version: 0x0000000b
MES_KIQ feature version: 6, firmware version: 0x0000006f
MES feature version: 1, firmware version: 0x00000080
VPE feature version: 60, firmware version: 0x00000039
VBIOS version: 113-STRIXEMU-001

There are only two version changes from amd-gpu-firmware-20251125-1.fc44.noarch:

--- amdgpu_firmware_info        2026-01-02 19:20:14.479260570 +0900
+++ amdgpu_firmware_info-upstream       2026-01-03 12:18:32.503770736 +0900
@@ -24,9 +24,9 @@ SMC feature version: 0, program: 11, fir
 SDMA0 feature version: 60, firmware version: 0x0000000e
 VCN feature version: 0, firmware version: 0x0911801b
 DMCU feature version: 0, firmware version: 0x00000000
-DMCUB feature version: 0, firmware version: 0x09003500
+DMCUB feature version: 0, firmware version: 0x09003600
 TOC feature version: 0, firmware version: 0x0000000b
 MES_KIQ feature version: 6, firmware version: 0x0000006f
-MES feature version: 1, firmware version: 0x00000083
+MES feature version: 1, firmware version: 0x00000080
 VPE feature version: 60, firmware version: 0x00000039
 VBIOS version: 113-STRIXEMU-001

Note that I still don’t know if this solves the problem.

@Mario_Limonciello just now, after using the latest upstream firmware for ~2h40m, I saw this recoverable GPU hang:

[ 5909.954087] wlp192s0: Limiting TX power to 20 (20 - 0) dBm as advertised by e8:48:b8:9b:7c:c2
[ 9578.396756] amdgpu 0000:c1:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:5 pasid:32790)
[ 9578.396768] amdgpu 0000:c1:00.0: amdgpu:  Process chrome pid 3320 thread chrome:cs0 pid 3360
[ 9578.396771] amdgpu 0000:c1:00.0: amdgpu:   in page starting at address 0x000000003d800000 from client 10
[ 9578.396774] amdgpu 0000:c1:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00501430
[ 9578.396776] amdgpu 0000:c1:00.0: amdgpu: 	 Faulty UTCL2 client ID: SQC (data) (0xa)
[ 9578.396778] amdgpu 0000:c1:00.0: amdgpu: 	 MORE_FAULTS: 0x0
[ 9578.396779] amdgpu 0000:c1:00.0: amdgpu: 	 WALKER_ERROR: 0x0
[ 9578.396780] amdgpu 0000:c1:00.0: amdgpu: 	 PERMISSION_FAULTS: 0x3
[ 9578.396781] amdgpu 0000:c1:00.0: amdgpu: 	 MAPPING_ERROR: 0x0
[ 9578.396782] amdgpu 0000:c1:00.0: amdgpu: 	 RW: 0x0
[ 9588.747464] amdgpu 0000:c1:00.0: amdgpu: Dumping IP State
[ 9588.748667] amdgpu 0000:c1:00.0: amdgpu: Dumping IP State Completed
[ 9588.748787] amdgpu 0000:c1:00.0: amdgpu: [drm] AMDGPU device coredump file has been created
[ 9588.748790] amdgpu 0000:c1:00.0: amdgpu: [drm] Check your /sys/class/drm/card1/device/devcoredump/data
[ 9588.748793] amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 timeout, signaled seq=862425, emitted seq=862427
[ 9588.748797] amdgpu 0000:c1:00.0: amdgpu:  Process chrome pid 3320 thread chrome:cs0 pid 3360
[ 9588.748801] amdgpu 0000:c1:00.0: amdgpu: Starting gfx_0.0.0 ring reset
[ 9590.657613] usb 1-1: reset full-speed USB device number 2 using xhci_hcd
[ 9590.752628] amdgpu 0000:c1:00.0: amdgpu: MES failed to respond to msg=RESET
[ 9590.752638] amdgpu 0000:c1:00.0: amdgpu: failed to reset legacy queue
[ 9590.752640] amdgpu 0000:c1:00.0: amdgpu: reset via MES failed and try pipe reset -110
[ 9590.752643] amdgpu 0000:c1:00.0: amdgpu: The CPFW hasn't support pipe reset yet.
[ 9590.752645] amdgpu 0000:c1:00.0: amdgpu: Ring gfx_0.0.0 reset failed
[ 9590.752649] amdgpu 0000:c1:00.0: amdgpu: GPU reset begin!. Source:  1
[ 9591.147962] amdgpu 0000:c1:00.0: amdgpu: Register(0) [regVPEC_QUEUE_RESET_REQ] failed to reach value 0x00000000 != 0x00000001n
[ 9591.147972] amdgpu 0000:c1:00.0: amdgpu: VPE queue reset failed
[ 9593.153492] amdgpu 0000:c1:00.0: amdgpu: MES failed to respond to msg=REMOVE_QUEUE
[ 9593.153505] amdgpu 0000:c1:00.0: amdgpu: failed to unmap legacy queue
[ 9593.485983] [drm:gfx_v11_0_hw_fini [amdgpu]] *ERROR* failed to halt cp gfx
[ 9593.487484] amdgpu 0000:c1:00.0: amdgpu: MODE2 reset
[ 9593.512687] amdgpu 0000:c1:00.0: amdgpu: GPU reset succeeded, trying to resume
[ 9593.513056] [drm] PCIE GART of 512M enabled (table at 0x0000008001700000).
[ 9593.513128] amdgpu 0000:c1:00.0: amdgpu: SMU is resuming...
[ 9593.516639] amdgpu 0000:c1:00.0: amdgpu: SMU is resumed successfully!
[ 9593.527726] amdgpu 0000:c1:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x09003600
[ 9593.716705] amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[ 9593.716719] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[ 9593.716721] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[ 9593.716723] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[ 9593.716724] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[ 9593.716725] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[ 9593.716726] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[ 9593.716727] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[ 9593.716729] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[ 9593.716730] amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[ 9593.716731] amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
[ 9593.716733] amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec_0 uses VM inv eng 1 on hub 8
[ 9593.716734] amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
[ 9593.716735] amdgpu 0000:c1:00.0: amdgpu: ring vpe uses VM inv eng 4 on hub 8
[ 9594.763956] amdgpu 0000:c1:00.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on vpe (-110).
[ 9594.764302] amdgpu 0000:c1:00.0: amdgpu: ib ring test failed (-110).
[ 9594.881016] amdgpu 0000:c1:00.0: amdgpu: MODE2 reset
[ 9594.907159] amdgpu 0000:c1:00.0: amdgpu: GPU reset succeeded, trying to resume
[ 9594.907646] [drm] PCIE GART of 512M enabled (table at 0x0000008001700000).
[ 9594.907705] amdgpu 0000:c1:00.0: amdgpu: SMU is resuming...
[ 9594.911708] amdgpu 0000:c1:00.0: amdgpu: SMU is resumed successfully!
[ 9594.921809] amdgpu 0000:c1:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x09003600
[ 9595.110551] amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[ 9595.110564] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[ 9595.110566] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[ 9595.110568] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[ 9595.110569] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[ 9595.110571] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[ 9595.110572] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[ 9595.110573] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[ 9595.110574] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[ 9595.110576] amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[ 9595.110577] amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
[ 9595.110579] amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec_0 uses VM inv eng 1 on hub 8
[ 9595.110580] amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
[ 9595.110582] amdgpu 0000:c1:00.0: amdgpu: ring vpe uses VM inv eng 4 on hub 8
[ 9595.114319] amdgpu 0000:c1:00.0: amdgpu: GPU reset(1) succeeded!
[ 9595.114342] amdgpu 0000:c1:00.0: [drm] device wedged, but recovered through reset
[ 9595.119694] amdgpu 0000:c1:00.0: amdgpu: [drm] *ERROR* Failed to initialize parser -125!

I’m running NixOS on framework and started experiencing similar recoverable hangs with similar logs.


Hardware Information:

  • Hardware Model: Framework Laptop 13 AMD Ryzen AI 300 Series
  • Memory: 32.0 GiB
  • Processor: AMD Ryzen™ AI 9 HX 370 w/ Radeon™ 890M × 24
  • Graphics: AMD Radeon™ 890M Graphics
  • Disk Capacity: 2.0 TB

Software Information:

  • Firmware Version: 03.03
  • OS Name: NixOS 26.05 (Yarara)
  • OS Build:
  • OS Type: 64-bit
  • GNOME Version: 49
  • Windowing System: Wayland
  • Kernel Version: Linux 6.18.2

Logs from journalctl

Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32780)
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:  Process code pid 81105 thread code:cs0 pid 81121
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:   in page starting at address 0x0000d8d93e24a000 from client 10
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00101430
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:          Faulty UTCL2 client ID: SQC (data) (0xa)
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:          MORE_FAULTS: 0x0
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:          WALKER_ERROR: 0x0
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:          PERMISSION_FAULTS: 0x3
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:          MAPPING_ERROR: 0x0
Jan 03 23:24:01 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:          RW: 0x0
Jan 03 23:24:11 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: Dumping IP State
Jan 03 23:24:11 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: Dumping IP State Completed
Jan 03 23:24:11 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: [drm] AMDGPU device coredump file has been created
Jan 03 23:24:11 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: [drm] Check your /sys/class/drm/card1/device/devcoredump/data
Jan 03 23:24:11 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 timeout, signaled seq=202444, emitted seq=202446
Jan 03 23:24:11 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu:  Process code pid 81105 thread code:cs0 pid 81121
Jan 03 23:24:11 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: Starting gfx_0.0.0 ring reset
Jan 03 23:24:13 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: MES failed to respond to msg=RESET
Jan 03 23:24:13 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: failed to reset legacy queue
Jan 03 23:24:13 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: reset via MES failed and try pipe reset -110
Jan 03 23:24:13 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: The CPFW hasn't support pipe reset yet.
Jan 03 23:24:13 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: Ring gfx_0.0.0 reset failed
Jan 03 23:24:13 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: GPU reset begin!. Source:  1
Jan 03 23:24:14 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: Register(0) [regVPEC_QUEUE_RESET_REQ] failed to reach value 0x00000000 != 0x00000001n
Jan 03 23:24:14 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: VPE queue reset failed
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: MES failed to respond to msg=REMOVE_QUEUE
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: failed to unmap legacy queue
Jan 03 23:24:16 framework13 kernel: [drm:gfx_v11_0_hw_fini [amdgpu]] *ERROR* failed to halt cp gfx
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: MODE2 reset
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: GPU reset succeeded, trying to resume
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: SMU is resuming...
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: SMU is resumed successfully!
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x09003600
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec_0 uses VM inv eng 1 on hub 8
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
Jan 03 23:24:16 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring vpe uses VM inv eng 4 on hub 8
Jan 03 23:24:17 framework13 kernel: amdgpu 0000:c1:00.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on vpe (-110).
Jan 03 23:24:17 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ib ring test failed (-110).
Jan 03 23:24:17 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: MODE2 reset
Jan 03 23:24:17 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: GPU reset succeeded, trying to resume
Jan 03 23:24:17 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: SMU is resuming...
Jan 03 23:24:17 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: SMU is resumed successfully!
Jan 03 23:24:17 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x09003600
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec_0 uses VM inv eng 1 on hub 8
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: ring vpe uses VM inv eng 4 on hub 8
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: GPU reset(1) succeeded!
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: [drm] device wedged, but recovered through reset
Jan 03 23:24:18 framework13 kernel: amdgpu 0000:c1:00.0: amdgpu: [drm] *ERROR* Failed to initialize parser -125!
Jan 03 23:24:18 framework13 gnome-shell[2965]: amdgpu: The CS has cancelled because the context is lost. This context is innocent.
                                                      Module libdrm_amdgpu.so.1 without build-id.
                                                      Module libdrm_amdgpu.so.1 without build-id.
                                                      #7  0x00007f2ee164c48c _ZL30amdgpu_ctx_set_sw_reset_statusP17radeon_winsys_ctx17pipe_reset_statusPKcz (libgallium-25.3.2.so + 0xc4c48c)
                                                      #8  0x00007f2ee165094e _Z19amdgpu_cs_submit_ibIL10queue_type0EEvPvS1_i (libgallium-25.3.2.so + 0xc5094e)
Jan 03 23:24:23 framework13 gnome-shell[112702]: Added device '/dev/dri/card1' (amdgpu) using atomic mode setting.
Jan 03 23:24:30 framework13 gnome-shell[113172]: Added device '/dev/dri/card1' (amdgpu) using atomic mode setting.

I’ve also seen virtually identical (behavior-wise) recoverable hangs on other non-Framework AMD iGPUs that I own, here is one that I reported about my AMD 7950X - although the logs ARE different.

There was a regression on that one too, and a revert on that one. Unfortunately there are a few reverts that got landed shortly after tagging the linux-firmware release.

@Mario_Limonciello, Is there an amdgpu firmware repo which might be ahead of linux-firmware?

The GPU hang I reported 2 days ago happened while I was running firmware from linux-firmware’s git snapshot from 3 days ago. Since there have been no commits since Dec 28th, I’m fairly sure I’m not missing any fixes which are already merged upstream.

I shared the sha256 of all firmware files so we can easily verify that my kernel didn’t load an older version from initrd or from the base firmware path.

This is the latest on Linux firmware. But some distros you need to rebuild initramfs for it to be effective.

Can you please double check your mes fw version from sysfs or from debugfs to confirm?

Can you please double check your mes fw version from sysfs or from debugfs to confirm?

This?

$ sudo cat /sys/kernel/debug/dri/0000:c1:00.0/amdgpu_firmware_info
VCE feature version: 0, firmware version: 0x00000000
UVD feature version: 0, firmware version: 0x00000000
MC feature version: 0, firmware version: 0x00000000
ME feature version: 35, firmware version: 0x00000020
PFP feature version: 35, firmware version: 0x0000002e
CE feature version: 0, firmware version: 0x00000000
RLC feature version: 1, firmware version: 0x11510546
RLC SRLC feature version: 0, firmware version: 0x00000000
RLC SRLG feature version: 0, firmware version: 0x00000000
RLC SRLS feature version: 0, firmware version: 0x00000000
RLCP feature version: 1, firmware version: 0x11510341
RLCV feature version: 0, firmware version: 0x00000000
MEC feature version: 35, firmware version: 0x00000020
IMU feature version: 0, firmware version: 0x0b332000
SOS feature version: 0, firmware version: 0x00000000
ASD feature version: 553648388, firmware version: 0x21000104
TA XGMI feature version: 0x00000000, firmware version: 0x00000000
TA RAS feature version: 0x00000000, firmware version: 0x00000000
TA HDCP feature version: 0x00000000, firmware version: 0x1700004a
TA DTM feature version: 0x00000000, firmware version: 0x1200001a
TA RAP feature version: 0x00000000, firmware version: 0x00000000
TA SECUREDISPLAY feature version: 0x00000000, firmware version: 0x00000000
SMC feature version: 0, program: 11, firmware version: 0x0b5d0a00 (93.10.0)
SDMA0 feature version: 60, firmware version: 0x0000000e
VCN feature version: 0, firmware version: 0x0911801b
DMCU feature version: 0, firmware version: 0x00000000
DMCUB feature version: 0, firmware version: 0x09003600
TOC feature version: 0, firmware version: 0x0000000b
MES_KIQ feature version: 6, firmware version: 0x0000006f
MES feature version: 1, firmware version: 0x00000080
VPE feature version: 60, firmware version: 0x00000039
VBIOS version: 113-STRIXEMU-001

That looks right, you have some other issues atm then.

I might be misunderstanding, but are you saying that there is some patch somewhere I can install that addresses these issues?

There is a Linux firmware revert that helps at least one issue. But another appears above.

@Mario_Limonciello, @James3: now that I’m running the latest firmware, I can finally run rocm-rust and reproduce the GPU hang more reliably. It’s also recoverable, so I can easily collect logs and retry without rebooting.

In case it helps, the binary is here: https://codewiz.org/pub/rocm-rust

The testcase seems to work with sizes up to 20000, and start failing at 30000:

bernie@giskard:~/axsh% ./rocm-rust 30000
init done
status of create_handle: 0
handle: 0x5555558761c0
46 42 41 40 00 00 40 40
46 42 41 40 00 00 40 40
matrix rows: 30000 cols: 30000 size: 900000000 ram: 7200 MB
hipMalloc1: 0
hipMalloc2: 0
hipMalloc3: 0
Matrix A (input):
2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i
00 00 00 40 00 00 00 00
Matrix B (input):
2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i 2+0i
00 00 00 40 00 00 00 00
Matrix C (input):
0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i 0+0i
elem_size for a complex f32: 8
elem_size for cgemm: 8
matrix rows: 30000 cols: 30000 size: 900000000 ram: 7200 MB
Start calc1 -------------------
End calc1 -------------------
Start sync -------------------
HW Exception by GPU node-1 (Agent handle: 0x5555557bb340) reason :GPU Hang
[1]    500308 IOT instruction (core dumped)  ./rocm-rust 30000

This is what I get in dmesg during the above crash:

[343354.774226] amdgpu 0000:c1:00.0: amdgpu: Dumping IP State
[343354.775010] amdgpu 0000:c1:00.0: amdgpu: Dumping IP State Completed
[343354.775103] amdgpu 0000:c1:00.0: amdgpu: [drm] AMDGPU device coredump file has been created
[343354.775105] amdgpu 0000:c1:00.0: amdgpu: [drm] Check your /sys/class/drm/card1/device/devcoredump/data
[343354.775107] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 timeout, signaled seq=143671, emitted seq=143673
[343354.775111] amdgpu 0000:c1:00.0: amdgpu:  Process thunderbird-bin pid 2849 thread thunderbir:cs0 pid 3063
[343354.775113] amdgpu 0000:c1:00.0: amdgpu: Starting comp_1.0.1 ring reset
[343354.775122] amdgpu 0000:c1:00.0: amdgpu: reset compute queue (1:0:1)
[343355.059635] amdgpu 0000:c1:00.0: amdgpu: Ring comp_1.0.1 reset failed
[343355.059648] amdgpu 0000:c1:00.0: amdgpu: GPU reset begin!. Source:  1
[343355.059663] amdgpu 0000:c1:00.0: amdgpu: Suspending all queues failed
[343355.059666] amdgpu: Failed to suspend process pid 500308
[343355.059670] amdgpu 0000:c1:00.0: amdgpu: remove_all_kfd_queues_mes: Failed to remove queue 1 for dev 16496
[343355.371689] amdgpu 0000:c1:00.0: amdgpu: Register(0) [regVPEC_QUEUE_RESET_REQ] failed to reach value 0x00000000 != 0x00000001n
[343355.371706] amdgpu 0000:c1:00.0: amdgpu: VPE queue reset failed
[343355.377047] amdgpu 0000:c1:00.0: amdgpu: MODE2 reset
[343355.402792] amdgpu 0000:c1:00.0: amdgpu: GPU reset succeeded, trying to resume
[343355.403127] [drm] PCIE GART of 512M enabled (table at 0x0000008001700000).
[343355.403170] amdgpu 0000:c1:00.0: amdgpu: SMU is resuming...
[343355.407375] amdgpu 0000:c1:00.0: amdgpu: SMU is resumed successfully!
[343355.415861] amdgpu 0000:c1:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x09003600
[343355.615845] amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[343355.615855] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[343355.615857] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[343355.615858] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[343355.615859] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[343355.615860] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[343355.615862] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[343355.615863] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[343355.615864] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[343355.615866] amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[343355.615867] amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
[343355.615868] amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec_0 uses VM inv eng 1 on hub 8
[343355.615869] amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
[343355.615871] amdgpu 0000:c1:00.0: amdgpu: ring vpe uses VM inv eng 4 on hub 8
[343356.629220] amdgpu 0000:c1:00.0: [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* IB test failed on vpe (-110).
[343356.629671] amdgpu 0000:c1:00.0: amdgpu: ib ring test failed (-110).
[343356.736813] amdgpu 0000:c1:00.0: amdgpu: MODE2 reset
[343356.762581] amdgpu 0000:c1:00.0: amdgpu: GPU reset succeeded, trying to resume
[343356.762912] [drm] PCIE GART of 512M enabled (table at 0x0000008001700000).
[343356.762959] amdgpu 0000:c1:00.0: amdgpu: SMU is resuming...
[343356.767456] amdgpu 0000:c1:00.0: amdgpu: SMU is resumed successfully!
[343356.777625] amdgpu 0000:c1:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x09003600
[343356.966419] amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[343356.966429] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[343356.966431] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[343356.966432] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[343356.966434] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[343356.966435] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[343356.966436] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[343356.966437] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[343356.966438] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[343356.966440] amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[343356.966441] amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
[343356.966442] amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec_0 uses VM inv eng 1 on hub 8
[343356.966443] amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
[343356.966445] amdgpu 0000:c1:00.0: amdgpu: ring vpe uses VM inv eng 4 on hub 8
[343356.969178] amdgpu 0000:c1:00.0: amdgpu: GPU reset(8) succeeded!
[343356.969191] amdgpu 0000:c1:00.0: [drm] device wedged, but recovered through reset
[343357.066341] amdgpu 0000:c1:00.0: amdgpu: MES failed to respond to msg=REMOVE_QUEUE
[343357.066351] amdgpu 0000:c1:00.0: amdgpu: failed to remove hardware queue from MES, doorbell=0x1002
[343357.066353] amdgpu 0000:c1:00.0: amdgpu: MES might be in unrecoverable state, issue a GPU reset
[343357.066357] amdgpu 0000:c1:00.0: amdgpu: Failed to remove queue 1
[343357.066364] amdgpu 0000:c1:00.0: amdgpu: GPU reset begin!. Source:  3
[343357.066432] amdgpu 0000:c1:00.0: amdgpu: MES failed to respond to msg=REMOVE_QUEUE
[343357.066434] amdgpu 0000:c1:00.0: amdgpu: failed to remove hardware queue from MES, doorbell=0x1000
[343357.066436] amdgpu 0000:c1:00.0: amdgpu: MES might be in unrecoverable state, issue a GPU reset
[343357.066438] amdgpu 0000:c1:00.0: amdgpu: Failed to remove queue 0
[343357.066479] amdgpu 0000:c1:00.0: amdgpu: Dumping IP State
[343357.067886] amdgpu 0000:c1:00.0: amdgpu: Dumping IP State Completed
[343357.177741] amdgpu 0000:c1:00.0: amdgpu: MODE2 reset
[343357.203838] amdgpu 0000:c1:00.0: amdgpu: GPU reset succeeded, trying to resume
[343357.204190] [drm] PCIE GART of 512M enabled (table at 0x0000008001700000).
[343357.204281] amdgpu 0000:c1:00.0: amdgpu: [drm] AMDGPU device coredump file has been created
[343357.204289] amdgpu 0000:c1:00.0: amdgpu: [drm] Check your /sys/class/drm/card1/device/devcoredump/data
[343357.204299] amdgpu 0000:c1:00.0: amdgpu: SMU is resuming...
[343357.208622] amdgpu 0000:c1:00.0: amdgpu: SMU is resumed successfully!
[343357.216850] amdgpu 0000:c1:00.0: amdgpu: [drm] DMUB hardware initialized: version=0x09003600
[343357.405559] amdgpu 0000:c1:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[343357.405568] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[343357.405571] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[343357.405572] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[343357.405573] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[343357.405574] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[343357.405575] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[343357.405576] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[343357.405578] amdgpu 0000:c1:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[343357.405579] amdgpu 0000:c1:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[343357.405580] amdgpu 0000:c1:00.0: amdgpu: ring vcn_unified_0 uses VM inv eng 0 on hub 8
[343357.405582] amdgpu 0000:c1:00.0: amdgpu: ring jpeg_dec_0 uses VM inv eng 1 on hub 8
[343357.405583] amdgpu 0000:c1:00.0: amdgpu: ring mes_kiq_3.1.0 uses VM inv eng 13 on hub 0
[343357.405584] amdgpu 0000:c1:00.0: amdgpu: ring vpe uses VM inv eng 4 on hub 8
[343357.410175] amdgpu 0000:c1:00.0: amdgpu: GPU reset(9) succeeded!
[343357.410184] amdgpu 0000:c1:00.0: [drm] device wedged, but recovered through reset
[343375.569350] amdgpu 0000:c1:00.0: amdgpu: [drm] *ERROR* Failed to initialize parser -125!

Crashes keep happening after upgrading to linux-firmware-20260110-1.fc44 and kernel-6.18.4-200.fc43.

In case it’s useful, I collected the devcoredump of a crash while running ./rocm-rust 30000:

https://codewiz.org/pub/amdgpu-devcoredump-data.txt
https://codewiz.org/pub/amdgpu-dmesg.txt

This time the running process is thunderbird-bin, but I had crashes pointing at signal-desktop, antigravity, as well as other desktop apps which were mostly idle. The process actually triggering the bug was this binary:

https://codewiz.org/pub/rocm-rust

@Mario_Limonciello, is there anything else I could do to help debug this?

@Bernie_Innocenti

From my perspective. I just wanted to get to a stage where it was easily reproducible.
That is why I wrote the rocm-rust matrix mult test program.
I am just hoping that AMD can use that rocm-rust test program to:

  1. Reproduce the problem for themselves.
  2. Find the bug and fix it.
    Also, the fact that amdgpu.cwsr_enable=0 seems to work around the bug a bit, hopefully gives AMD some pointers as to where to look to fix the bug.

This problem also shows itself when running some LLMs and small models such as whisper, so fixing it would help a lot of AMD customers.

I find it very difficult to make any progress tracking down bugs on the GPU code, so maybe, in the process of fixing the bug, AMD might come up with better GPU debugging tools.

Its not like a CPU, where one can run GDB and find the instruction/line of code that caused the crash. You don’t get to the GPU line of the module, kernel, shader code that caused the crash.
Apparently there is a rocmgdb debugger, but when I try to compile TheRock on Ubuntu 24.04, just normally, without a docker container or similar, it just fails to build rocmgdb, and ROCM is just generally a very difficult code base to work with, and diagnose and find bugs in.
So, a first step from AMD might be them making TheRock easy to compile, and easy to find bugs in GPU code, so that all AMD customers can find and fix bugs themselves.
If that was available, I would have actually taken the time to track down and fix this MES bug, but at the moment, that is not possible.

1 Like

The best place to discuss it is on the ROCm Github issues. That has the attention of the right people who work on the ROCm stack.

I relayed my logs here: [Issue]: AMD Radeon 780M (gfx1103) hanging, debugging tips? · Issue #1264 · ROCm/TheRock · GitHub

FWIW I opened this amdgpu bug report . The failure mode seems very similar - in my case browser is the one that triggers it most often, but vscode also did it at least once.

1 Like