You are not logged in.
Hello,
I’m trying to troubleshoot an issue where H.264 video encoding consistently causes my AMD GPU to hang and reset. The problem appears to be limited ONLY to H.264 encoding. H.264 decoding works normally. HEVC encoding and decoding work normally. Vulkan applications work normally.
Underclocking the GPU did not make any difference.
The encoding is being performed with FFmpeg. In 5-30 seconds after starting an H.264 encode, the GPU hangs and the kernel resets it. These are the relevant log messages:
Sep 18 01:28:04 arch kernel: amdgpu 0000:01:00.0: ring vce0 timeout, signaled seq=63, emitted seq=64
Sep 18 01:28:04 arch kernel: amdgpu 0000:01:00.0: Process ffmpeg pid 4553 thread ffmpeg:cs0 pid 4554
Sep 18 01:28:04 arch kernel: amdgpu 0000:01:00.0: GPU reset begin!. Source: 1
Sep 18 01:28:08 arch kernel: amdgpu 0000:01:00.0: failed to suspend display audio
Sep 18 01:28:08 arch kernel: amdgpu 0000:01:00.0: suspend of IP block <vce_v3_0> failed -22
Sep 18 01:28:08 arch kernel: amdgpu 0000:01:00.0: GPU pre asic reset failed with err, -22 for drm dev, 0000:01:00.0
Sep 18 01:28:08 arch kernel: amdgpu 0000:01:00.0: BACO reset
Sep 18 01:28:08 arch kernel: amdgpu 0000:01:00.0: GPU reset succeeded, trying to resume
Sep 18 01:28:08 arch kernel: amdgpu 0000:01:00.0: VRAM is lost due to GPU reset!The "ring vce0 timeout" message seems to indicate that the VCE encoding engine is timing out. Since other GPU functions work correctly, I'm wondering whether this could be related to the VCE firmware, the kernel/amdgpu driver, FFmpeg, or an incompatibility with this particular GPU.
What would be the best way to diagnose this further?
uname -r:
7.2.6-zen2-1-zenpacman -Qi ffmpeg | grep Version:
Version : 2:9.0.1-4pacman -Qi mesa | grep Version:
Version : 1:26.2.2-1sudo lshw -C display:
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:01:00.0
logical name: /dev/fb0
version: ef
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=amdgpu latency=0 resolution=1920,1080
resources: irq:57 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:f000(size=256) memory:fcf00000-fcf3ffff memory:fcf40000-fcf5ffffAny suggestions would be appreciated.
Offline
I don't have any problems encoding in H.264 (RX 5700XT).
There have been some issues with the AMD firmware lately; try updating the system and updating GRUB (# grub-mkconfig -o /boot/grub/grub.cfg)
Offline
I have the same problem rx 580. it can happen in 5 min, it can happen in 2 hours. HEVC doesn't appear to have the same issue.
Offline