Bug#1023200: va-driver-all: buggy or unstable behavior on older i965 GPU

2022-11-06 Thread Sebastian Ramacher
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  0x7f4eca507730 
> _Z21mos_bo_wait_renderingP12mos_linux_bo (iHD_drv_video.so + 0x107730)
> #1  0x7f4eca718db9 
> _ZN14DdiMediaDecode12CreateBufferE12VABufferTypejjPvPj (iHD_drv_video.so + 
> 0x318db9)
> #2  0x7f4eca6fe0ac 
> _Z21DdiMedia_CreateBufferP15VADriverContextj12VABufferTypejjPvPj 
> (iHD_drv_video.so + 0x2fe0ac)
> #3  0x7f4f38c9e870 vaCreateBuffer (libva.so.2 + 0x6870)
> #4  0x7f4f0060ab85 n/a (libvdpau_va_gl.so.1 + 0xab85)
> #5  0x7f4f0060b2ac n/a (libvdpau_va_gl.so.1 + 0xb2ac)
> #6  0x7f4f0060b879 n/a (libvdpau_va_gl.so.1 + 0xb879)
> #7  0x7f4f1f200f78 n/a (libavcodec.so.59 + 0x800f78)
> #8  0x7f4f1f2028b4 n/a (libavcodec.so.59 + 0x8028b4)
> #9  0x7f4f1ed8a28c n/a (libavcodec.so.59 + 0x38a28c)
> #10 0x7f4f1ed9ff3e n/a (libavcodec.so.59 + 0x39ff3e)
> #11 0x7f4f1f06756b n/a (libavcodec.so.59 + 0x66756b)
> #12 0x7f4f7628784a start_thread (libc.so.6 + 0x8784a)
> #13 0x7f4f7630b2cc __clone3 (libc.so.6 + 0x10b2cc)
> 
> Before it brings:
> 
> VLC media player 3.0.18-rc2 Vetinari (revision 3.0.13-8-g41878ff4f2)
> [55f30ff19610] 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
> [55f30fff2db0] main audio output error: too low audio sample frequency (0)
> [7ff9e4c96810] main decoder error: failed to create audio output
> [55f30fff2db0] vlcpulse audio output error: digital pass-through stream 
> connection failure: Eingabe/Ausgabe-Fehler
> [55f30fff2db0] main audio output error: module not functional
> [7ff9e4c96810] main 

Bug#1023200: va-driver-all: buggy or unstable behavior on older i965 GPU

2022-10-31 Thread Eduard Bloch
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  0x7f4eca507730 _Z21mos_bo_wait_renderingP12mos_linux_bo 
(iHD_drv_video.so + 0x107730)
#1  0x7f4eca718db9 
_ZN14DdiMediaDecode12CreateBufferE12VABufferTypejjPvPj (iHD_drv_video.so + 
0x318db9)
#2  0x7f4eca6fe0ac 
_Z21DdiMedia_CreateBufferP15VADriverContextj12VABufferTypejjPvPj 
(iHD_drv_video.so + 0x2fe0ac)
#3  0x7f4f38c9e870 vaCreateBuffer (libva.so.2 + 0x6870)
#4  0x7f4f0060ab85 n/a (libvdpau_va_gl.so.1 + 0xab85)
#5  0x7f4f0060b2ac n/a (libvdpau_va_gl.so.1 + 0xb2ac)
#6  0x7f4f0060b879 n/a (libvdpau_va_gl.so.1 + 0xb879)
#7  0x7f4f1f200f78 n/a (libavcodec.so.59 + 0x800f78)
#8  0x7f4f1f2028b4 n/a (libavcodec.so.59 + 0x8028b4)
#9  0x7f4f1ed8a28c n/a (libavcodec.so.59 + 0x38a28c)
#10 0x7f4f1ed9ff3e n/a (libavcodec.so.59 + 0x39ff3e)
#11 0x7f4f1f06756b n/a (libavcodec.so.59 + 0x66756b)
#12 0x7f4f7628784a start_thread (libc.so.6 + 0x8784a)
#13 0x7f4f7630b2cc __clone3 (libc.so.6 + 0x10b2cc)

Before it brings:

VLC media player 3.0.18-rc2 Vetinari (revision 3.0.13-8-g41878ff4f2)
[55f30ff19610] 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
[55f30fff2db0] main audio output error: too low audio sample frequency (0)
[7ff9e4c96810] main decoder error: failed to create audio output
[55f30fff2db0] vlcpulse audio output error: digital pass-through stream 
connection failure: Eingabe/Ausgabe-Fehler
[55f30fff2db0] main audio output error: module not functional
[7ff9e4c96810] 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