Kodi Community Forum
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server (/showthread.php?tid=231955)



RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - koekiemonster - 2018-06-05

Hi all,
I'm running a Haswell celeron Pentium (G3450) and keep getting GPU hangs, causing the video playback to freeze and finally kodi to crash.
This is with the current Kodi nightly, on ubuntu 18.04 server. These problems first showed up for me in ubuntu 16.04 when using the HWE stack (any kernel newer than 4.4).
​​​I've tried various options of the i915 module such as fbc/modesetting/rc6/semaphores but the hangs keep coming. Disabling adjust refresh rate also does not help.
I hope somebody here can provide some tips on solving it.

dpkg -l |grep mesa
DISPLAY=:0 vainfo
cat ~/.kodi/temp/kodi.log
dmesg
id
amixer
cat /var/log/Xorg.0.log
cat /sys/class/drm/card0/error


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-06-05

(2018-06-05, 20:49)koekiemonster Wrote: Hi all,
I'm running a Haswell celeron (G3450) and keep getting GPU hangs, causing the video playback to freeze and finally kodi to crash.
This is with the current Kodi nightly, on ubuntu 18.04 server. These problems first showed up for me in ubuntu 16.04 when using the HWE stack (any kernel newer than 4.4).
​​​I've tried various options of the i915 module such as fbc/modesetting/rc6/semaphores but the hangs keep coming. Disabling adjust refresh rate also does not help.
I hope somebody here can provide some tips on solving it.

dpkg -l |grep mesaDISPLAY=:0 vainfocat ~/.kodi/temp/kodi.logdmesgidamixercat /var/log/Xorg.0.logcat /sys/class/drm/card0/error
Seems to be a known issue affecting lots of people running this Haswell Celeron. Go to bugs.freedesktop.org and file your personal bugreport, please.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - koekiemonster - 2018-06-05

ok, thank you for the confirmation. Do you know if this is a generic Haswell GPU issue, or if I might get lucky with a different haswell chip? (I might be able to swap out the pentium G3450 for a borrowed i7 for testing if this has a chance of success).


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-06-05

(2018-06-05, 21:15)koekiemonster Wrote: ok, thank you for the confirmation. Do you know if this is a generic Haswell GPU issue, or if I might get lucky with a different haswell chip? (I might be able to swap out the pentium G3450 for a borrowed i7 for testing if this has a chance of success).
 Nope - I shortly googled your error code and found 5+ bugs with different software. Yeah - try with the i7, it should work.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - koekiemonster - 2018-06-08

I've been running the i7 4790 for the last two days without a single glitch in video playback. I'm replacing the CPU with an i3 4160 (the i7 has to go back, it also is not playing nice with my picoPSU :-)

So for everybody who runs a Haswell Celeron or Haswell Pentium and experiences video freezing with the following messages in their dmesg:
Code:
[drm] GPU HANG: ecode 7:0:0x85dffffc, in kodi-x11 [2080], reason: Hang on rcs0, action: reset
i915 0000:00:02.0: Resetting chip after gpu hang

a CPU upgrade will most likely solve your problems. The other option is to seek help at bugs.freedesktop.org.



RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - pyrodex - 2018-06-10

FYI I've had good luck with Ubuntu 18.04, Kernel from https://github.com/M-Bab/linux-kernel-amdgpu-binaries, and Kodi nightly on the following platform shown below. 

So far tested Jelly fish too 400Mbps with no issues and 4K content works but of course the TV never flips to HDR mode. Audio passthrough has been good so far with no issues and it seems stable.
Code:
System:    Host: den4khtpc Kernel: 4.16.12+ x86_64 bits: 64 Console: tty 0 Distro: Ubuntu 18.04 LTS
Machine:   Device: desktop System: Gigabyte product: AB350N-Gaming WIFI serial: N/A
           Mobo: Gigabyte model: AB350N-Gaming WIFI-CF v: x.x serial: N/A
           UEFI: American Megatrends v: F22 date: 03/15/2018
CPU:       Quad core AMD Ryzen 3 2200G with Radeon Vega Graphics (-MCP-) speed/max: 1525/3500 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon Vega 8 Mobile]
           Display Server: X.org 1.19.6 drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
           tty size: 170x30 Advanced Data: N/A for root out of X
Network:   Card-1: Intel Wireless 3165 driver: iwlwifi
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
Drives:    HDD Total Size: 250.1GB (6.8% used)
Info:      Processes: 178 Uptime: 5:27 Memory: 1763.1/6982.3MB Init: systemd runlevel: 5
           Client: Shell (sudo) inxi: 2.3.56



RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - stigma86 - 2018-06-10

Hi all.

I have a Gemini Lake platform (Asrock J4150-ITX) and I have a problem with 4k HEVC 10 playing.
If I play HEVC 10 video a processor use very heavy and lagging. I see the film information (CTRL+O) : ff-hecv (SW) 

If I play 1080p-s video, it's perfect and use to play the vaapi : ff-vaapi (HW)

I installed the programs to the first comment, 18.04 Ubuntu server + Kodi 17.6 (stable build)

And I'm looking for some package versions:

xorg xserver-xorg-legacy 1:7.7
mesa-utils 8.3.1
i965-va-driver 2.1.0
linux-firmware 1.173.1
xserver-xorg-video-intel 2:2.99

But If I use the 8.2.5 Libreelec (install pendrive) the 4k HEVC 10 bit Playing perfectly.

I tried to play in Windows and the 4k HEVC 10 bit is run perfectly.(Windows 10 Pro + Latest Intel chipset driver + Kodi 17.6) 

What can be a the problem ?


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Klojum - 2018-06-10

(2018-06-10, 11:42)stigma86 Wrote: What can be a the problem ?
Preferably, include a debug log (wiki) when presenting a video problem.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - wsnipex - 2018-06-10

try with v18


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-06-10

And ask in the right thread / forum.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - stigma86 - 2018-06-10

Hello. I created a Log file : http://paste.ubuntu.com/p/Dq2t2DkPPp/

And some information mesa  : http://paste.ubuntu.com/p/qKqMhXynBX/

Or I will writing  a Gemini Lake's forum  and  I will ask them.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - stigma86 - 2018-06-10

(2018-06-10, 12:33)wsnipex Wrote: try with v18
I alwasy use a stable version. I try to running in kodi 17.6 in Windows and the movie was perfectly.

I think I use an old packages or user error Smile


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-06-10

(2018-06-10, 16:28)stigma86 Wrote: Hello. I created a Log file : http://paste.ubuntu.com/p/Dq2t2DkPPp/

And some information mesa  : http://paste.ubuntu.com/p/qKqMhXynBX/

Or I will writing  a Gemini Lake's forum  and  I will ask them.
 Official kodi 17.6 for Linux does NOT contain hevc-10 bit acceleration patches. This is custom patched into LibreELEC. So yes, if you use 18.04 + official kodi 17.6 you won't have acceleration for hevc-10 bit.

See LE's custom patch: https://github.com/LibreELEC/LibreELEC.tv/blob/libreelec-8.2/packages/mediacenter/kodi/patches/kodi-999.98-vaapi-hevc10.patch

So whatever you call stable is not really stable :-) See all the patches here: https://github.com/LibreELEC/LibreELEC.tv/blob/libreelec-8.2/packages/mediacenter/kodi/patches/


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - stigma86 - 2018-06-10

(2018-06-10, 14:16)fritsch Wrote: And ask in the right thread / forum.
Hi, Ok. 
I found an other forum that is related to my platform (Gemini Lake)


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-06-10

(2018-06-10, 16:34)stigma86 Wrote:
(2018-06-10, 14:16)fritsch Wrote: And ask in the right thread / forum.
Hi, Ok. 
I found an other forum that is related to my platform (Gemini Lake
No - see the answer above. What you get is 100% expected. HEVC-10 bit support is NOT in 17.6 Linux versions of kodi - only LE picked it from v18 in a preliminary version from some of my "testing for technikaffe.de preview LE builds".