Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

VA-API - iHD | invalid VAContextID | XPS 13 7390

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Latrina
Posts: 5
Joined: 2019-10-26 11:09

VA-API - iHD | invalid VAContextID | XPS 13 7390

#1 Post by Latrina »

Hello everyone,
I recently bought this new Dell XPS 7390 and I am running Debian Buster on it, with kernel 5.2.0-0.bpo.3-amd64. It all works fine aside from HW acceleration, resulting in lags when reproducing video on YouTube etc,

I tried both intel-media-va-driver-non-free as well as intel-media-va-driver/stable with pretty much the same result.

Code: Select all

psammarco@dell:~$ vainfo
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 5
vaInitialize failed with error code 5 (invalid VAContextID),exit
psammarco@dell:~$ 
On Chrome in chrome://gpu I have the following settings:

Code: Select all

Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Hardware accelerated
Hardware Protected Video Decode: Hardware accelerated
Rasterization: Hardware accelerated
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Viz Display Compositor: Enabled
Viz Hit-test Surface Layer: Enabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Few information regarding the GPU here:

Code: Select all

psammarco@dell:~$ sudo lshw |grep -i display -A12
        *-display           
             description: VGA compatible controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             logical name: /dev/fb0
             version: 02
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
             configuration: depth=32 driver=i915 latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
             resources: iomemory:600-5ff iomemory:400-3ff irq:149 memory:604a000000-604affffff memory:4000000000-400fffffff ioport:3000(size=64) memory:c0000-dffff

Code: Select all

psammarco@dell:~$ inxi -G
Graphics:  Device-1: Intel driver: i915 v: kernel 
           Display: wayland server: X.Org 1.20.4 driver: i915 resolution: 1920x1080~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 7.0 256 bits) v: 3.3 Mesa 18.3.6 
psammarco@dell:~$ 
Anyone knows what I am doing wrong?

Thanks

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: VA-API - iHD | invalid VAContextID | XPS 13 7390

#2 Post by Head_on_a_Stick »

You probably need newer Mesa packages but they aren't in buster-backports yet. I think stevepusser has them in a buster-compatible repository though.
deadbang

Latrina
Posts: 5
Joined: 2019-10-26 11:09

Re: VA-API - iHD | invalid VAContextID | XPS 13 7390

#3 Post by Latrina »

Head_on_a_Stick wrote:You probably need newer Mesa packages but they aren't in buster-backports yet. I think stevepusser has them in a buster-compatible repository though.
Wow that did it... I upgraded the following packages from buster to sid:

Code: Select all

libegl-mesa0/unstable 
libegl1-mesa/unstable 
libgl1-mesa-dev/unstable 
libgl1-mesa-dri/unstable 
libgl1-mesa-glx/unstable 
libglapi-mesa/unstable 
libglx-mesa0/unstable 
mesa-common-dev/unstable 
mesa-va-drivers/unstable 
mesa-vdpau-drivers/unstable
libopengl0/unstable
libva2/unstable
vainfo/unstable
intel-media-va-driver/unstable
And now videoplayback on Chrome is butter smooth

Code: Select all

psammarco@dell:~$ vainfo 
libva info: VA-API version 1.5.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_5
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.5 (libva 2.5.0)
vainfo: Driver version: Intel iHD driver - 1.0.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
psammarco@dell:~$ 
Thank you so much for the hint :)

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: VA-API - iHD | invalid VAContextID | XPS 13 7390

#4 Post by Head_on_a_Stick »

Latrina wrote:I upgraded the following packages from buster to sid
Did you rebuild the sid source in your buster system? If not were any other dependencies pulled in?

Using sid packages in Debian stable is generally considered a Bad Idea, see the first link in my signature for more on this.
deadbang

Latrina
Posts: 5
Joined: 2019-10-26 11:09

Re: VA-API - iHD | invalid VAContextID | XPS 13 7390

#5 Post by Latrina »

Head_on_a_Stick wrote:
Latrina wrote:I upgraded the following packages from buster to sid
Did you rebuild the sid source in your buster system? If not were any other dependencies pulled in?

Using sid packages in Debian stable is generally considered a Bad Idea, see the first link in my signature for more on this.
Uhm nope I did not rebuild them. I literally just pulled them off of the sid repo, and removed the sid repo once done with it. How would I want to rebuild a sid package for stable? I am a new debian user, sorry for the noob question.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: VA-API - iHD | invalid VAContextID | XPS 13 7390

#6 Post by Head_on_a_Stick »

Latrina wrote:How would I want to rebuild a sid package for stable?
https://wiki.debian.org/SimpleBackportCreation

Or check stevepusser's most excellent backporting guide in the HowTo section.
deadbang

Post Reply