Kernel 4.14 debugging party

Test and fix the Kernel 4.14 features

Moderators: mdrjr, odroid

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 03, 2017 7:03 am

I will be trying a new sound driver from Samsung, hope it will work better.
The sound driver as it is now is a mess...
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Fri Nov 03, 2017 9:38 am

crashoverride wrote:1) Firefox will not open and just crashes.


32bit armhf Firefox was broken a few months ago in the Canonical repo.
viewtopic.php?f=95&t=27977
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 03, 2017 2:10 pm

My patch for the last issue that is keeping Gnome3 from not working out-of-the-box on odroids was accepted...

I think for Ubuntu 18.08, the default desktop (based on gnome) will work out of the box with the wayland drivers!
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Fri Nov 03, 2017 2:44 pm

memeka wrote:I will be trying a new sound driver from Samsung, hope it will work better.
The sound driver as it is now is a mess...

HDMI sound was broken in RC7 even RC6 had no issue. :(
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby odroid » Thu Nov 09, 2017 4:12 pm

Can you give me a link to this commit?
memeka wrote:Update to the 4.14-rc7 rebase:
* enable cacheable DMA buffers support for greatly increased MFC performance


We need to fix the slow DMA issue in the SPI TFT-LCD driver.
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Thu Nov 09, 2017 8:51 pm

is the issue also present in 4.9, or just 4.14?
was it faster on 3.10?

one good news: my gnome patch was merged, and backported to 3.26 as well, which means the next update on Ubuntu 17.10 will have it. Finally wayland/gnome3 will work out of the box on odroids starting ubuntu 17.10 :)
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby Snk » Thu Nov 09, 2017 10:49 pm

memeka wrote:is the issue also present in 4.9, or just 4.14?
was it faster on 3.10?

one good news: my gnome patch was merged, and backported to 3.26 as well, which means the next update on Ubuntu 17.10 will have it. Finally wayland/gnome3 will work out of the box on odroids starting ubuntu 17.10 :)

Thank you for all the hard work and dedication in this kernel 4.14 LTS!
So for all my friends I always recommend HardKernel.
-
@memeka when building the 4.14 kernel, can I upgrade to 17.10, or is it still not possible?
User avatar
Snk
 
Posts: 275
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART

Re: Kernel 4.14 debugging party

Unread postby MastaG » Fri Nov 10, 2017 4:05 am

Great work memeka!
It'll probably be part of the 3.26.1 point release right?
I'll do a fresh Fedora 27 install then :)
MastaG
 
Posts: 215
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 4:57 am

Upgrade to 17.10 is probably not recommended... I created an image from scratch.
@MastaG yes I think 3.26.1. Remember you need the wayland drivers :)
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby Snk » Fri Nov 10, 2017 6:53 am

memeka wrote:Upgrade to 17.10 is probably not recommended... I created an image from scratch.
@MastaG yes I think 3.26.1. Remember you need the wayland drivers :)

Will you provide the download link for your image? I would like to test it
User avatar
Snk
 
Posts: 275
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 7:59 am

Snk wrote:
memeka wrote:Upgrade to 17.10 is probably not recommended... I created an image from scratch.
@MastaG yes I think 3.26.1. Remember you need the wayland drivers :)

Will you provide the download link for your image? I would like to test it


yes, after i try to build a good browser :)

currently compiling firefox ... next will try chrome ... might be a while :(
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Fri Nov 10, 2017 8:40 am

memeka wrote:is the issue also present in 4.9, or just 4.14?
was it faster on 3.10?

4.9 and 4.14 both have the slow SPI issue.
3.10 was quite fast.

memeka wrote:one good news: my gnome patch was merged, and backported to 3.26 as well, which means the next update on Ubuntu 17.10 will have it. Finally wayland/gnome3 will work out of the box on odroids starting ubuntu 17.10 :)

Good to hear the great news! :twisted:
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 10:38 am

odroid wrote:
memeka wrote:is the issue also present in 4.9, or just 4.14?
was it faster on 3.10?

4.9 and 4.14 both have the slow SPI issue.
3.10 was quite fast.


try adding the DMA attributes DMA_ATTR_NON_CONSISTENT | DMA_ATTR_NO_KERNEL_MAPPING when doing the mmap for the driver buffers.
this is the commit for the MFC: https://github.com/mihailescu2m/linux/c ... 6c204a637e
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 10:45 am

Some success!




WebGL now works, but video still not working :(
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 1:21 pm

And now:

User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Fri Nov 10, 2017 1:27 pm

Amazing! Firefox on Wayland :o
What is the Firefox version?
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 1:35 pm

odroid wrote:Amazing! Firefox on Wayland :o
What is the Firefox version?


Code: Select all
$ ./firefox -v
Mozilla Firefox 58.0a1


* WebGL works well
* video works including 1080p, but fullscreen not very well. this is because:
1) youtube uses VP9, which is not accelerated by MFC;
2) when forcing H264 (with MFC decoding), video doesn't work, because of some audio decoding errors. even with software decoding H264 is not working :(
so maybe best solution is to use external player mpv, or totem for youtube.
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Fri Nov 10, 2017 1:39 pm

Did you use "h264fy" plugin to force H.264?
https://addons.mozilla.org/en-US/firefox/addon/h264ify/
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 1:40 pm

odroid wrote:Did you use "h264fy" plugin to force H.264?
https://addons.mozilla.org/en-US/firefox/addon/h264ify/


yes but like i said, H264 gives very weird AUDIO decoding error, neither software or hardware decoding works. only VP9 (which is not supported by MFC).

EDIT:
SendToMPV plugin works, and it can play video with very little CPU usage :D
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Fri Nov 10, 2017 2:48 pm

Nice finding "SendToMPV plugin".
Is it opening a new window to show video? or embedded in the browser?

BTW, did you build MPV to use an external ffmpeg (with your patch)?
As far as I tested last week, MPV always used the internal ffmpeg.
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 3:07 pm

odroid wrote:Nice finding "SendToMPV plugin".
Is it opening a new window to show video? or embedded in the browser?

BTW, did you build MPV to use an external ffmpeg (with your patch)?
As far as I tested last week, MPV always used the internal ffmpeg.




Mpv default from ubuntu 17.10
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby mad_ady » Fri Nov 10, 2017 3:15 pm

It means that chromium + c2.video.helper plugin configured for mpv should work as well.
User avatar
mad_ady
 
Posts: 4710
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Kernel 4.14 debugging party

Unread postby memeka » Fri Nov 10, 2017 3:38 pm

mad_ady wrote:It means that chromium + c2.video.helper plugin configured for mpv should work as well.


Chromium is not wayland native, so egl doesn’t work...
Also going full screen crashes gnome (probably xwayland bug).

Firefox is ok with HD video (vc9 software) on page, but not full screen :(
Maybe I can fix h264 :D
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby MastaG » Fri Nov 10, 2017 4:13 pm

Yes, xwayland is still far from perfect, it doesn't work with nvidia's eglstreams implementation either.
I was hoping Chromium would support native wayland by now.
There were some posts somewhere regarding the widevine plugin for chromium making it possible to play native netflix videos.
And chromium being more lightweight would be awesome if it would be native wayland compatible with mfc acceleration for h264 videos.
MastaG
 
Posts: 215
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english

Re: Kernel 4.14 debugging party

Unread postby phaseshifter » Sun Nov 12, 2017 8:20 am

odroid@odroid:~$ uname -a
Linux odroid 4.14.0-rc8+ #1 SMP PREEMPT Sat Nov 11 11:04:36 UTC 2017 armv7l armv7l armv7l GNU/Linux


mouse still has issue is there a fix ..?? can somebody point me to it iv`e looked but i just did the 4.17.xx kernel just now
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: Kernel 4.14 debugging party

Unread postby memeka » Sun Nov 12, 2017 8:37 am

phaseshifter wrote:odroid@odroid:~$ uname -a
Linux odroid 4.14.0-rc8+ #1 SMP PREEMPT Sat Nov 11 11:04:36 UTC 2017 armv7l armv7l armv7l GNU/Linux


mouse still has issue is there a fix ..?? can somebody point me to it iv`e looked but i just did the 4.17.xx kernel just now


viewtopic.php?f=146&t=28908
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby memeka » Tue Nov 14, 2017 2:11 pm

What is this???

User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Tue Nov 14, 2017 2:14 pm

H264 4K video decoding with CPU horsepower only? :o
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Tue Nov 14, 2017 2:20 pm

odroid wrote:H264 4K video decoding with CPU horsepower only? :o


No, it's MFC decoding 4K!!! :twisted: :twisted: :twisted:
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Tue Nov 14, 2017 4:05 pm

Very Interesting. :twisted:
Exynos-5422 MFC specification says it supports up to 1920x1080 120fps H.264 decoding.
If there is no pixel size limitation, it can play up to 3840x1920 30fps probably.
BTW, do you think the gscaler is utilized to scale down the 4K video to 1080p monitor?

Please test this 60fps 1080p bbb clip on Wayland Kodi.
http://distribution.bbb3d.renderfarming ... normal.mp4
It is quite lagging on x11/Mate Kodi.
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby t-3 » Wed Nov 15, 2017 10:10 am

Just built and installed 4.14 on my XU4 w/cloudshell2. Only issue I notice off the bat is that the i2c interface for the fan isn't showing up in /dev. Comparing the 4.14 config to 4.9.44 config, I2C_GPIO_CUSTOM is the only i2c related option not set, and it does not appear to be available in kernel 4.14, or in stock kernel 4.9, so I'm assuming this option is unique to odroid. Is there a patch available to add this option? Not a big deal at the moment, as the fan will run at current settings unless pull the power than soft-rebooting.
t-3
 
Posts: 2
Joined: Wed Nov 15, 2017 10:02 am
languages_spoken: english
ODROIDs: XU4Q+Cloudshell

Re: Kernel 4.14 debugging party

Unread postby odroid » Wed Nov 15, 2017 10:21 am

@t-3
We will enable the driver soon.
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby memeka » Wed Nov 15, 2017 10:25 am

odroid wrote:Very Interesting. :twisted:
Exynos-5422 MFC specification says it supports up to 1920x1080 120fps H.264 decoding.
If there is no pixel size limitation, it can play up to 3840x1920 30fps probably.
BTW, do you think the gscaler is utilized to scale down the 4K video to 1080p monitor?

Please test this 60fps 1080p bbb clip on Wayland Kodi.
http://distribution.bbb3d.renderfarming ... normal.mp4
It is quite lagging on x11/Mate Kodi.


it's working very well :) i did not test on wayland, only on DRM kodi.
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby t-3 » Wed Nov 15, 2017 10:48 am

odroid wrote:@t-3
We will enable the driver soon.

Awesome! Thanks for the quick reply.
t-3
 
Posts: 2
Joined: Wed Nov 15, 2017 10:02 am
languages_spoken: english
ODROIDs: XU4Q+Cloudshell

Re: Kernel 4.14 debugging party

Unread postby odroid » Wed Nov 15, 2017 11:01 am

memeka wrote:it's working very well :) i did not test on wayland, only on DRM kodi.


It must be a good solution to build a fast Kodi + Gaming platforms like Recallbox and RetroPie. :D
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby neal » Wed Nov 15, 2017 4:16 pm

@t-3
Added module I2C_GPIO_CUSTOM feature.
neal
 
Posts: 153
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Kernel 4.14 debugging party

Unread postby phaseshifter » Thu Nov 16, 2017 11:30 pm

what have i done ..not again


Code: Select all
Distributor ID:   Ubuntu
Description:   Ubuntu Bionic Beaver (development branch)
Release:   18.04
Codename:   bionic
root@odroid:/home/odroid# uname -a
Linux odroid 4.9.57-69 #1 SMP PREEMPT Wed Oct 18 12:16:50 UTC 2017 armv7l armv7l armv7l GNU/Linux
root@odroid:/home/odroid#
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: Kernel 4.14 debugging party

Unread postby mad_ady » Thu Nov 16, 2017 11:36 pm

@phaseshifter: stop travelling into the future (so fast)! [emoji14]
User avatar
mad_ady
 
Posts: 4710
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Kernel 4.14 debugging party

Unread postby phaseshifter » Fri Nov 17, 2017 8:51 am

ro
Code: Select all
ot@odroid:/home/odroid# lsb_release -r -a
No LSB modules are available.
Distributor ID:   Ubuntu
Description:   Ubuntu Bionic Beaver (development branch)
Release:   18.04
Codename:   bionic
root@odroid:/home/odroid# uname -a
Linux odroid 4.14.0-rc8+ #1 SMP PREEMPT Sat Nov 11 11:04:36 UTC 2017 armv7l armv7l armv7l GNU/Linux


boredom prevails one at times..lol..lol
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!
phaseshifter
 
Posts: 2970
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: Kernel 4.14 debugging party

Unread postby Snk » Mon Nov 20, 2017 10:06 am

Awaiting new image based on kernel 4.14!
Congratulations to everyone involved in this debugging party!
User avatar
Snk
 
Posts: 275
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART

Re: Kernel 4.14 debugging party

Unread postby SamVDB² » Wed Nov 22, 2017 10:12 pm

Could someone test if watching a USB webcam video stream works on 4.14 kernel? I don't seem to get it working with guvcview. Had no problems on 4.9 kernel :(

Edit: here is a log
Code: Select all
root@framegrabber6:~# uname -a                                                                                                                                 
Linux framegrabber6 4.14.0 #2 SMP PREEMPT Wed Nov 22 14:00:57 CET 2017 armv7l armv7l armv7l GNU/Linux                                                         
root@framegrabber6:~# guvcview --audio=none                                                                                                                   
GUVCVIEW: version 2.0.2                                                                                                                                       
GUVCVIEW: couldn't open /root/.config/guvcview2/video0 for read: No such file or directory                                                                     
V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find p
arent usb device.V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.Using mplane plugin for capture output               
V4L2_CORE: Unable to find parent usb device.Using mplane plugin for capture output                                                             
V4L2_CORE: Unable to find parent usb device.V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory         
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                                                     
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                                                     
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                                                 
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                                                     
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                                               
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                                                 
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                     
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: No such file or directory                                                     
GUVCVIEW: couldn't get a valid audio context for the selected api - disabling audio                               
libv4l2: error setting pixformat: Device or resource busy                                                         
V4L2_CORE: (VIDIOC_S_FORMAT) Unable to set format: Device or resource busy                                         
GUCVIEW: could not set the defined stream format                                                             
GUCVIEW: trying first listed stream format                                                                         
libv4l2: error setting pixformat: Device or resource busy                                                   
V4L2_CORE: (VIDIOC_S_FORMAT) Unable to set format: Device or resource busy                                         
GUCVIEW: also could not set the first listed stream format                                                         
GUVCVIEW: Video capture failed                                                                                     
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.         
SamVDB²
 
Posts: 7
Joined: Mon Oct 30, 2017 3:42 pm
languages_spoken: english

Re: Kernel 4.14 debugging party

Unread postby Snk » Mon Nov 27, 2017 9:58 am

good evening
Any prediction of the new system image with kernel 4.14 and Kodi fixed?
User avatar
Snk
 
Posts: 275
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART

Re: Kernel 4.14 debugging party

Unread postby odroid » Mon Nov 27, 2017 11:56 am

@SamVDB²
I've tested a USB webcam with guvcview today. It worked well.

@Snk
We've just released Kernel 4.14 based new image.
https://wiki.odroid.com/odroid-xu4/os_i ... 4/20171126
User avatar
odroid
Site Admin
 
Posts: 28859
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Kernel 4.14 debugging party

Unread postby Snk » Mon Nov 27, 2017 12:42 pm

odroid wrote:@SamVDB²
I've tested a USB webcam with guvcview today. It worked well.

@Snk
We've just released Kernel 4.14 based new image.
https://wiki.odroid.com/odroid-xu4/os_i ... 4/20171126

Yeah, thank's!!!!

Downloading and flashing... :twisted:
User avatar
Snk
 
Posts: 275
Joined: Sun Jul 31, 2016 6:43 am
languages_spoken: Portuguese
ODROIDs: XU4 + eMMC 32GB + UART

Re: Kernel 4.14 debugging party

Unread postby meveric » Wed Nov 29, 2017 8:52 am

Finally got around building .deb packages for Kernel 4.14 and tried them on my images.
Sadly the main issues with Kernel 4.9 are still present in one form or another.
Dreamcast emulator reicast still has many slowdowns, in the debug output i can see framerate sometimes drops to 48 FPS where it should stay constantly on 60 FPS, where Kernel 3.10 has no issues what so ever with it.
Kodi also still has issues. MFC is still rather messy. Rather than hogging up a lot of CPU power and having videos lagging, it now runs way to fast, and only slows down when sound starts to kick in, at which point sound and video are totally out of sync and video starts lagging as well (although CPU usage is fine).
It seem smaller video files also have issues now, not only 1080p, in fact I tried 720p and it was worse than 1080p now, while previously with 4.9 Kernel only struggled with 1080p.
I also found that using different refresh rate than 60 Hz for videos still causes major tearing.. but I think that's a long standing issue, although it's much worse in Kernel 4.9 and 4.14 than 3.10.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9313
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: Kernel 4.14 debugging party

Unread postby memeka » Wed Nov 29, 2017 8:55 am

@meveric

maybe you have some weird kodi settings. on my system it works very good - i can even watch 4K 30fps movies (downscaled to 1080p) w/o issues.
make sure you are using a kodi version that has oversun's MFC decoder timestamp issue fixed (this patch: https://github.com/mihailescu2m/xbmc/co ... 5bb181344c) (on kernel 4.9 the issue was fixed on the kernel level)
you should also try kodi mainline with ffmpeg acceleration (i think latest HK packages has ffmpeg with MFC enabled)
i think tearing is only present on the X11 drivers - I ran wayland and drm/kms backends and there is no tearing at all. In fact, on drm/kms backend playing 1080p videos only use 35% CPU, the performance is really good!
I am building reicast now to check the performance. I'll try Soulcalibur, is that OK to test?
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby meveric » Wed Nov 29, 2017 4:17 pm

memeka wrote:make sure you are using a kodi version that has oversun's MFC decoder timestamp issue fixed (this patch: https://github.com/mihailescu2m/xbmc/co ... 5bb181344c) (on kernel 4.9 the issue was fixed on the kernel level)

This patch is not included in Oversuns repository even in Kodi 17.6.it's missing.
I wonder if the Kernel solution should be the desired one.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9313
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: Kernel 4.14 debugging party

Unread postby memeka » Wed Nov 29, 2017 4:28 pm

meveric wrote:
memeka wrote:make sure you are using a kodi version that has oversun's MFC decoder timestamp issue fixed (this patch: https://github.com/mihailescu2m/xbmc/co ... 5bb181344c) (on kernel 4.9 the issue was fixed on the kernel level)

This patch is not included in Oversuns repository even in Kodi 17.6.it's missing.
I wonder if the Kernel solution should be the desired one.


I think it's stupid to patch the kernel since only his code has issues (because his code was done on 3.x kernel where V4L2 had different timestamp structure).
And also I've heard people having webcam issues (maybe because of timestamps) on patched kernels.
You don't patch kernel for a userland problem, then all userland is compromised...

PS: next kodi version has a new player API, and his decoder no longer works. he said he won't port it, so starting with kodi Leia only ffmpeg will be able to use MFC. so patching the kernel is for nothing then.
User avatar
memeka
 
Posts: 4055
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Kernel 4.14 debugging party

Unread postby SamVDB² » Wed Nov 29, 2017 4:54 pm

odroid wrote:@SamVDB²
I've tested a USB webcam with guvcview today. It worked well.

Checked today with the new 4.14 image and a standard USB2 webcam works with guvcview. Unfortunately my UVC USB3.0 capturing device doesn't work :(
Thanks anyway to check.
SamVDB²
 
Posts: 7
Joined: Mon Oct 30, 2017 3:42 pm
languages_spoken: english

Re: Kernel 4.14 debugging party

Unread postby meveric » Wed Nov 29, 2017 4:59 pm

Last time I tried ffmpeg with hardware decoder it was quite a mess and locked up CPU to 100% I guess that's fixed now?
I recompile Kodi with the patch.. probably gonna try it on Kernel 3.10 as well, as I don't want to break 3.10 support.

Another thing that I forgot.
Sound is troublesome as well.. it sounds "off" and I found that software equalizer do not work anymore where they worked fine on Kernel 3.10.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9313
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

PreviousNext

Return to Linux Kernel 4.14 Debugging Party

Who is online

Users browsing this forum: No registered users and 6 guests