Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
H265 : no hw decoder (core i7-6500U)???
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48212
Location: 56N 3W

PostPosted: Fri Oct 23, 2020 12:25 pm    Post subject: Reply with quote

jlm_devel,

I suspect that you don't have the hardware for i2c_designware. If you do, its not working because the bus never becomes ready :)
If you have anything like i2c_designware is the output of lsmod, modprobe -r it/them.
If its built into your kernel, remove it. That's a kernel rebuild.

Your Intel kernel space stuff is in two pieces. The driver and its firmware.
Both bits have to come together when the driver is initalised.
That means that both need to be be configured in the kernel or both on the root filesystem.
Code:
                -*- Firmware loading facility
                (i915/skl_dmc_ver1_27.bin) Build named firmware blobs into the kernel binary
                (/lib/firmware) Firmware blobs root directory

is only useful if the kernel driver is configured as <*>, its harmless otherwise.

As as aside, the kernel can update your CPU firmware. There is a wiki page for that. It involves listing your firmware there.

We can see that you are getting all the right bits together but not that they are actually used.
That's what your /var/log/Xorg.0.log will tell.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Fri Oct 23, 2020 9:25 pm    Post subject: Reply with quote

Hi,
rebuild finished.... but seems worst...


first : now the i2c errors are gone so I can use the dmesg

second :
Code:
# dmesg |grep i915
[    5.255964] i915 0000:00:02.0: vgaarb: deactivate vga console
[    5.261480] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    5.262216] [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
[    5.335900] [drm] Initialized i915 1.6.0 20200114 for 0000:00:02.0 on minor 0
[    5.398871] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.424557] fbcon: i915drmfb (fb0) is primary device
[    6.562370] i915 0000:00:02.0: fb0: i915drmfb frame buffer device


third :
Code:

$ vlc GX010741.MP4
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[000055789a928580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000055789aa0c4d0] qt interface error: Unable to load extensions module
libva info: VA-API version 1.8.0
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
[00007f9cf1264fb0] avcodec decoder: Using Intel iHD driver for Intel(R) Gen Graphics - 20.2.0 () for hardware decoding
QObject::~QObject: Timers cannot be stopped from another thread


Code:
$ mpv GX010741.MP4
 (+) Video --vid=1 (*) (hevc 3840x2160 59.940fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 3840x2160 yuv420p
(Buffering) AV: 00:00:00 / 00:05:17 (0%) A-V:  0.052 Dropped: 1


Exiting... (Quit)


but for both now, I only have the first frame.... and northing else...
Back to top
View user's profile Send private message
pietinger
l33t
l33t


Joined: 17 Oct 2006
Posts: 722
Location: Bavaria

PostPosted: Sat Oct 24, 2020 4:14 am    Post subject: Reply with quote

jlm_devel,
when I start vlc from command line I get:
Code:
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[000056334c5de630] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
[000056334c672c90] qt interface error: Unable to load extensions module
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
[00007f987d773940] avcodec decoder: Using Intel i965 driver for Intel(R) Skylake - 2.4.1 for hardware decoding

Did you try different mpeg-files ? If yes, you could try using the stable intel-driver I use (delete ~amd64 and use only amd64).

(your kernel log for DMC firmware is the same as mine = ok)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 48212
Location: 56N 3W

PostPosted: Sat Oct 24, 2020 9:55 am    Post subject: Reply with quote

jlm_devel,

... and /var/log/Xorg.0.log shows ...
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Sat Oct 24, 2020 1:48 pm    Post subject: Reply with quote

This file you are trying to play, is it 8-bit? I doubt your GPU can do more than 8-bit in hardware. I may be wrong. But this is something you should check on.
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Fri Oct 30, 2020 12:22 pm    Post subject: Reply with quote

ok after lot of rebuild, now the video decoding is smooth!!!!! hardware accelerated!!! (at least for VLC)


Code:
USE="-test glamor vaapi openmp drm opengl egl gles2 "
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
VIDEO_CARDS="intel i965 iris"



also update to 5.9.1-gentoo-x86_64 kernel.

vlc show on command line :
Code:
 $ vlc GH010797.MP4
VLC media player 3.0.11.1 Vetinari (revision 3.0.11.1-0-g52483f3ca2)
[0000561fb650b580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000561fb65ef470] qt interface error: Unable to load extensions module
libva info: VA-API version 1.9.0
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
[00007fcdb0c113e0] avcodec decoder: Using Intel iHD driver for Intel(R) Gen Graphics - 20.2.0 () for hardware decoding



but the "i2c_designware i2c_designware.0: timeout waiting for bus ready" filling dmesg came back... so can't "dmesg |grep i915"

mpv state didn't changed.... still A/V synchro loss...

next step is switching to new gentoo profile...
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Thu Nov 12, 2020 4:14 pm    Post subject: Reply with quote

Hi,
I dig this topig, since I've now switched to new 17.1 profile, everything seems to worked well...
but now I only see a few seconds of video, then black screen for the rest of the time and vlc end with a SEGFAULT....
any idea?
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Fri Nov 13, 2020 2:19 pm    Post subject: Reply with quote

what I notice, is that the display is rather instable...

1- chromium crash ofter without raison... when I launch it in a term, I saw some error related to some shader compilation error
2- on vlc, the same mp4 hevc file will be displayed smoothly, and after some plays, VLC might hangs (have to kill it) or finish by decoding the first 5s, and display a black screen after
3- If I continue opening hevc files the x server will crash after a few attemps... on the console I saw some errors related to AIGLX....


Code:
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
EndSection
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Fri Nov 13, 2020 8:19 pm    Post subject: Reply with quote

I wonder what firmware to use :

https://wiki.gentoo.org/wiki/Intel#Modesetting_DDX says to use i915/skl_dmc_ver1_27.bin
but latter on the wiki they says For Gen9 and Gen9.5 GPUs, GuC/HuC firmware won't be loaded by default

I've no idea about what firmware correspond to what device...

skl_guc_32.0.3.bin
skl_guc_33.0.0.bin
skl_guc_ver1_1059.bin
skl_guc_ver1.bin
skl_guc_ver4_3.bin
skl_guc_ver4.bin
skl_guc_ver6_1.bin
skl_guc_ver6.bin
skl_guc_ver9_33.bin

skl_dmc_ver1_23.bin
skl_dmc_ver1_26.bin
skl_dmc_ver1_27.bin
skl_dmc_ver1.bin


skl_huc_2.0.0.bin
skl_huc_ver01_07_1398.bin
Back to top
View user's profile Send private message
pietinger
l33t
l33t


Joined: 17 Oct 2006
Posts: 722
Location: Bavaria

PostPosted: Fri Nov 13, 2020 9:08 pm    Post subject: Reply with quote

I have an Intel i7-6700 and I use only the integrated gpu.

This processor is the 6.th CPU generation AND the 9.th GPU generation.

For this CPU you need skl_dmc_ver1_27.bin (I told you before in this thread) ! Forget guc and huc ! The info for this you find in:
https://wiki.gentoo.org/wiki/Intel

Next is your profile. I have: default/linux/amd64/17.1/desktop/plasma (without systemd; but this should make no difference)

It is important to set the correct profile, because the profile does not set only global USE-flags, it sets individuell USE-flags per package (some packages with dri3 or gles2 - some without). So, you shouldnt set it by yourself in your make.conf ... except: "vaapi". And you should set VIDEO_CARDS="intel i965 iris" in your make.conf

A difference to your system: I have a stable system and you use the unstable iHD_drv_video. I dont know how much this cause problems.

The next difference is: I use the outdated Intel DDX with sna (because I tested it against the modesetting and the result was: it is faster). And for this I have in my make.conf additionally this:
Code:
USE="$USE sna uxa vaapi xvmc"

(and of course the needed /etc/X11/xorg.conf.d/20-intel.conf)

Dont set any global "drm, egl, gles, gles1, gles2, dri, dri2, dri3, opengl" in your make.conf - this should be done ONLY from your profile setting !!
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Fri Nov 13, 2020 11:24 pm    Post subject: Reply with quote

seems that I found....

in fact there is 3 blobs to embed into the kernel....

you need to add to kernel parameters the "i915.enable_guc=2" then reboot, in dmesg seek for
Code:
kernel: [    1.294069] [drm] GuC: Failed to fetch firmware i915/kbl_guc_ver9_33.bin (error -2)
kernel: [    1.294079] [drm] HuC: Failed to fetch firmware i915/kbl_huc_ver01_07_1398.bin (error -2)

this give you the 2 others build to embed,

then do a genkernel --menuconfig all
go into
Code:
Device Drivers  ---> Generic Driver Options  ---> Firmware loader  --->

and into
Code:
() Build named firmware blobs into the kernel binary

put for me
Code:
i915/skl_dmc_ver1_27.bin i915/skl_guc_33.0.0.bin i915/skl_huc_2.0.0.bin


reboot and do dmesg |grep i915
Code:

[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.9.1-gentoo-x86_64 root=UUID=43cb3a7c-d07f-4507-9d79-857893eb9285 ro resume=/dev/sda8 i8042.noloop i8042.nomux i8042.nopnp i8042.reset i915.enable_guc=2
[    0.047608] Kernel command line: BOOT_IMAGE=/vmlinuz-5.9.1-gentoo-x86_64 root=UUID=43cb3a7c-d07f-4507-9d79-857893eb9285 ro resume=/dev/sda8 i8042.noloop i8042.nomux i8042.nopnp i8042.reset i915.enable_guc=2
[    5.079815] i915 0000:00:02.0: [drm] VT-d active for gfx access
[    5.080026] i915 0000:00:02.0: vgaarb: deactivate vga console
[    5.083846] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    5.083967] i915 0000:00:02.0: [drm] Disabling framebuffer compression (FBC) to prevent screen flicker with VT-d enabled
[    5.087609] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
[    5.098725] i915 0000:00:02.0: [drm] Panel advertises DPCD backlight support, but VBT disagrees. If your backlight controls don't work try booting with i915.enable_dpcd_backlight=1. If your machine needs this, please file a _new_ bug report on drm/i915, see https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs for details.
[    6.246088] i915 0000:00:02.0: [drm] GuC firmware i915/skl_guc_33.0.0.bin version 33.0 submission:disabled
[    6.246090] i915 0000:00:02.0: [drm] HuC firmware i915/skl_huc_2.0.0.bin version 2.0 authenticated:yes
[    6.249275] [drm] Initialized i915 1.6.0 20200715 for 0000:00:02.0 on minor 0
[    6.255858] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.280015] fbcon: i915drmfb (fb0) is primary device
[    7.441970] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Sun Nov 22, 2020 11:13 am    Post subject: Reply with quote

pietinger wrote:
I have an Intel i7-6700 and I use only the integrated gpu.

This processor is the 6.th CPU generation AND the 9.th GPU generation.

For this CPU you need skl_dmc_ver1_27.bin (I told you before in this thread) ! Forget guc and huc ! The info for this you find in:
https://wiki.gentoo.org/wiki/Intel

Next is your profile. I have: default/linux/amd64/17.1/desktop/plasma (without systemd; but this should make no difference)

It is important to set the correct profile, because the profile does not set only global USE-flags, it sets individuell USE-flags per package (some packages with dri3 or gles2 - some without). So, you shouldnt set it by yourself in your make.conf ... except: "vaapi". And you should set VIDEO_CARDS="intel i965 iris" in your make.conf

A difference to your system: I have a stable system and you use the unstable iHD_drv_video. I dont know how much this cause problems.

The next difference is: I use the outdated Intel DDX with sna (because I tested it against the modesetting and the result was: it is faster). And for this I have in my make.conf additionally this:
Code:
USE="$USE sna uxa vaapi xvmc"

(and of course the needed /etc/X11/xorg.conf.d/20-intel.conf)

Dont set any global "drm, egl, gles, gles1, gles2, dri, dri2, dri3, opengl" in your make.conf - this should be done ONLY from your profile setting !!


will try the sna driver because I still have lot of scrolling glitches and video glitches...
what puzzle me is that you says that " I have a stable system and you use the unstable iHD_drv_video" and I don't know what is the iHD_drv_video, how I did I installed this driver? where could I have configured it? .....
thanks a lot!
Back to top
View user's profile Send private message
pietinger
l33t
l33t


Joined: 17 Oct 2006
Posts: 722
Location: Bavaria

PostPosted: Sun Nov 22, 2020 11:36 am    Post subject: Reply with quote

jlm_devel wrote:
[...] and I don't know what is the iHD_drv_video, how I did I installed this driver? where could I have configured it? .....
thanks a lot!

Presumably you have an "ACCEPT_KEYWORDS=~amd64" somewhere. Your driver comes from:
Code:
*  x11-libs/libva-intel-media-driver [ Masked ]
      Latest version available: 9999

Mine is:
Code:
*  x11-libs/libva-intel-driver
      Latest version available: 2.4.1


As I said I have also the deprecated Intel-driver:
Code:
# emerge -pvD xf86-video-intel

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-drivers/xf86-video-intel-2.99.917_p20200515::gentoo  USE="dri sna udev uxa xvmc -debug -tools" 0 KiB
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 53

PostPosted: Tue Dec 01, 2020 9:35 pm    Post subject: Reply with quote

video glitches were coming from the modesetting intel driver.... now I'm on SNA and video is fluid and no "single buffering" / "no sync update".... think that the wiki should be updated....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum