Bug#1023200: va-driver-all: buggy or unstable behavior on older i965 GPU
On 2022-10-31 15:04:10 +0100, Eduard Bloch wrote:
> Package: va-driver-all
> Version: 2.16.0-1
> Severity: important
>
> Dear Maintainer,
>
> Please dispatch this ticket as you see fit. I report this against va-driver-all
> since it seems to have indirectly lead to the trouble, and there is no README
> in va-driver-all which would explain the rules of the game.
>
> My system has been working fine with Sid until a couple of months ago. IIRC,
> last year I checked the vainfo config and eventually enabled it even in Firefox
> (Chrome was fine out of the box).
>
> However, now the CPU consumption in Chrome is back to high in Video playback,
> feels like the GPU acceleration started failing silently. Investigation on the
> issue has caused trobule, see below. And setting popular env. vars like
> MESA_LOADER_DRIVER_OVERRIDE=i965 did not help.
>
> Hardware:
>
> Lenovo X250 (older revision)
>
> 00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
> 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
> 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
> 00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
> 00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
> 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-LM (rev 03)
> 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
> 00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #6 (rev e3)
> 00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
> 00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
> 00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
> 00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
> 00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
> 00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03)
> 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
> 03:00.0 Network controller: Intel Corporation Wireless 7265 (rev 99)
>
> Situation 1:
>
> va-driver-all is installed (that installs intel-media-va-driver; see below for intel-media-va-driver-nonfree effects).
>
> Result:
>
> on some H264 videos, VLC is not accelerated, framerate is terrible, like 2-5 fps.
> On bigger ones, VLC simply crashes. Where? Here:
>
> Module libudev.so.1 from deb systemd-252~rc3-2.amd64
> Module libsystemd.so.0 from deb systemd-252~rc3-2.amd64
> Stack trace of thread 3269:
> #0 0x00007f4eca507730 _Z21mos_bo_wait_renderingP12mos_linux_bo (iHD_drv_video.so + 0x107730)
> #1 0x00007f4eca718db9 _ZN14DdiMediaDecode12CreateBufferE12VABufferTypejjPvPj (iHD_drv_video.so + 0x318db9)
> #2 0x00007f4eca6fe0ac _Z21DdiMedia_CreateBufferP15VADriverContextj12VABufferTypejjPvPj (iHD_drv_video.so + 0x2fe0ac)
> #3 0x00007f4f38c9e870 vaCreateBuffer (libva.so.2 + 0x6870)
> #4 0x00007f4f0060ab85 n/a (libvdpau_va_gl.so.1 + 0xab85)
> #5 0x00007f4f0060b2ac n/a (libvdpau_va_gl.so.1 + 0xb2ac)
> #6 0x00007f4f0060b879 n/a (libvdpau_va_gl.so.1 + 0xb879)
> #7 0x00007f4f1f200f78 n/a (libavcodec.so.59 + 0x800f78)
> #8 0x00007f4f1f2028b4 n/a (libavcodec.so.59 + 0x8028b4)
> #9 0x00007f4f1ed8a28c n/a (libavcodec.so.59 + 0x38a28c)
> #10 0x00007f4f1ed9ff3e n/a (libavcodec.so.59 + 0x39ff3e)
> #11 0x00007f4f1f06756b n/a (libavcodec.so.59 + 0x66756b)
> #12 0x00007f4f7628784a start_thread (libc.so.6 + 0x8784a)
> #13 0x00007f4f7630b2cc __clone3 (libc.so.6 + 0x10b2cc)
>
> Before it brings:
>
> VLC media player 3.0.18-rc2 Vetinari (revision 3.0.13-8-g41878ff4f2)
> [000055f30ff19610] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
> libGL error: MESA-LOADER: failed to open i965: /usr/lib/dri/i965_dri.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
> libGL error: failed to load driver: i965
> [000055f30fff2db0] main audio output error: too low audio sample frequency (0)
> [00007ff9e4c96810] main decoder error: failed to create audio output
> [000055f30fff2db0] vlcpulse audio output error: digital pass-through stream connection failure: Eingabe/Ausgabe-Fehler
> [000055f30fff2db0] main audio output error: module not functional
> [00007ff9e4c96810] main decoder error: failed to create audio output
> libEGL warning: MESA-LOADER: failed to open i965: /usr/lib/dri/i965_dri.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
>
> [00007ff9d8004f40] gl gl: Initialized libplacebo v4.208.0 (API v208)
> libGL error: MESA-LOADER: failed to open i965: /usr/lib/dri/i965_dri.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
> libGL error: failed to load driver: i965
> [00007ff9d8004f40] gl gl: Initialized libplacebo v4.208.0 (API v208)
> libGL error: MESA-LOADER: failed to open i965: /usr/lib/dri/i965_dri.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
> libGL error: failed to load driver: i965
> libva info: VA-API version 1.16.0
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
> libva info: Found init function __vaDriverInit_1_16
With respect to vlc, you are most likely experiencing #1021601. vlc's
VA-API support is currently disabled as it is not compatible with ffmpeg
5.x.
Cheers
>
>
> Checking vainfo:
>
> libva info: VA-API version 1.16.0
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
> libva info: Found init function __vaDriverInit_1_16
> libva info: va_openDriver() returns 0
> vainfo: VA-API version: 1.16 (libva 2.12.0)
> vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.6.0 ()
> vainfo: Supported profile and entrypoints
> VAProfileMPEG2Simple : VAEntrypointVLD
> VAProfileMPEG2Main : VAEntrypointVLD
> VAProfileH264Main : VAEntrypointVLD
> VAProfileH264High : VAEntrypointVLD
> VAProfileJPEGBaseline : VAEntrypointVLD
> VAProfileH264ConstrainedBaseline: VAEntrypointVLD
> VAProfileVP8Version0_3 : VAEntrypointVLD
>
> That is not how I remember it from before, similar to
> https://wiki.archlinux.org/title/Hardware_video_acceleration#Verifying_VA-API
>
> So my assumption is that iHD is probably not suitable for this old GPU?
> Maybe installing non-free version helps?
>
> So, Situation 2:
>
> Installed intel-media-va-driver-nonfree. Now vainfo tells a lot more:
>
> libva info: VA-API version 1.16.0
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
> libva info: Found init function __vaDriverInit_1_16
> libva info: va_openDriver() returns 0
> vainfo: VA-API version: 1.16 (libva 2.12.0)
> vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.6.0 ()
> vainfo: Supported profile and entrypoints
> VAProfileNone : VAEntrypointVideoProc
> VAProfileNone : VAEntrypointStats
> VAProfileMPEG2Simple : VAEntrypointVLD
> VAProfileMPEG2Simple : VAEntrypointEncSlice
> VAProfileMPEG2Main : VAEntrypointVLD
> VAProfileMPEG2Main : VAEntrypointEncSlice
> VAProfileH264Main : VAEntrypointVLD
> VAProfileH264Main : VAEntrypointEncSlice
> VAProfileH264Main : VAEntrypointFEI
> VAProfileH264High : VAEntrypointVLD
> VAProfileH264High : VAEntrypointEncSlice
> VAProfileH264High : VAEntrypointFEI
> VAProfileVC1Simple : VAEntrypointVLD
> VAProfileVC1Main : VAEntrypointVLD
> VAProfileVC1Advanced : VAEntrypointVLD
> VAProfileJPEGBaseline : VAEntrypointVLD
> VAProfileH264ConstrainedBaseline: VAEntrypointVLD
> VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
> VAProfileH264ConstrainedBaseline: VAEntrypointFEI
> VAProfileVP8Version0_3 : VAEntrypointVLD
>
> But: it does not work! It crashes the same way as before or fails to
> accellerate as before.
>
> So, situation 3:
>
> Still wondering about iHD...so involvement, I removed that extra packages
> (intel-media-va-driver, intel-media-va-driver-nonfree).
>
> That looks different, better in the vainfo output (see below), but actually
> much worse: instead of just crashing the player process on problematic videos,
> a malloc bomb seems to be triggered. I.e. the whole X server gets stuck in a
> second and gets OOM-killed pretty soon.
>
> libva info: VA-API version 1.16.0
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
> libva info: va_openDriver() returns -1
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
> libva info: Found init function __vaDriverInit_1_8
> libva info: va_openDriver() returns 0
> vainfo: VA-API version: 1.16 (libva 2.12.0)
> vainfo: Driver version: Intel i965 driver for Intel(R) Broadwell - 2.4.1
> vainfo: Supported profile and entrypoints
> VAProfileMPEG2Simple : VAEntrypointVLD
> VAProfileMPEG2Simple : VAEntrypointEncSlice
> VAProfileMPEG2Main : VAEntrypointVLD
> VAProfileMPEG2Main : VAEntrypointEncSlice
> VAProfileH264ConstrainedBaseline: VAEntrypointVLD
> VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
> VAProfileH264Main : VAEntrypointVLD
> VAProfileH264Main : VAEntrypointEncSlice
> VAProfileH264High : VAEntrypointVLD
> VAProfileH264High : VAEntrypointEncSlice
> VAProfileH264MultiviewHigh : VAEntrypointVLD
> VAProfileH264MultiviewHigh : VAEntrypointEncSlice
> VAProfileH264StereoHigh : VAEntrypointVLD
> VAProfileH264StereoHigh : VAEntrypointEncSlice
> VAProfileVC1Simple : VAEntrypointVLD
> VAProfileVC1Main : VAEntrypointVLD
> VAProfileVC1Advanced : VAEntrypointVLD
> VAProfileNone : VAEntrypointVideoProc
> VAProfileJPEGBaseline : VAEntrypointVLD
> VAProfileVP8Version0_3 : VAEntrypointVLD
>
> Best regards,
> Eduard.
>
> -- System Information:
> Debian Release: bookworm/sid
> APT prefers unstable-debug
> APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 6.0.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages va-driver-all depends on:
> ii i965-va-driver-shaders 2.4.1-1
> ii intel-media-va-driver-non-free 22.6.0+ds1-1
> ii mesa-va-drivers 22.2.2-1
>
> va-driver-all recommends no packages.
>
> va-driver-all suggests no packages.
>
> -- no debconf information
--
Sebastian Ramacher
Reply to: