System freeze when playing some h264 videos with VA-API on Rembrandt
System information
$ inxi -GSC -xx
System:
Host: my-PC Kernel: 6.2.1-arch1-1 arch: x86_64 bits: 64 compiler: gcc
v: 12.2.1 Desktop: KDE Plasma v: 5.27.1 tk: Qt v: 5.15.8 wm: kwin_x11
dm: SDDM Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 6800HS Creator Edition bits: 64 type: MT MCP
arch: Zen 3+ rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
Speed (MHz): avg: 1673 high: 3200 min/max: 1600/4784 boost: enabled cores:
1: 1752 2: 1499 3: 1600 4: 3200 5: 1604 6: 1600 7: 1600 8: 1600 9: 1559
10: 1397 11: 1343 12: 1347 13: 1475 14: 1600 15: 1999 16: 1600
bogomips: 102240
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Rembrandt [Radeon 680M] vendor: Lenovo driver: amdgpu
v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1
empty: DP-1, DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, HDMI-A-1 bus-ID: 04:00.0
chip-ID: 1002:1681 temp: 37.0 C
Device-2: Chicony Integrated Camera type: USB driver: uvcvideo
bus-ID: 5-1:2 chip-ID: 04f2:b758
Display: x11 server: X.Org v: 21.1.7 compositor: kwin_x11 driver: X:
loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi
gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1600 s-dpi: 96
Monitor-1: eDP-1 mapped: eDP model: BOE Display 0x0ac1 res: 2560x1600
dpi: 189 diag: 406mm (16")
API: OpenGL v: 4.6 Mesa 23.1.0-devel (git-12f0daddfc) renderer: AMD
Radeon Graphics (rembrandt LLVM 15.0.7 DRM 3.49 6.2.1-arch1-1)
direct-render: Yes
$ vainfo
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.17 (libva 2.17.1)
vainfo: Driver version: Mesa Gallium driver 23.1.0-devel for AMD Radeon Graphics (rembrandt, LLVM 15.0.7, DRM 3.49, 6.2.1-arch1-1)
vainfo: Supported profile and entrypoints
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Describe the issue
When playing some h264 videos, the system can completely freeze, requiring a hard reboot. It's very rare, I encountered this issue only once on youtube (with the plugin h264-ify because of #8044 (closed) ) and twice when assisting to an online course. I also have a video where it does happen each time, that you can find below and test. With software decoding, it works fine, but with hardware decoding it immediately crashes my whole system. crash.mkv
I'm using the package mesa-git
on Arch Linux, so it should be up-to-date with the main
branch.
Regression
I don't know. As I said, it happens very rarely and I got my laptop relatively recently. I'm sorry to not be able to provide more information on this.
Log files as attachment
dmesg
output:
[ 1092.632931] amdgpu 0000:04:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:24 vmid:3 pasid:32787, for process mpv pid 3541 thread mpv:cs0 pid 3557)
[ 1092.632942] amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x000080010403f000 from client 0x12 (VMC)
[ 1092.632947] amdgpu 0000:04:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00303831
[ 1092.632950] amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: VCN (0x1c)
[ 1092.632953] amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x1
[ 1092.632955] amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
[ 1092.632956] amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x3
[ 1092.632958] amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
[ 1092.632959] amdgpu 0000:04:00.0: amdgpu: RW: 0x0
[ 1092.632978] amdgpu 0000:04:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:24 vmid:3 pasid:32787, for process mpv pid 3541 thread mpv:cs0 pid 3557)
[ 1092.632982] amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x000080010403f000 from client 0x12 (VMC)
[ 1092.632985] amdgpu 0000:04:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 1092.632987] amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: MP0 (0x0)
[ 1092.632989] amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x0
[ 1092.632990] amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
[ 1092.632992] amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x0
[ 1092.632993] amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
[ 1092.632994] amdgpu 0000:04:00.0: amdgpu: RW: 0x0
[ 1092.632998] amdgpu 0000:04:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:24 vmid:3 pasid:32787, for process mpv pid 3541 thread mpv:cs0 pid 3557)
[ 1092.633001] amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x000080010403f000 from client 0x12 (VMC)
[ 1092.633004] amdgpu 0000:04:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 1092.633005] amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: MP0 (0x0)
[ 1092.633007] amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x0
[ 1092.633008] amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
[ 1092.633010] amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x0
[ 1092.633011] amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
[ 1092.633013] amdgpu 0000:04:00.0: amdgpu: RW: 0x0
[ 1092.633016] amdgpu 0000:04:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:24 vmid:3 pasid:32787, for process mpv pid 3541 thread mpv:cs0 pid 3557)
[ 1092.633019] amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x000080010403f000 from client 0x12 (VMC)
[ 1092.633021] amdgpu 0000:04:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 1092.633022] amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: MP0 (0x0)
[ 1092.633024] amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x0
[ 1092.633025] amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
[ 1092.633027] amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x0
[ 1092.633028] amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
[ 1092.633030] amdgpu 0000:04:00.0: amdgpu: RW: 0x0
[ 1102.763212] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring vcn_dec_0 timeout, signaled seq=1959, emitted seq=1961
[ 1102.763582] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process mpv pid 3541 thread mpv:cs0 pid 3557
[ 1102.763922] amdgpu 0000:04:00.0: amdgpu: GPU reset begin!
[ 1103.185650] [drm] Register(0) [mmUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000002
[ 1103.379952] [drm] Register(0) [mmUVD_RBC_RB_RPTR] failed to reach value 0x00000360 != 0x00000320
[ 1103.574070] [drm] Register(0) [mmUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000002
[ 1103.625874] amdgpu 0000:04:00.0: amdgpu: MODE2 reset
[ 1103.635679] amdgpu 0000:04:00.0: amdgpu: GPU reset succeeded, trying to resume
[ 1103.635830] [drm] PCIE GART of 1024M enabled (table at 0x000000F41FC00000).
[ 1103.635868] [drm] PSP is resuming...
[ 1103.658345] [drm] reserve 0xa00000 from 0xf41e000000 for PSP TMR
[ 1103.983344] amdgpu 0000:04:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 1103.995329] amdgpu 0000:04:00.0: amdgpu: RAP: optional rap ta ucode is not available
[ 1103.995333] amdgpu 0000:04:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[ 1103.995337] amdgpu 0000:04:00.0: amdgpu: SMU is resuming...
[ 1103.995720] amdgpu 0000:04:00.0: amdgpu: SMU is resumed successfully!
[ 1103.997516] [drm] DMUB hardware initialized: version=0x0400002E
[ 1104.273770] [drm] kiq ring mec 2 pipe 1 q 0
[ 1104.474009] amdgpu 0000:04:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring vcn_dec_0 test failed (-110)
[ 1104.474165] [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <vcn_v3_0> failed -110
[ 1104.474288] amdgpu 0000:04:00.0: amdgpu: GPU reset(1) failed
[ 1104.474307] amdgpu 0000:04:00.0: amdgpu: GPU reset end with ret = -110
[ 1104.474308] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* GPU Recovery Failed: -110
[ 1104.474764] [drm] Skip scheduling IBs!
[ 1104.474772] [drm] Skip scheduling IBs!
[ 1104.474871] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
[ 1104.976499] [drm] Fence fallback timer expired on ring sdma0
[ 1105.003164] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1105.483142] [drm] Fence fallback timer expired on ring sdma0
[ 1105.500877] [drm] Register(0) [mmUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000002
[ 1105.695172] [drm] Register(0) [mmUVD_RBC_RB_RPTR] failed to reach value 0x00000010 != 0x00000000
[ 1105.889438] [drm] Register(0) [mmUVD_POWER_STATUS] failed to reach value 0x00000001 != 0x00000002
[ 1105.989985] [drm] Fence fallback timer expired on ring sdma0
[ 1106.016718] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1106.496573] [drm] Fence fallback timer expired on ring sdma0
[ 1107.003286] [drm] Fence fallback timer expired on ring sdma0
[ 1107.003286] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1107.510430] [drm] Fence fallback timer expired on ring sdma0
[ 1108.016582] [drm] Fence fallback timer expired on ring sdma0
[ 1108.523356] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1108.523355] [drm] Fence fallback timer expired on ring sdma0
[ 1109.029850] [drm] Fence fallback timer expired on ring sdma0
[ 1109.536568] [drm] Fence fallback timer expired on ring sdma0
[ 1110.043468] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1110.043468] [drm] Fence fallback timer expired on ring sdma0
[ 1110.550189] [drm] Fence fallback timer expired on ring sdma0
[ 1111.056599] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1111.056602] [drm] Fence fallback timer expired on ring sdma0
[ 1111.563377] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1111.563378] [drm] Fence fallback timer expired on ring sdma0
[ 1112.070019] [drm] Fence fallback timer expired on ring sdma0
[ 1112.576578] [drm] Fence fallback timer expired on ring sdma0
[ 1113.083554] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1113.083554] [drm] Fence fallback timer expired on ring sdma0
[ 1113.590079] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1113.590094] [drm] Fence fallback timer expired on ring sdma0
[ 1114.096634] [drm] Fence fallback timer expired on ring sdma0
[ 1114.096637] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1114.603397] [drm] Fence fallback timer expired on ring sdma0
[ 1115.110368] [drm] Fence fallback timer expired on ring sdma0
[ 1115.616573] [drm] Fence fallback timer expired on ring sdma0
[ 1115.616572] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1116.123389] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1116.123391] [drm] Fence fallback timer expired on ring sdma0
[ 1116.630069] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1116.630077] [drm] Fence fallback timer expired on ring sdma0
[ 1117.136539] [drm] Fence fallback timer expired on ring sdma0
[ 1117.643413] [drm] Fence fallback timer expired on ring sdma0
[ 1118.149850] [drm] Fence fallback timer expired on ring sdma0
[ 1118.149850] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1118.656583] [drm] Fence fallback timer expired on ring sdma0
[ 1118.656583] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1119.163421] [drm] Fence fallback timer expired on ring sdma0
[ 1119.670072] [drm] Fence fallback timer expired on ring sdma0
[ 1119.670077] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1120.176542] [drm] Fence fallback timer expired on ring sdma0
[ 1120.683205] [drm] Fence fallback timer expired on ring sdma0
[ 1121.189877] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1121.189881] [drm] Fence fallback timer expired on ring sdma0
[ 1121.696585] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1121.696589] [drm] Fence fallback timer expired on ring sdma0
[ 1122.203612] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1122.203613] [drm] Fence fallback timer expired on ring sdma0
[ 1122.709882] [drm] Fence fallback timer expired on ring sdma0
[ 1123.216749] [drm] Fence fallback timer expired on ring sdma0
[ 1123.723412] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1123.723425] [drm] Fence fallback timer expired on ring sdma0
[ 1124.229885] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1124.229885] [drm] Fence fallback timer expired on ring sdma0
[ 1124.736649] [drm] Fence fallback timer expired on ring sdma0
[ 1125.243575] [drm] Fence fallback timer expired on ring sdma0
[ 1125.243580] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1125.750108] [drm] Fence fallback timer expired on ring sdma0
[ 1126.256672] [drm] Fence fallback timer expired on ring sdma0
[ 1126.763412] [drm] Fence fallback timer expired on ring sdma0
[ 1126.763412] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1127.270237] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1127.270238] [drm] Fence fallback timer expired on ring sdma0
[ 1127.776932] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1127.776934] [drm] Fence fallback timer expired on ring sdma0
[ 1128.283410] [drm] Fence fallback timer expired on ring sdma0
[ 1128.789895] [drm] Fence fallback timer expired on ring sdma0
[ 1129.296626] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1129.296626] [drm] Fence fallback timer expired on ring sdma0
[ 1129.803882] [drm] Fence fallback timer expired on ring sdma0
[ 1130.310251] [drm] Fence fallback timer expired on ring sdma0
[ 1130.816698] [drm] Fence fallback timer expired on ring sdma0
[ 1131.323425] [drm] Fence fallback timer expired on ring sdma0
[ 1131.830087] [drm] Fence fallback timer expired on ring sdma0
[ 1132.336637] [drm] Fence fallback timer expired on ring sdma0
[ 1132.843226] [drm] Fence fallback timer expired on ring sdma0
[ 1133.349989] [drm] Fence fallback timer expired on ring sdma0
[ 1133.856639] [drm] Fence fallback timer expired on ring sdma0
[ 1134.363438] [drm] Fence fallback timer expired on ring sdma0
[ 1134.870154] [drm] Fence fallback timer expired on ring sdma0
[ 1135.376646] [drm] Fence fallback timer expired on ring sdma0
[ 1135.883419] [drm] Fence fallback timer expired on ring sdma0
[ 1136.390126] [drm] Fence fallback timer expired on ring sdma0
[ 1136.896655] [drm] Fence fallback timer expired on ring sdma0
[ 1137.403714] [drm] Fence fallback timer expired on ring sdma0
[ 1137.910092] [drm] Fence fallback timer expired on ring sdma0
[ 1138.416640] [drm] Fence fallback timer expired on ring sdma0
[ 1138.923440] [drm] Fence fallback timer expired on ring sdma0
[ 1139.430087] [drm] Fence fallback timer expired on ring sdma0
[ 1139.936596] [drm] Fence fallback timer expired on ring sdma0
[ 1140.443548] [drm] Fence fallback timer expired on ring sdma0
[ 1140.950114] [drm] Fence fallback timer expired on ring sdma0
[ 1141.456646] [drm] Fence fallback timer expired on ring sdma0
[ 1141.963484] [drm] Fence fallback timer expired on ring sdma0
[ 1142.470395] [drm] Fence fallback timer expired on ring sdma0
[ 1142.976809] [drm] Fence fallback timer expired on ring sdma0
[ 1143.483474] [drm] Fence fallback timer expired on ring sdma0
[ 1143.990091] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1143.990093] [drm] Fence fallback timer expired on ring sdma0
[ 1144.496672] [drm] Fence fallback timer expired on ring sdma0
[ 1144.496673] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1145.003901] [drm] Fence fallback timer expired on ring sdma0
[ 1145.510122] [drm] Fence fallback timer expired on ring sdma0
[ 1146.016669] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1146.016668] [drm] Fence fallback timer expired on ring sdma0
[ 1146.523289] [drm] Fence fallback timer expired on ring sdma0
[ 1147.030293] [drm] Fence fallback timer expired on ring sdma0
[ 1147.537884] [drm] Fence fallback timer expired on ring sdma0
[ 1148.043290] [drm] Fence fallback timer expired on ring sdma0
[ 1148.549947] [drm] Fence fallback timer expired on ring sdma0
[ 1149.056603] [drm] Fence fallback timer expired on ring sdma0
[ 1149.563291] [drm] Fence fallback timer expired on ring sdma0
[ 1150.070069] [drm] Fence fallback timer expired on ring sdma0
[ 1150.576644] [drm] Fence fallback timer expired on ring sdma0
[ 1151.083277] [drm] Fence fallback timer expired on ring sdma0
[ 1151.590053] [drm] Fence fallback timer expired on ring sdma0
[ 1152.096608] [drm] Fence fallback timer expired on ring sdma0
[ 1152.603260] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1152.603278] [drm] Fence fallback timer expired on ring sdma0
[ 1153.110071] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1153.110074] [drm] Fence fallback timer expired on ring sdma0
[ 1153.616617] [drm] Fence fallback timer expired on ring sdma0
[ 1154.123299] [drm] Fence fallback timer expired on ring sdma0
[ 1154.123309] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1154.630088] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1154.630090] [drm] Fence fallback timer expired on ring sdma0
[ 1155.136688] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1155.136688] [drm] Fence fallback timer expired on ring sdma0
[ 1155.643316] [drm] Fence fallback timer expired on ring sdma0
[ 1156.150171] [drm] Fence fallback timer expired on ring sdma0
[ 1156.656697] [drm] Fence fallback timer expired on ring sdma0
[ 1157.163294] [drm] Fence fallback timer expired on ring sdma0
[ 1157.670079] [drm] Fence fallback timer expired on ring sdma0
[ 1158.176715] [drm] Fence fallback timer expired on ring sdma0
[ 1158.683326] [drm] Fence fallback timer expired on ring sdma0
[ 1159.190087] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1159.190094] [drm] Fence fallback timer expired on ring sdma0
[ 1159.696632] [drm] Fence fallback timer expired on ring sdma0
[ 1160.203312] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1160.203589] [drm] Fence fallback timer expired on ring sdma0
[ 1160.709959] [drm] Fence fallback timer expired on ring sdma0
[ 1161.216668] [drm] Fence fallback timer expired on ring sdma0
[ 1161.723302] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1161.723700] [drm] Fence fallback timer expired on ring sdma0
[ 1162.230159] [drm] Fence fallback timer expired on ring sdma0
[ 1162.736704] [drm] Fence fallback timer expired on ring sdma0
[ 1163.243334] [drm] Fence fallback timer expired on ring sdma0
[ 1163.749974] [drm] Fence fallback timer expired on ring gfx_0.0.0
[ 1163.749992] [drm] Fence fallback timer expired on ring sdma0
[ 1164.256777] [drm] Fence fallback timer expired on ring sdma0
[ 1164.283778] [drm] Fence fallback timer expired on ring gfx_0.0.0
Edited by MK73DS