39
Why you should consider adopting LTS ? LTSI 3.10 development result review Shared (LTSI) kernel test project Conclusion . . LTSI Project Update LTSI Kernel, How We Can Help Automotive Industries Hisao Munakata, Tsugikazu Shibata Linux Foundation Consumer Electronics working group July 1st 2014 1 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

.

......

LTSI Project UpdateLTSI Kernel, How We Can Help Automotive Industries

Hisao Munakata, Tsugikazu Shibata

Linux Foundation Consumer Electronics working group

July 1st 2014

1 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 2: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

.. Who am I ? (Munakata)

From embedded SoC provider company RenesasLinux Foundation CE1 working Gr. Steering committeemember, LF/CEWG Architecture Gr. co-chairOne of LF/CEWG LTSI2 project initial proposerAt my company, I had been encouraging my teamdevelopers to send a patches upstreamAlso I have supported various CE customers who developdigital-TV, Blu-ray recorder and Smart-phone

1CE = consumer electronics2LTSI =Long Term Support Initiative

2 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 3: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

.. LTSI kernel update @ February 24, 2014

LTSI 3.0.79 --> 3.0.101 (EOL)LTSI 3.4.46 --> 3.4.81 (update)

3 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 4: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

Why you should consider adopting LTS ?

4 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 5: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. Upstream kernel @kernel.org

.

......You can find 1)latest released, 2)under development(=mainline, next), and several stable kernels

5 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 6: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. The release record of 3.0 series upstream kernelversion release date durationv3.1 2011-10-24 95 daysv3.2 2012-01-04 72 daysv3.3 2012-03-18 74 daysv3.4 2012-05-20 63 daysv3.5 2012-07-21 62 daysv3.6 2012-09-30 71 daysv3.7 2012-12-10 71 daysv3.8 2012-02-18 70 daysv3.9 2013-04-28 69 daysv3.10 2013-06-30 63 daysv3.11 2013-09-02 64 daysv3.12 2013-11-15 74 daysv3.13 2014-01-21 67 daysv3.14 2014-03-30 68 daysv3.15 2014-06-08 70 days

.

......Release happened regularly at around every 70 days6 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 7: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. However, not all kernels are maintained for longtermversion maintenance statusv3.1 maintained till 3.1.9, then now EOLv3.2 longterm (3.2.55), kept maintained (by Debian)v3.3 maintained till 3.3.8, then now EOLv3.4 longterm (3.4.95), kept maintainedv3.5 maintained till 3.5.7, then now EOLv3.6 maintained till 3.6.11, then now EOLv3.7 maintained till 3.7.10, then now EOLv3.8 maintained till 3.8.13, then now EOLv3.9 maintained till 3.9.11, then now EOLv3.10 longterm stable (3.10.45), kept maintainedv3.11 maintained till 3.11.10, then now EOLv3.12 longterm stable (3.12.23), kept maintained (by ???)v3.13 stable release (3.13.11), till 3.15 releasedv3.14 next longterm stable version (3.14.9)v3.15 latest release (3.15.2), will be maintained as stable till 3.17 is out

7 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 8: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. Stable release include MUST APPLY essential fixes

version fixesv3.0 -> v3.0.101 3,953v3.1 -> v3.1.9 647v3.2 -> v3.2.60 5,001v3.3 -> v3.3.8 698v3.4 -> v3.4.95 4,506v3.5 -> v3.5.7 816v3.6 -> v3.6.9 676v3.7 -> v3.7.10 718v3.8 -> v3.8.13 996v3.9 -> v3.9.11 746v3.10 -> v3.10.45 2,970v3.11 -> v3.11.10 677v3.12 -> v3.12.24 2,314v3.13 -> v3.13.11 903v3.14 -> v3.14.9 845

8 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 9: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. Longterm stable (LTS) kernel release cadence.Target kernel selection rules..

......

Maintainer will choose one LTS version per yearMaintain it for 2 years from its original releaseLTSI-3.0 is moved to EOL when 3.10 became new LTSThen, we have 2 LTS kernels versions like 3.4 and 3.10

9 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 10: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. LTS/LTSI maintainer, Greg says 3.0 moves to EOL

https://lkml.org/lkml/2013/10/13/16010 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 11: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. Greg also announced longterm for 2014 is 3.10

http://www.linuxfoundation.org/news-media/blogs/browse/2013/08/longterm-kernel-310

11 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 12: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

kernel release mechanismMessages from Greg KHWhoops, Is it too late ?

.. Upstream kernel 3.10 development (is done)

Whoops, we can not submit our latest device supportcode to 3.0 kernel now! Yes, that is true, because

item datekernel 3.10 merge window open 2013.4.28kernel 3.10 merge window close 2013.5.12kernel 3.10 release 2013.6.30

.

......

As upstream 3.10 patch merge window is already closed,there is no chance to add your code to upstream kernel.Thus a cutting-edge silicon release after development cyclecan not be supported in longterm 3.10 kernel. This might beproblematic for embedded industry Linux adopter.

12 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 13: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

LTSI 3.10 development result review

13 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 14: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. LTSI-3.10 development historyitem datekernel 3.10 merge window open 2013.4.28kernel 3.10 merge window close 2013.5.12kernel 3.10 release 2013.6.30Announce of 2013 LTS kernel version 2013.8.4LTSI-3.10 git tree open 2013.9.113.10 becomes LTS (=3.12 release) 2013.11.15LTSI-3.10 merge window open 2013.11.15patch collection period 75 daysLTSI-3.10-rc1 (=merge window close) 2014.1.29validation period 26 daysLTSI-3.10 release 2014.2.24

14 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 15: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. Major contributor for LTSI-3.10

Contributor Patch countDarren Hart (intel) 1,197Simon Horman (for Renesas) 1,122Daniel Sangorrin (Toshiba) 123Patrik Jakobsson (for intel) 46Mark Brown (linaro.org) 11Greg Kroah-Hartman (Linuxfoundation) 11Total 2,510

15 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 16: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. Major achievement of LTSI 3.10

LTTngPower efficient workqueuesIntel's BayTrail supportIntel's Minnowboard supportRenesas's R-Car H2/M2 series support backported fromthe latest mainlineXilinx Zynq board support

16 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 17: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. Hot news ! Greg announced 2014 LTS will be 3.14At the ELC2014 conference LTSI workshop, Greg stated nextLTS (and LTSI) kernel version would be 3.14.item datekernel 3.14 merge window open 2014.1.9kernel 3.14 merge window close 2014.2.2kernel 3.14 release 2014.3.30LTSI-3.14 merge window open (target) 2014.8.21patch collection period 70 daysLTSI-3.14-rc1 (=merge window close, target) 2014.10.30validation period 50+ daysLTSI-3.14 release (target) 2014.12.25?.......Please be ready for collecting patches to send LTSI-3.14 now!

17 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 18: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. Hot news 2! New LTS to LTSI update reflection cycle

.

...... Every stable update will be ported to existing LTSI code

18 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 19: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. LTSI = community LTS(longterm) + industry extra

19 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 20: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. Yocto and LTSI project coordination is working now

20 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 21: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

LTSI 3.10 development resultGovernance

.. Discipline of LTSI project management.

......

Community LTS + industry demanded extra patches.Governed by LF/CEWGFocus on kernel codea, not aiming complete BSPTherefore, can be combined with existing platformb

CPU architecture and platform neutralComply with upstream rulescIndustry friendly acceptance (flexible patch forms, etc)Help CE (and others) industry to utilize Linux

adevice drivers are part of kernel, of coursebAndroid, Yocto, Tizen, AGL, WebOS and othersce.g. signed-off-by process

21 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 22: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

Shared (LTSI) kernel test project

22 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 23: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Why LTSI kernel validation becomes important ?

.

......

Upstream LTS is managed to be completely safe.LTSI can based on community LTS kernel, andLTSI is the place to add various NEW things

Feature back port from latest mainline (relatively safe)Industry demanded not-mainlined (but commonly used)open source project codePrivately maintained bug-fix code (may be valuable)Privately developed feature code

.

......We want to validate LTSI kernel does not include anybug or regression against the community LTS code

23 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 24: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Beyond the LTS(I) kernel use, share the test case !.New value opportunity of sharing the kernel test case..

......

Now many industry start using LTS and LTSI kernel.Each company may spend a lot of time for validation.Some of fundamental kernel feature test might beduplicated

common kernel function test (detail later)common kernel benchmark test (detail later)common compatibility conformance test

Now we can consider sharing the (part of) kernel testcase on top of LTS(I) kernel across the industry.We need to assign appropriate OSS license to each testcase itself so the we can share them.

24 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 25: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Design target of shared LTSI test environment.feature..

......

Fully automated execution (nightly run)Easy to manage operation (add/edit test case)Trend monitoring capability (to catch the regression)User friendly interface (web access, GUI front end)

.operation..

......

local text execution (can install to your computer)test case sharing mechanismtest result sharing mechanism (future work)can penetrate to the upstream kernel development use

25 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 26: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Current shape

.We did trial run during LTSI-3.10 development period..

......

Cogent Embedded / Renesas worked together.We will donate environment to public so that anyone canexecute pre-build test and write own test case.

Jenkins front-end (test automation)Customizations (UI/look&feel, representation)Open Source Test Suites (public, popular) are integratedSome private test suites (shell scripts) tested

26 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 27: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Implementation

Jenkins brings - mature, robust platform to manage &distribute jobs (could be test/tests suites distributedacross various platforms)Tests/test suites wrapped into shell scripts. Idea is tokeep environment as simple/straightforward as possible:

Every step is a script: build test, deploy on target, run,collect results, parse results, cleanupIt should be possible to trigger scripts, run tests, collectresults without complex Jenkins setup

Targets are connected with server(s) via network (e.g.debug ethernet) and/or serialTest results, status, statistics, Target configuration, etc -visualized by Jenkins (accessible via web interface)

27 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 28: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Screen shot (Jenkins Web based test controller UI)

28 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 29: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Currently integrated 28 automated benchmarks

1 aim72 blobsallad3 bonnie4 Dhrystone5 cyclictest6 fio7 GLMark8 ebizzy9 ffsb10 hackbench

11 gtkperf12 himeno13 Interbench14 IOzone15 iperf16 Java17 linpack18 lmbench219 nbench-byte20 netperf

21 netpipe22 OpenSSL23 reboot24 Stream25 signaltest26 tiobench27 Whetstone28 x11perf

29 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 30: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Currently integrated 33 automated tests

1 aiostress2 bzip23 expat4 cmt_RENESAS5 crashme6 ipv6connect7 fontconfig8 ft2demos9 glib10 jpeg11 linus_stress

12 LTP-DDT.Devices13 LTP-DDT.Ipc14 LTP-DDT.Math15 LTP-DDT.Mm16 LTP-DDT.Nptl17 LTP-DDT.Pipes18 LTP-DDT.Syscalls19 LTP-DDT.Timers20 LTP.Devices21 LTP.Filesystem22 LTP.Open_Posix

23 netperf24 OpenSSL25 pi_tests26 posixtestsuite27 rmaptest28 scifab_RENESAS29 scrashme30 sdhi_0_RENESAS31 stress32 synctest33 zlib

.

......You can integrate your own test case (public/private) here30 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 31: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Target configuration

Target abstraction is just a set of environment variables

Target Architecture (ARM, x86, MIPS) / toolchain pathIP addr/login pair if target is connected/controlled viaTCP/IP (SSH, FTP, telnet) or serial port parametersTarget power-cycle settingsTarget Linux distro-specific settings (if any)temporary folder for test suites/logscommand to grab system logs

Target pre-setup requiredBootcode + kernel (under test) + minimal distro

31 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 32: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Result 1 : LTS 3.10 vs. LTSI-3.10

Use Intel Atom Minnow boardMinnow is a good platform to compareLTS and LTSI (at least works withoutadditional patch lifting, headaches,etc) - example how mainline supportshould be done.No significant deviation in resultsobserved, no major regressions.Anomaly found: fio-1.58 fails whenrunning on mSD card using LTSI-3.10(worked ok with LTS-3.10), on theother side, newer version of fio doesnot show similar anomaly.

32 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 33: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Result 2 : LTSI-3.4 vs. LTSI-3.10

Use Renesas R-CarM2 Koelschboard

Renesas is using LTSI kernels as abaseline for product-quality BSPsdelivered to customers. R-Car M2 -good candidate to compare LTSI3.4and LTSI3.10 code bases.

No significant deviation in resultsobserved, no major regressions.Anomaly found: cyclic test fails (willstudy further/deeper soon)

33 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 34: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. Our struggles while we did LTSI test trial runWe still don't have common understand/requirements

What we want to test and how we want to do this (need tocollect feedback), example: some members mentioned -they don't see sense in testing on real hardware, some -want one feature tested (e.g. IPv6, using TAHI tests),some - another, etc. we need to have more formalapproach to make testing useful.

A number of problems when comparing tests resultsHardware support often behind, sometimes very differentbetween various combination of linux kernels, etc.difficult to find hardware platform that would bewell-maintained in LTS/LTSI trees for a while. Minnow -nice work, but now minnow-max is coming, etc.Default configurations may get changes, behavior ofsome kernel features, etc. especially when comparingresults from older release with new release.

34 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 35: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. New/extended auto-test functionality 1/2

Report generationframework allows to generate readable/standalonereports) - completed

DocumentationEarly version - completed.Improvements - in progress.

Integration/tuning of new testsRenesas board-specific tests being added nowA few more open source tests suites (e.g. dbench, etc.)

35 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 36: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

Concept of shared test trialLTSI-3.0 trial result

.. New/extended auto-test functionality 2/2

Following features will be integrated soon.

Serial port, ftp and telnet support

``board/target'' initialization/configuration/deploymentAutomated power cycle/reboot control integrationBuild everything from source

target kernelbootcodeminimal distro

UI/Jenkins plugins improvements

36 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 37: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

conclusionResources

Conclusion

37 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 38: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

conclusionResources

.. Conclusion.

......

Correct understanding of the longterm (LTS) cadence isimportant. LF/CEWG develops LTSI version on top ofcommunity longterm kernel. You can gain huge cost reductionif you can fully utilize LTS & LTSI scheme.3.0 longterm maintenance cycle has been moved to EOLand3.10 is the next longterm support target. LTSI-3.10 wasreleased in February 2014. And LTSI project maintainer GregK.H.lately announced that next LTS(I) kernel will be 3.14.We have developed automated kernel test framework and triedwith LTSI-3.10 release. We are hoping to share the kernel testcase on top of commonly used LTSI kernel and upstream kerneldevelopment.

38 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update

Page 39: LTSI Project Update - LTSI Kernel, How We Can Help Automotive … · 18 LTP-DDT.Syscalls 19 LTP-DDT.Timers 20 LTP.Devices 21 LTP.Filesystem 22 LTP.Open_Posix 23 netperf 24 OpenSSL

Why you should consider adopting LTS ?LTSI 3.10 development result review

Shared (LTSI) kernel test projectConclusion

conclusionResources

.. Resourcesproject web = ltsi.linuxfoundation.orgLTSI process document (new) =http://ltsi.linuxfoundation.org/participate-in-ltsi/ltsi-development-guideML

ML subscription =https://lists.linuxfoundation.org/mailman/listinfo/ltsi-devML archives =http://lists.linuxfoundation.org/pipermail/ltsi-dev/ML patchwork =https://patchwork.kernel.org/project/ltsi-dev/list/

git(each patch) = http://git.linuxfoundation.org/?p=ltsi-kernel.git;a=summarydownload (tar ball) =http://ltsi.linuxfoundation.org/downloads/releasestwitter = @LinuxLTSIdocument archives =http://ltsi.linuxfoundation.org/resources

39 / 39 Hisao Munakata, Tsugikazu Shibata LTSI Project Update