Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: hevc_qsv: Error during QSV decoding.: GPU Hang (-21) #1889

Closed
riaqn opened this issue Dec 7, 2024 · 5 comments
Closed

[Bug]: hevc_qsv: Error during QSV decoding.: GPU Hang (-21) #1889

riaqn opened this issue Dec 7, 2024 · 5 comments
Assignees

Comments

@riaqn
Copy link

riaqn commented Dec 7, 2024

Which component impacted?

Decode

Is it regression? Good in old configuration?

None

What happened?

ffmpeg -hwaccel qsv -c:v hevc_qsv -load_plugin hevc_hw -i /mnt/Downloads/movies/SomeMovie.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS/SomeMovie.BluRay.2160p.x
265.10bit.HDR.2Audio.mUHD-FRDS.mkv -vf hwdownload,format=p010 -pix_fmt p010le output.yuv -y -loglevel debug

prints:

ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 14.2.1 (GCC) 20240910
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libdvdnav --enable-libdvdread --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan
  libavutil      59. 39.100 / 59. 39.100
  libavcodec     61. 19.100 / 61. 19.100
  libavformat    61.  7.100 / 61.  7.100
  libavdevice    61.  3.100 / 61.  3.100
  libavfilter    10.  4.100 / 10.  4.100
  libswscale      8.  3.100 /  8.  3.100
  libswresample   5.  3.100 /  5.  3.100
  libpostproc    58.  3.100 / 58.  3.100
Splitting the commandline.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'qsv'.
Reading option '-c:v' ... matched as option 'c' (select encoder/decoder ('copy' to copy stream without reencoding)) with argument 'hevc_qsv'.
Reading option '-load_plugin' ... matched as AVOption 'load_plugin' with argument 'hevc_hw'.
Reading option '-i' ... matched as input url with argument '/mnt/Downloads/movies/007:大破天幕杀机.Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS/Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS.mkv'.
Reading option '-vf' ... matched as option 'vf' (alias for -filter:v (apply filters to video streams)) with argument 'hwdownload,format=p010'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'p010le'.
Reading option 'output.yuv' ... matched as output url.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url /mnt/Downloads/movies/007:大破天幕杀机.Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS/Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS.mkv.
Applying option hwaccel (use HW accelerated decoding) with argument qsv.
Applying option c:v (select encoder/decoder ('copy' to copy stream without reencoding)) with argument hevc_qsv.
Successfully parsed a group of options.
Opening an input file: /mnt/Downloads/movies/007:大破天幕杀机.Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS/Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS.mkv.
[AVFormatContext @ 0x640afa738bc0] Opening '/mnt/Downloads/movies/007:大破天幕杀机.Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS/Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS.mkv' for reading
[file @ 0x640afa739280] Setting default whitelist 'file,crypto,data'
[matroska,webm @ 0x640afa738bc0] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
st:3 removing common factor 1000000 from timebase
st:4 removing common factor 1000000 from timebase
st:5 removing common factor 1000000 from timebase
[matroska,webm @ 0x640afa738bc0] Before avformat_find_stream_info() pos: 7504 bytes read:35090 seeks:2 nb_streams:6
[hevc @ 0x640afa74afc0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x640afa74afc0] Decoding VPS
[hevc @ 0x640afa74afc0] Main 10 profile bitstream
[hevc @ 0x640afa74afc0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x640afa74afc0] Decoding SPS
[hevc @ 0x640afa74afc0] Main 10 profile bitstream
[hevc @ 0x640afa74afc0] Decoding VUI
[hevc @ 0x640afa74afc0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x640afa74afc0] Decoding PPS
Transform tree:
    mdct_inv_float_avx2 - type: mdct_float, len: 32, factors[2]: [2, any], flags: [aligned, out_of_place, inv_only]
        fft16_asm_float_fma3 - type: fft_float, len: 16, factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call]
Transform tree:
    mdct_inv_float_avx2 - type: mdct_float, len: 64, factors[2]: [2, any], flags: [aligned, out_of_place, inv_only]
        fft32_asm_float_fma3 - type: fft_float, len: 32, factor: 2, flags: [aligned, inplace, out_of_place, preshuf, asm_call]
[matroska,webm @ 0x640afa738bc0] first_dts 0 not matching first dts NOPTS (pts 0, duration 41) in the queue
[matroska,webm @ 0x640afa738bc0] Non-increasing DTS in stream 2: packet 87 with DTS 687, packet 88 with DTS 687
(repeat)
[matroska,webm @ 0x640afa738bc0] Non-increasing DTS in stream 2: packet 5265 with DTS 5002, packet 5266 with DTS 5002
[matroska,webm @ 0x640afa738bc0] max_analyze_duration 5000000 reached at 5005000 microseconds st:0
[matroska,webm @ 0x640afa738bc0] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x640afa738bc0] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x640afa738bc0] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x640afa738bc0] After avformat_find_stream_info() pos: 3578871 bytes read:3622050 seeks:2 frames:5859
[vist#0:0/hevc @ 0x640afa7b0900] WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
Input #0, matroska,webm, from '/mnt/Downloads/movies/007:大破天幕杀机.Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS/Skyfall.2012.BluRay.2160p.x265.10bit.HDR.2Audio.mUHD-FRDS.mkv':
  Metadata:
    encoder         : libebml v1.3.6 + libmatroska v1.4.9
    creation_time   : 2020-01-28T00:55:52.000000Z
  Duration: 02:23:10.25, start: 0.000000, bitrate: 24483 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 269.144000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 269.144000, end 453.119000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 453.119000, end 768.059000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 768.059000, end 1008.341000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1008.341000, end 1298.005000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1298.005000, end 1500.958000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1500.958000, end 1765.889000
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1765.889000, end 2106.813000
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2106.813000, end 2308.431000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2308.431000, end 2485.108000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2485.108000, end 2783.572000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 2783.572000, end 3049.296000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3049.296000, end 3293.957000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3293.957000, end 3579.409000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 3579.409000, end 3914.911000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 3914.911000, end 4217.338000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 4217.338000, end 4630.417000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 4630.417000, end 4855.726000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 4855.726000, end 5171.041000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 5171.041000, end 5510.422000
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 5510.422000, end 5825.194000
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 5825.194000, end 6049.752000
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 6049.752000, end 6226.637000
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 6226.637000, end 6355.391000
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 6355.391000, end 6731.266000
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 6731.266000, end 6886.463000
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 6886.463000, end 7093.712000
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 7093.712000, end 7369.779000
      Metadata:
        title           : Chapter 28
    Chapter #0:28: start 7369.779000, end 7779.313000
      Metadata:
        title           : Chapter 29
    Chapter #0:29: start 7779.313000, end 8090.291000
      Metadata:
        title           : Chapter 30
    Chapter #0:30: start 8090.291000, end 8267.092000
      Metadata:
        title           : Chapter 31
    Chapter #0:31: start 8267.092000, end 8590.249000
      Metadata:
        title           : Chapter 32
  Stream #0:0, 120, 1/1000: Video: hevc (Main 10), 1 reference frame, yuv420p10le(tv, bt2020nc/bt2020/smpte2084, left), 3840x1604, 0/1, SAR 1:1 DAR 960:401, 23.98 fps, 23.98 tbr, 1k tbn (default)
      Metadata:
        BPS-eng         : 18970702
        DURATION-eng    : 02:23:10.249000000
        NUMBER_OF_FRAMES-eng: 205960
        NUMBER_OF_BYTES-eng: 20370382017
        _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2020-01-28 00:55:52
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng), 470, 1/1000: Audio: dts (dca) (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
      Metadata:
        title           : 英语
        BPS-eng         : 3830309
        DURATION-eng    : 02:23:09.419000000
        NUMBER_OF_FRAMES-eng: 805258
        NUMBER_OF_BYTES-eng: 4112517024
        _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2020-01-28 00:55:52
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(chi), 5269, 1/1000: Audio: truehd, 48000 Hz, 5.1(side), s32 (24 bit)
      Metadata:
        title           : 中影国语
        BPS-eng         : 1590580
        DURATION-eng    : 02:23:09.124000000
        NUMBER_OF_FRAMES-eng: 10306932
        NUMBER_OF_BYTES-eng: 1707712122
        _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2020-01-28 00:55:52
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng), 0, 1/1000: Subtitle: hdmv_pgs_subtitle (pgssub) (default)
      Metadata:
        title           : 英文SDH
        BPS-eng         : 25395
        DURATION-eng    : 02:16:49.869000000
        NUMBER_OF_FRAMES-eng: 2696
        NUMBER_OF_BYTES-eng: 26061834
        _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2020-01-28 00:55:52
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(chi), 0, 1/1000: Subtitle: hdmv_pgs_subtitle (pgssub)
      Metadata:
        title           : 台繁
        BPS-eng         : 15031
        DURATION-eng    : 02:21:34.403000000
        NUMBER_OF_FRAMES-eng: 2116
        NUMBER_OF_BYTES-eng: 15960207
        _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2020-01-28 00:55:52
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(chi), 0, 1/1000: Subtitle: hdmv_pgs_subtitle (pgssub)
      Metadata:
        title           : 港繁
        BPS-eng         : 18397
        DURATION-eng    : 02:21:40.993000000
        NUMBER_OF_FRAMES-eng: 2106
        NUMBER_OF_BYTES-eng: 19549576
        _STATISTICS_WRITING_APP-eng: mkvmerge v24.0.0 ('Beyond The Pale') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2020-01-28 00:55:52
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Successfully opened the file.
Parsing a group of options: output url output.yuv.
Applying option vf (alias for -filter:v (apply filters to video streams)) with argument hwdownload,format=p010.
Applying option pix_fmt (set pixel format) with argument p010le.
Successfully parsed a group of options.
Opening an output file: output.yuv.
[out#0/rawvideo @ 0x640afa750cc0] No explicit maps, mapping streams automatically...
[vost#0:0/rawvideo @ 0x640afa7a5ec0] Created video stream from input stream 0:0
[AVFilterGraph @ 0x640afa769a00] Setting 'pix_fmts' to value 'p010'
[AVHWDeviceContext @ 0x640afa771c80] Trying to use DRM render node for device 0, with matching vendor id (0x8086).
[AVHWDeviceContext @ 0x640afa771c80] libva: VA-API version 1.22.0
[AVHWDeviceContext @ 0x640afa771c80] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x640afa771c80] libva: Trying to open /usr/lib/dri/iHD_drv_video.so
[AVHWDeviceContext @ 0x640afa771c80] libva: Found init function __vaDriverInit_1_22
[AVHWDeviceContext @ 0x640afa771c80] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x640afa771c80] Initialised VAAPI connection: version 1.22
[AVHWDeviceContext @ 0x640afa771c80] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30335241 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30334241 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30335258 -> x2rgb10le.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30334258 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x36314752 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x56555941 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x56555958 -> vuyx.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x3132564e -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x50313134 -> yuv411p.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x48323234 -> yuv422p.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x56323234 -> yuv440p.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x33434d49 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x32313050 -> p012le.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30313259 -> y210le.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x32313259 -> y212le.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x36313259 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x30313459 -> xv30le.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x32313459 -> xv36le.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x36313459 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x50424752 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] Format 0x50524742 -> unknown.
[AVHWDeviceContext @ 0x640afa771c80] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.4.3 ().
[AVHWDeviceContext @ 0x640afa771c80] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x640afa7c7ac0] Use Intel(R) oneVPL to create MFX session, API version is 2.13, the required implementation version is 1.3
[AVHWDeviceContext @ 0x640afa7c7ac0] Initialize MFX session: implementation version is 2.13
[file @ 0x640afb362b40] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (hevc_qsv) -> rawvideo (native))
[vost#0:0/rawvideo @ 0x640afa7a5ec0] Starting thread...
[vf#0:0 @ 0x640afa7dadc0] Starting thread...
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Starting thread...
[in#0/matroska,webm @ 0x640afa738900] Starting thread...
Press [q] to stop, [?] for help
[hevc_qsv @ 0x640afa7c7180] Format qsv chosen by get_format().
[AVHWDeviceContext @ 0x72f124003c40] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30335241 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30334241 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30335258 -> x2rgb10le.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30334258 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x36314752 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x56555941 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x56555958 -> vuyx.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x3132564e -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x50313134 -> yuv411p.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x48323234 -> yuv422p.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x56323234 -> yuv440p.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x33434d49 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x32313050 -> p012le.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30313259 -> y210le.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x32313259 -> y212le.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x36313259 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x30313459 -> xv30le.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x32313459 -> xv36le.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x36313459 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x50424752 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] Format 0x50524742 -> unknown.
[AVHWDeviceContext @ 0x72f124003c40] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.4.3 ().
[AVHWDeviceContext @ 0x72f124003c40] Driver not found in known nonstandard list, using standard behaviour.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0.
[AVHWFramesContext @ 0x72f124003d80] Direct mapping possible.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x1.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x2.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x3.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x4.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x5.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x6.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x7.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x8.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x9.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0xa.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0xb.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0xc.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0xd.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0xe.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0xf.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x10.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x11.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x12.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x13.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x14.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x15.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x16.
[AVHWFramesContext @ 0x72f124003d80] Created surface 0x17.
[hevc_qsv @ 0x640afa7c7180] Decoder: output is video memory surface
[hevc_qsv @ 0x640afa7c7180] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[hevc_qsv @ 0x640afa7c7180] Format qsv chosen by get_format().
[AVHWDeviceContext @ 0x72f124007a00] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30335241 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30334241 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30335258 -> x2rgb10le.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30334258 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x36314752 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x56555941 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x56555958 -> vuyx.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30303859 -> gray.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x3132564e -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x50313134 -> yuv411p.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x48323234 -> yuv422p.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x56323234 -> yuv440p.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x50343434 -> yuv444p.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x33434d49 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x32313050 -> p012le.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30313259 -> y210le.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x32313259 -> y212le.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x36313259 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x30313459 -> xv30le.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x32313459 -> xv36le.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x36313459 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x50424752 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] Format 0x50524742 -> unknown.
[AVHWDeviceContext @ 0x72f124007a00] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.4.3 ().
[AVHWDeviceContext @ 0x72f124007a00] Driver not found in known nonstandard list, using standard behaviour.
[AVHWFramesContext @ 0x72f124034300] Created surface 0x18.
[AVHWFramesContext @ 0x72f124034300] Direct mapping possible.
[hevc_qsv @ 0x640afa7c7180] Decoder: output is video memory surface
[hevc_qsv @ 0x640afa7c7180] Use Intel(R) oneVPL to create MFX session with the specified MFX loader
[hevc_qsv @ 0x640afa7c7180] Dynamic frame pools, no frame is pre-allocated
[AVHWFramesContext @ 0x72f124034300] Created surface 0x19.
[AVHWFramesContext @ 0x72f124034300] Created surface 0x1a.
[AVHWFramesContext @ 0x72f124034300] Created surface 0x1b.
[AVHWFramesContext @ 0x72f124034300] Created surface 0x1c.
[AVHWFramesContext @ 0x72f124034300] Created surface 0x1d.
[AVFilterGraph @ 0x72f138001040] Setting 'pix_fmts' to value 'p010'
detected 20 logical cores
[AVHWFramesContext @ 0x72f124034300] Created surface 0x1e.
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[graph -1 input from stream 0:0 @ 0x72f138003d80] Setting 'video_size' to value '3840x1604'
[graph -1 input from stream 0:0 @ 0x72f138003d80] Setting 'pix_fmt' to value '114'
[graph -1 input from stream 0:0 @ 0x72f138003d80] Setting 'time_base' to value '1/1000'
[graph -1 input from stream 0:0 @ 0x72f138003d80] Setting 'pixel_aspect' to value '1/1'
[graph -1 input from stream 0:0 @ 0x72f138003d80] Setting 'colorspace' to value '9'
[graph -1 input from stream 0:0 @ 0x72f138003d80] Setting 'range' to value '1'
[graph -1 input from stream 0:0 @ 0x72f138003d80] Setting 'frame_rate' to value '24000/1001'
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[graph -1 input from stream 0:0 @ 0x72f138003d80] w:3840 h:1604 pixfmt:qsv tb:1/1000 fr:24000/1001 sar:1/1 csp:bt2020nc range:tv
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[format @ 0x72f138004a00] Setting 'pix_fmts' to value 'p010le'
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
[hevc_qsv @ 0x640afa7c7180] Error during QSV decoding.: GPU Hang (-21)
[vist#0:0/hevc @ 0x640afa7b0900] [dec:hevc_qsv @ 0x640afa7fba00] Error submitting packet to decoder: Input/output error
(repeat)

What's the usage scenario when you are seeing the problem?

Transcode for media delivery

What impacted?

No response

Debug Information

libva: 2.22.0
libva-utils: 2.22.0
gmmlib: 22.5.2
media-driver: 24.4.3

03:00.0 VGA compatible controller [0300]: Intel Corporation DG1 [Iris Xe Graphics] [8086:4908] (rev 01) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device [1043:8000]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin ? routed to IRQ 77
        NUMA node: 0
        IOMMU group: 50
        Region 0: Memory at f4000000 (64-bit, non-prefetchable) [size=16M]
        Region 2: Memory at 383e00000000 (64-bit, prefetchable) [size=4G]
        Expansion ROM at f5000000 [disabled] [size=2M]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express (v2) Endpoint, IntMsgNum 0
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0W TEE-IO-
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd- ExtTag+ PhantFunc- AuxPwr- NoSnoop+ FLReset-
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend+
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1
                        TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Range B, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp+ 10BitTagReq+ OBFF Not Supported, ExtFmt+ EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                         AtomicOpsCtl: ReqEn-
                         IDOReq- IDOCompl- LTR- EmergencyPowerReductionReq-
                         10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
                LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1-
                         EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported
        Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit+
                Address: 00000000fee008b8  Data: 0000
                Masking: 00000000  Pending: 00000000
        Capabilities: [d0] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
                Status: D3 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [100 v1] Latency Tolerance Reporting
                Max snoop latency: 0ns
                Max no snoop latency: 0ns
        Kernel driver in use: xe
        Kernel modules: i915, xe

vainfo:

root@bedroom ~# vainfo
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
error: can't connect to X server!
Trying display: drm
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.4.3 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain               : VAEntrypointEncSliceLP
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointEncSliceLP
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSliceLP
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSliceLP
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSliceLP
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSliceLP
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain12             : VAEntrypointEncSlice
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointEncSlice
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain422_12         : VAEntrypointEncSlice
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileAV1Profile0            : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP

dmesg:

(driver loading)
Dec 07 07:03:57 bedroom kernel: Setting dangerous option force_probe - tainting kernel
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Found DG1 (device ID 4908) display version 12.00 stepping B0
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Using GuC firmware from i915/dg1_guc_70.bin version 70.29.2
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Using HuC firmware from i915/dg1_huc.bin version 7.9.3
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
Dec 07 07:03:57 bedroom kernel: vfio-pci 0000:07:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=io+mem:owns=none
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] VISIBLE VRAM: 0x0000383e00000000, 0x0000000100000000
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] VRAM[0, 0]: Actual physical size 0x0000000100000000, usable size exclude stolen 0x00000000fb800000, CPU accessible size 0x00000000fb800000
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] VRAM[0, 0]: DPA range: [0x0000000000000000-100000000], io range: [0x0000383e00000000-383efb800000]
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Total VRAM: 0x0000383e00000000, 0x0000000100000000
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Available VRAM: 0x0000383e00000000, 0x00000000fb800000
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Finished loading DMC firmware i915/dg1_dmc_ver2_02.bin (v2.2)
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vcs1 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vcs3 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vcs4 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vcs5 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vcs6 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vcs7 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vecs1 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vecs2 fused off
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] vecs3 fused off
Dec 07 07:03:57 bedroom kernel: [drm] Initialized xe 1.1.0 for 0000:03:00.0 on minor 0
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Cannot find any crtc or sizes
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] *ERROR* PCODE Mailbox failed: 4 Illegal Subcommand
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] *ERROR* PCODE Mailbox failed: 4 Illegal Subcommand
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] *ERROR* PCODE Mailbox failed: 4 Illegal Subcommand
Dec 07 07:03:57 bedroom kernel: xe 0000:03:00.0: [drm] Cannot find any crtc or sizes
(start to hang)
Dec 07 07:06:04 bedroom kernel: xe 0000:03:00.0: [drm] GT0: Engine reset: engine_class=vcs, logical_mask: 0x3, guc_id=5
Dec 07 07:06:04 bedroom kernel: xe 0000:03:00.0: [drm] GT0: Timedout job: seqno=4294967169, lrc_seqno=4294967169, guc_id=5, flags=0x0 in ffmpeg [1676]
Dec 07 07:06:04 bedroom kernel: xe 0000:03:00.0: [drm] Xe device coredump has been created
Dec 07 07:06:04 bedroom kernel: xe 0000:03:00.0: [drm] Check your /sys/class/drm/card0/device/devcoredump/data

The dump /sys/class/drm/card0/device/devcoredump/data:

**** Xe Device Coredump ****
kernel: 6.12.1-arch1-1
module: xe
Snapshot time: 1733555164.168474408
Uptime: 133.873992566
Process: ffmpeg
PCI ID: 0x4908
PCI revision: 0x01
GT id: 0
        Type: main
        IP ver: 0.0.0
        CS reference clock: 19200000

**** GuC CT ****
H2G CTB (all sizes in DW):
        size: 1024
        resv_space: 0
        head: 1018
        tail: 473
        space: 544
        broken: 0
        head (memory): 473
        tail (memory): 473
        status (memory): 0x0

G2H CTB (all sizes in DW):
        size: 32768
        resv_space: 16384
        head: 499
        tail: 0
        space: 16383
        broken: 0
        head (memory): 499
        tail (memory): 499
        status (memory): 0x0
        g2h outstanding: 0

GuC ID: 5
        Name: vcs5
        Class: 1
        Logical mask: 0x3
        Width: 1
        Ref: 7
        Timeout: 1500 (ms)
        Timeslice: 1000 (us)
        Preempt timeout: 640000 (us)
        HW Context Desc: 0x00506000
        HW Indirect Ring State: 0x00000000
        LRC Head: (memory) 0
        LRC Tail: (internal) 632, (memory) 632
        Start seqno: (memory) -127
        Seqno: (memory) -128
        Timestamp: 0x00000000
        Job Timestamp: 0x00000000
        [HWSP].length: 0x1000
        [HWSP].data: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzs8W+Lzs8W+Mzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
        [HWCTX].length: 0x1000
        [HWCTX].data: z&I8pc!#u&.s8N')!#ttqz!#ttm!!!(F!#ttu!)Od<!#tu$!!"\R!#u#Qz!#u#)!7g!1!#u"Nz!#u$Tz!#u$Xz!#u$\z!#u#iz!#u'Izzzzzz&I8p[!#u*>z!#u'!z!#u&rz!#u&nz!#u&jz!#u&fz!#u&bz!#u&^z!#u&ZqO%lszzzzzzzzzzzzzzzzzzzzzzzzzzzzz&I8qX!#u/uz!#u/uz!#u/uz!#u/uz!#u/uz!#u/uz!#ttes8N'!!#u!/rr2ru!#u!Ss8N'!!#u#a!!!!"!#u#e!#/O8!#u)C1latI!#u#Yz!#u#9!7g!-!#u#=z!#u#A!!!!"!#u+]z!#u1Cz!#u1Gz!#u1Kz!#u1Oz!#u1Sz!#u1Wz!#u1[z!#u1_z!#u1cz!#u1gz!#u1kz!#u1oz!#u1sz!#u2"z!#u2&z!#u2*z!#u2.z!#u22z!#u26z!#u2:z!#u2>z!#u2Bz!#u2Fz!#u2Jz!#u2Nz!#u2Rz!#u2Vz!#u2Zz!#u2^z!#u2bz!#u2fz!#u2jz!#tuP!e:7N%Y+NZzz&HWLS!!#D0z!!#D4z!!#D8z!!#D<z!!#D@z!!#DDz!!#=sz!!#>"zzzzzzz"TSN'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
        Schedule State: 0x441
        Flags: 0x0
        Job: seqno=-126, fence=0, finished=0
        Job: seqno=-125, fence=0, finished=0
        Job: seqno=-124, fence=0, finished=0
        Job: seqno=-123, fence=0, finished=0
        Job: seqno=-122, fence=0, finished=0

**** Job ****
batch_addr[0]: 0x000001ffffff0000

**** HW Engines ****
vcs0 (physical), logical instance=0
        Forcewake: domain 0x8, ref 1
        HWSTAM: 0x00000000
        RING_HWS_PGA: 0x00e60000
        RING_EXECLIST_STATUS: 0x0000000000000001
        RING_EXECLIST_SQ_CONTENTS: 0x0000000000000000
        RING_START: 0x0000000000000000
        RING_HEAD: 0x00000000
        RING_TAIL: 0x00000000
        RING_CTL: 0x00000000
        RING_MI_MODE: 0x00000200
        RING_MODE: 0x00000000
        RING_IMR: 0x00000000
        RING_ESR: 0x00000000
        RING_EMR: 0xffffffff
        RING_EIR: 0x00000000
        ACTHD: 0x0000000000000000
        BBADDR: 0x0000000000000000
        DMA_FADDR: 0x0000000000000000
        INDIRECT_RING_STATE: 0x00000000
        IPEHR: 0x00000000
        RING_INSTDONE: 0x7ffffffe

vcs2 (physical), logical instance=1
        Forcewake: domain 0x20, ref 1
        HWSTAM: 0xffffffff
        RING_HWS_PGA: 0x00e61000
        RING_EXECLIST_STATUS: 0x0000000000000001
        RING_EXECLIST_SQ_CONTENTS: 0x0000000000000000
        RING_START: 0x0000000000000000
        RING_HEAD: 0x00000000
        RING_TAIL: 0x00000000
        RING_CTL: 0x00000000
        RING_MI_MODE: 0x00000200
        RING_MODE: 0x00000008
        RING_IMR: 0x00000000
        RING_ESR: 0x00000000
        RING_EMR: 0xffffffff
        RING_EIR: 0x00000000
        ACTHD: 0x0000000000000000
        BBADDR: 0x0000000000000000
        DMA_FADDR: 0x0000000000000000
        INDIRECT_RING_STATE: 0x00000000
        IPEHR: 0x00000000
        RING_INSTDONE: 0x7ffffffe


**** VM state ****
[0].error: -19

Do you want to contribute a patch to fix the issue?

Yes, I'm glad to submit a patch to fix it

@riaqn
Copy link
Author

riaqn commented Dec 7, 2024

I want to note that:

  • decoding h264 is fine
  • encoding h264 is fine
  • encoding hevc is also fine.

It's only decoding hevc that's problematic.

@Jexu
Copy link
Contributor

Jexu commented Dec 16, 2024

Looks that you are installing XE KMD on DG1 device, I think XE KMD is not our production support on dg1, pls try it again with I915 KMD.

@riaqn
Copy link
Author

riaqn commented Dec 16, 2024

@Jexu Actually I switched to XE because I915 is not working at all:

[vist#0:0/h264 @ 0x5c03d8c3a540] [dec:h264_qsv @ 0x5c03d8cba100] Error submitting packet to decoder: Input/output error

and I switched to XE as suggested by #1415 (comment) . It was also suggested in that thread that DG1 is not supported by i915.

@nyanmisaka
Copy link
Contributor

A kernel driver regression about power gating caused this. Revert torvalds/linux@38e8c41

See also https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3857

@riaqn
Copy link
Author

riaqn commented Dec 16, 2024

@nyanmisaka thank you for taking the efforts to pinpoint the issue! I couldn't have fixed it otherwise.

After downgrading linux kernel to 6.10.10, I confirm that with xe I can decode HEVC with QSV using ffmpeg.

Since this issue is unrelated to media-driver, I'm closing the issue.

@riaqn riaqn closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants