LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 03-25-2018, 04:49 AM   #16
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190

just cos you piqued my curiosity...

Have you tried the RPi 4.14 kernel?

commit 0d118e31780349beb5ffa1777fd77058cc464ad6
Author: popcornmix <popcornmix@gmail.com>
Date: Wed Jan 17 13:54:41 2018 +0000

Revert "softirq: Let ksoftirqd do its job"

This reverts commit 4cd13c21b207e80ddb1144c576500098f2d5f882
 
Old 03-26-2018, 01:59 AM   #17
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Original Poster
Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
After the recent vandalisation that thankfully & hopefully ended in a farewell post #15, I feel the need to recap/summarize a little:

I started this thread reporting an issue affecting the official kernel that is delivered by the Raspberry Foundation with their Raspbian images and was only focusing on these official kernels. By not finding any information about this issue at the Raspberry Foundation kernel bug-track (git) and in the Raspbian release notes:
https://downloads.raspberrypi.org/ra...ease_notes.txt
I started to look for help in other places and found the first confirmation in the Kodi Forum and afterwards in a thread at LibreELEC, where the reported issue was also observed and replicated. Finally, by the help of a user (jahutchi), the offending kernel commit that caused this issue was finally found:
https://git.kernel.org/pub/scm/linux...500098f2d5f882
The kernel devs got involved and I was expecting a fix from them, sharing the same approach/expectations like popcornimx (Raspberry Foundation):
https://forum.libreelec.tv/thread/42...6233#post76233
"ideally upstream kernel devs acknowledging the issue introduced and finding a solution"
Linus (Torvalds) came promptly with a fix:
https://patchwork.linuxtv.org/patch/46368/
that wasn't adopted by the Raspberry Foundation - detailed in the following sections.

Meanwhile, a little over a week ago, the folks at Raspberry released their new Raspbian image, I did download it and had no time to check the source code that was used to build its kernel. The only method to obtain the exact source code that I'm aware of implies loading&running the Raspbian on a Pi board and following this guide:
https://github.com/notro/rpi-source/wiki
(mentioned as a link pointing at the Raspberry Forum in my first post in this thread)

I finally checked it now, after a good coffee, and just found out that the folks at Raspberry Foundation reverted the offending commit in their latest kernel release that comes with Raspian:
https://www.raspberrypi.org/downloads/raspbian/
Version: March 2018
Release date: 2018-03-13
Kernel version: 4.9

The exact kernel version after opening the Raspbian image (Kinder Surprise!) is 4.9.80+ and the source code for this kernel build is to be found at (152MB !):
https://github.com/raspberrypi/linux...eace130.tar.gz

Running a diff on the files: /kernel/softirq.c (from the source archive) and the reference from Linus' master at:
https://github.com/torvalds/linux/bl...rnel/softirq.c
got me exactly the offending commit:
https://git.kernel.org/pub/scm/linux...500098f2d5f882

I haven't tested this kernel yet but will do so in the following days. As the offending commit was simply reverted and no patch applied, I don't expect to get into any issues with this new kernel and hope to enjoy the same stability as with my actual (and old) 4.4.50+

It's interesting to follow the development on the softirq.c with the kernel folks (pretty difficult as it spreads over a few threads) and hope they'll come up with a resolution soon that will be generally available and backported/updated.
Just for reference, the kernel devs discussion is to be found in the links from this post:
https://forum.kodi.tv/showthread.php...186#pid2717186
 
Old 03-26-2018, 06:51 AM   #18
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by abga View Post
I started this thread reporting an issue affecting the official kernel that is delivered by the Raspberry Foundation with their Raspbian images and was only focusing on these official kernels.
Why, is this a Raspbian forum?

You can get the rpi 4.14 source with
git clone --single-branch -b rpi-4.14.y https://github.com/raspberrypi/linux.git

The firmware has been built against 4.14 since early February and can also be pulled from git
 
Old 03-28-2018, 05:43 PM   #19
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Original Poster
Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Got the time to load the latest Raspberry Foundation official kernel on Slackware ARM 14.2 & -current:
Kernel: 4.9.80
Firmware: Mar 13 2018 18:45:03, version 6e08617e7767b09ef97b3d6cee8b75eba6d7ee0b (clean) (release)
- that comes with the offending commit reverted:
https://git.kernel.org/pub/scm/linux...500098f2d5f882
And on tvheadend (4.2.5) I still get these - on both SD & HD channels:
Code:
Mar 28 10:12:22 pi2s1 tvheadend[1437]: TS: Astra/11302.75H/ServusTV HD Deutschland: H264 @ #4920 Continuity counter error (total 1)
Mar 28 10:12:22 pi2s1 tvheadend[1437]: TS: Astra/11302.75H/ServusTV HD Deutschland: AC3 @ #4924 Continuity counter error (total 1)
Mar 28 10:23:06 pi2s1 tvheadend[1437]: TS: Astra/11626.5V/CNN Int.: MPEG2VIDEO @ #165 Continuity counter error (total 1)
Mar 28 10:23:31 pi2s1 tvheadend[1437]: TS: Astra/11626.5V/CNN Int.: MPEG2VIDEO @ #165 Continuity counter error (total 2)
Mar 28 10:31:33 pi2s1 tvheadend[1437]: TS: Astra/11626.5V/CNN Int.: MPEG2VIDEO @ #165 Continuity counter error (total 3)
Mar 28 10:31:37 pi2s1 tvheadend[1437]: epggrab: PSIP: ATSC Grabber - data completion timeout for 11626.5V in Astra
Mar 28 10:31:37 pi2s1 tvheadend[1437]: epggrab: EIT: DVB Grabber - data completion timeout for 11626.5V in Astra
Mar 28 10:35:43 pi2s1 tvheadend[1437]: TS: Astra/11597V/Bloomberg Europe TV: MPEG2VIDEO @ #1360 Continuity counter error (total 1)
Mar 28 10:36:15 pi2s1 tvheadend[1437]: TS: Astra/11597V/Bloomberg Europe TV: MPEG2VIDEO @ #1360 Continuity counter error (total 2)
I haven't noticed the actual frame drops that might have got resulted from these continuity counter errors in Kodi 17.4, maybe because they are not that many and not occurring that often.
However, I moved back to the well performing kernel 4.4.50 & firmware 3ca4cf4a663c5351eaec08b29d50d6e8324981b4 and will maybe stick with it.
Getting the source code for 4.9.80 from the Raspberry Foundation, applying back the offending commit and then Linus' patch, recompiling the whole kernel in order to test it, might get a little beyond my time availability ATM.
And, there is another recent development - show stopper - for me and my Pi0 (BCM2835) multimedia usage (Kodi), reported here:
https://forum.kodi.tv/showthread.php?tid=326206

I have 3 Raspberry Pi0 boards that I dedicated solely for Multimedia - DVB streaming & Kodi, for all of them I bought a MPEG2 license and recreated the audio schematics from the Pi3B board (analogue audio buffer "sound card"). Given this situation, I'm afraid I'll stick with 4.4.50 until I retire them / throw away / magic smoke will come out of them.

Investigation stopped, issue resolved (was already), kernel devs might come with a fix in the future.
 
Old 03-29-2018, 06:26 PM   #20
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190
Suggest you don't stop

https://forum.kodi.tv/showthread.php?tid=326206
 
Old 03-30-2018, 06:15 AM   #21
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 264

Rep: Reputation: 74
Quote:
Originally Posted by OldHolborn View Post
Why, is this a Raspbian forum?

You can get the rpi 4.14 source with
git clone --single-branch -b rpi-4.14.y https://github.com/raspberrypi/linux.git

The firmware has been built against 4.14 since early February and can also be pulled from git
The 'rpi-4.14.y' branch became the default a few days ago. They've finally moved on from the 4.9 kernel. Hooray!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware ARM vs Raspbian inquiry Exaga Slackware - ARM 15 12-05-2016 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration