Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
2971 Discussions

7 sec stall + GPU HANG when decoding an HEVC stream with missing references.

kmawassi
Beginner
45 Views

In Linux, when decoding a HEVC stream with missing references, MFXVideoDECODE_DecodeFrameAsync eventually fails with MFX_ERR_GPU_HANG, after having previously stalled for ~7 seconds with (MFX_WRN_DEVICE_BUSY). The media-driver call vaSyncSurface is responsible for this abnormal delay.

CPU model: 12th Gen Intel(R) Core(TM) i5-1235U (also reproduced on a i7 TigerLake Cpu/Gpu)
OS: Ubuntu 22.04 LTS
Kernel: 5.18.0-051800-generic
OneVPL runtime 2022Q3: 22.5.4

i915 kernel messages:
[1298307.045332] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out
[1298307.045393] i915 0000:00:02.0: [drm] sample_decode[141421] context reset due to GPU hang
[1298307.303391] i915 0000:00:02.0: [drm] GPU HANG: ecode 12:4:28fffffd, in sample_decode [141421]


Repro command line using the sample_decode app:
sample_decode h265 -i ./missing_refs.h265 -o /dev/null

0 Kudos
0 Replies
Reply