SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
(Kernel) Upstreaming 101:
Social and Technical Lessons
Oct 29, 2012
Deepak Saxena
dsaxena@plexity.net
The Problem
● Ever increasing number of Linux developers!
● Specially in the ARM world
● Lots of good technical documentation!
● Linux Device Drivers - http://lwn.net/Kernel/LDD3/
● Understanding the Linux Kernel - http://goo.gl/p4pM4
● Linux Kernel Development - http://goo.gl/0YY27
● Organizations beginning to understand technical
and business benefits of getting code upstream!
● More developers interested in working upstream!
● This is a problem?
The Issues...
● Using documented APIs and infrastructure is easy
● Creating new APIs and infrastructure is hard
● Creating good APIs and infrastructure is harder
● Creating good APIs and infrastructure for upstream is even harder
● Many SOC problems require creating new subsystems
● Or modifying existing ones to support new features
● Books tend to be x86 oriented
● Do not cover drivers common to other arches: i2c, spi, etc
● Make assumptions about underlying HW
● (See Upcoming Porting Linux by Jon Masters, ETA 2013)
● Working with the community is not documented
● Much tribal knowledge on the process
● Same mistakes are often made by new participants
Today's Goals
● Provide an overview of upstreaming code
● Social and Technical
● From Design to Submitting Patches
● How does the process differ from closed development?
● Some general guidelines on design and coding.
● Some low level details on submitting patches.
● Geared at those who are completely new to this world
● For both Managers and Engineers
Who Am I? Why Listen To Me?
● Kernel Working Group TL
● I make spreadsheets and run meetings
● Before that:
● 12 years kernel experience
● One of first folks at Intel to work on Linux drivers
● (though a little under the radar...)
● Developed and maintained IXP* Xscale NPU ports
● Kernel maintainer at MontaVista for several years
● Reviewed all patches for distro kernel
● Reviewed thousands of lines of vendor BSP code
● OLPC kernel maintainer for about 1.5 years
● Was active in reviewing code upstream
● Have given similar talk at various conferences:
● Linux Bangalore, ELC, LinuxConf.au, Fosdem
V3.4
Who Exactly Is The Community?
(From list of top 3.4 contributors: http://lwn.net/Articles/496193/)
Upstream Development:
The Right and Wrong Way
3.x Release 3.y+1-rc1 Release 3.y+1 Release
2 Week Merge Window 6-12 Week Stabilization
Your Development
Starts Here
Months to Years...
If you wait until this window to release your
code, expecting it to just go in, it will not (there
have been a few exceptions, but very rare). You
need to release your code early and often
during your development phase to get feedback
and fix issues as they come up.
Upstream Based Development
Socialize
Ideas
Post
Patches
Community
Review
Revise
Patches
Patches
OK?
Redesign or
Minor Fixes?
Start
Development
Redesign
YES
●Release Early, Release Often
●Iterate Design/Code Cycles
●Social component very important
●Discussion Time >> Coding Time
Avoiding Issues:
Don't Re-invent the Wheel
● Do Your Homework
● Many problems already have known solutions in Linux
● Driver APIs for specific functionality
● User/Kernel interfaces and system level tools
● It may just not be obvious at first.
● May not be documented in one single place
● May just be tribal knowledge
● Google is your friend here
● Read the code
● Ask the experts
● Release Early, Release Often to save your time!
Avoiding Issues:
Abstraction
● Don't Abstract Unnecessarily
● NO cross-OS HALs (unless extremely well designed)
● Don't add wrappers around existing in-kernel APIs
● Too much abstraction makes code harder to maintain
● Code is harder to read/debug
● Abstraction layer might have bugs
● Kernel API changes are hidden
● Difficult for someone new to get involved
● Release Early, Release Often to find these issues early!
Avoiding Issues:
Solving Common Problems
● Your HW is Not Unique
● Your HW may seem unique at first, however...
● Others are close by or will soon follow
● Most HW comes from similar research paths
● They will need same kernel support as you do
● Don't blindly add hooks to kernel for these features
● We don't want multiple implementations of same idea
● Need to add APIs at proper points in kernel
● Work with external developers to develop these
● Work with other HW vendors
● !THIS IS WHAT LINARO IS ALL ABOUT!
● Release Early, Release Often to find common solutions!
Avoiding Issues:
Good API Design
● Good APIs are:
● Easy to use & Hard to misuse
● Follow KISS Principle: Keep it Simple Stupid
● Should be very clear from just name, parameters
● Should be obvious when you use it wrongly
● Build time errors or obvious error values
● Just read Rusty's Blog Post:
● http://ozlabs.org/~rusty/index.cgi/tech/2008-03-30.html
● Release Early, Release often so you don't built a whole
stack of software on top of poorly designed APIs!
Practicalities:
How Do I Post Patches?
● Read Documentation/SubmittingPatches
● Send email to maintainers and list
● One cover email with:
● Summary of WHAT you are solving
● Explaining WHY you used your approach
● Talk about any dependent patchsets
● Don't assume knowledge about your technology area
● git log --diff (which includes patch headers)
● Always post patch against latest tip
● One message per patch
● Break up your changes into small units that build on each other
● If you are adding 100's of lines to one function...you're doing it wrong
● Refactor your patches using “git-rebase -i”
● Go to today's git session
Practicalities:
Who do I send my patches to?
● Use git-log and git-blame commands
● git-log to find out the last few people to make changes
● git-blame to find out if
● Read MAINTAINERS file in top level directory
● get-maintainers.pl script
● Will give you mailing list and maintainer address
~/src/linux$ ./scripts/get_maintainer.pl spi_message_queue.patch
Grant Likely <grant.likely@secretlab.ca> (maintainer:SPI SUBSYSTEM)
Randy Dunlap <rdunlap@xenotime.net> (maintainer:DOCUMENTATION)
spi­devel­general@lists.sourceforge.net (open list:SPI SUBSYSTEM)
linux­doc@vger.kernel.org (open list:DOCUMENTATION)
linux­kernel@vger.kernel.org (open list)
~/src/linux$ ./scripts/get_maintainer.pl ­f drivers/mfd/max8925­core.c
Samuel Ortiz <sameo@linux.intel.com> (supporter:MULTIFUNCTION DEV...)
linux­kernel@vger.kernel.org (open list)
:~/src/linux$ ./scripts/get_maintainer.pl ­f drivers/i2c
"Jean Delvare (PC drivers, core)" <khali@linux­fr.org> (maintainer:I2C SUBSYSTEM)
"Ben Dooks (embedded platforms)" <ben­linux@fluff.org> (maintainer:I2C SUBSYSTEM)
"Wolfram Sang (embedded platforms)" <w.sang@pengutronix.de> (maintainer:I2C SUBSYSTEM)
linux­i2c@vger.kernel.org (open list:I2C SUBSYSTEM)
linux­kernel@vger.kernel.org (open list)
Practicalities:
Using Signed-Off By
● Signed-off-by is legally binding!
● Make sure you have approval!
        Developer's Certificate of Origin 1.1
        By making a contribution to this project, I certify that:
        (a) The contribution was created in whole or in part by me and I
            have the right to submit it under the open source license
            indicated in the file; or
        (b) The contribution is based upon previous work that, to the best
            of my knowledge, is covered under an appropriate open source
            license and I have the right under that license to submit that
            work with modifications, whether created in whole or in part
            by me, under the same open source license (unless I am
            permitted to submit under a different license), as indicated
            in the file; or
        (c) The contribution was provided directly to me by some other
            person who certified (a), (b) or (c) and I have not modified
            it.
        (d) I understand and agree that this project and the contribution
            are public and that a record of the contribution (including all
            personal information I submit with it, including my sign­off) is
            maintained indefinitely and may be redistributed consistent with
            this project or the open source license(s) involved.
Practicalities:
Nobody Replied to My Patches!
● Be patient, don't expect an immediate response.
● Check mailing list archives:
● What's the typical response rate?
● Did the maintainer announce a vacation?
● Is this a merge window?
● Everyone is super busy, try again when it closes
● If it really seems like patches got dropped, email
the maintainer privately with a pointer to thread.
● If still no response:
● Ping one level up in tree.
● For drivers: Ping Greg KH
● Sometimes you just have to email patches to Linus directly
● Shames the maintainer, gets his/her attention
Practicalities:
Responses From Other Developers
● Acked-by: This person is OK with the changes.
Usually a maintainer of a subsystem affected by
patch.
● Reviewed-by: This person has done a thorough
technical review of the patch.
● Tested-by: This person did some level of testing.
Allows maintainer to know that it has been
validated on an environment other than original
author's.
Practicalities:
When Someone Attacks You :(
● It unfortunately happens :(
● Do NOT Escalate
● Take a step back
● Go work on something else
● Grab a beer (BUT NOT WHILE REPLYING!)
● Pick out the technical issues
● Get some help in reading the negative email
● Respond to just these
● Hint: Attending conferences and meeting people
face to face reduces the likelihood of this
happening.
Practicalities:
I can't Release Early and Often
● Ask for Private Reviews
● NDAs with upstream maintainer(s) and experts
● Linaro can possibly help here
● Several of these people are part of our organization
● We have good relationships with many upstream maintainers
● Can you release the concepts if not the code?
● Fine art of providing enough details w/o giving away the
secret sauce
● What are the high level problems you want to solve?
Summary
● The community is just a bunch of developers
● Like you, just with more experience of the process.
● Most of them want to help!
● Good kernel code:
● Doesn't re-invent what's already there
● Doesn't add abstraction for the sake of abstraction
● Has well-designed APIs
● Solves common problems
● Read the documentation and the code
● Participate openly and respectfully
● Ask us for help
● Release Early, Release Often :)
Questions or Comments?

Weitere ähnliche Inhalte

Was ist angesagt?

Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®Hannes Lowette
 
Breaking into Open Source and Linux: A USB 3.0 Success Story
Breaking into Open Source and Linux: A USB 3.0 Success StoryBreaking into Open Source and Linux: A USB 3.0 Success Story
Breaking into Open Source and Linux: A USB 3.0 Success StorySage Sharp
 
Terratest with Terraform
Terratest with TerraformTerratest with Terraform
Terratest with TerraformKnoldus Inc.
 
Joe Damato
Joe DamatoJoe Damato
Joe DamatoOntico
 
The Development History of PVS-Studio for Linux
The Development History of PVS-Studio for LinuxThe Development History of PVS-Studio for Linux
The Development History of PVS-Studio for LinuxPVS-Studio
 
Continuous delivery of embedded systems embedded meetup
Continuous delivery of embedded systems   embedded meetupContinuous delivery of embedded systems   embedded meetup
Continuous delivery of embedded systems embedded meetupMike Long
 
OPNFV CI and Challenges: How we solved them - if we solved them at all!
OPNFV CI and Challenges: How we solved them - if we solved them at all!OPNFV CI and Challenges: How we solved them - if we solved them at all!
OPNFV CI and Challenges: How we solved them - if we solved them at all!Fatih Degirmenci
 
Android lint presentation
Android lint presentationAndroid lint presentation
Android lint presentationSinan KOZAK
 
2013 10-28 php ug presentation - ci using phing and hudson
2013 10-28 php ug presentation - ci using phing and hudson2013 10-28 php ug presentation - ci using phing and hudson
2013 10-28 php ug presentation - ci using phing and hudsonShreeniwas Iyer
 
Linux on Open Source Hardware with Open Source chip design (36c3)
Linux on Open Source Hardware with Open Source chip design (36c3)Linux on Open Source Hardware with Open Source chip design (36c3)
Linux on Open Source Hardware with Open Source chip design (36c3)Drew Fustini
 
The Professional Programmer
The Professional ProgrammerThe Professional Programmer
The Professional ProgrammerDave Cross
 
Software Quality Management of Opensource Project ( ubuntu and django )
Software Quality Management of Opensource Project ( ubuntu and django )Software Quality Management of Opensource Project ( ubuntu and django )
Software Quality Management of Opensource Project ( ubuntu and django )uisp dsin
 
Getting Started Contributing to Docker
Getting Started Contributing to DockerGetting Started Contributing to Docker
Getting Started Contributing to DockerDocker, Inc.
 
Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2Andrew Yatsenko
 
CI and CD with Jenkins
CI and CD with JenkinsCI and CD with Jenkins
CI and CD with JenkinsMartin Málek
 
HKG15-902: Upstreaming 201
HKG15-902: Upstreaming 201HKG15-902: Upstreaming 201
HKG15-902: Upstreaming 201Linaro
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()Blue Elephant Consulting
 

Was ist angesagt? (20)

Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®Build software like a bag of marbles, not a castle of LEGO®
Build software like a bag of marbles, not a castle of LEGO®
 
Breaking into Open Source and Linux: A USB 3.0 Success Story
Breaking into Open Source and Linux: A USB 3.0 Success StoryBreaking into Open Source and Linux: A USB 3.0 Success Story
Breaking into Open Source and Linux: A USB 3.0 Success Story
 
Docker
DockerDocker
Docker
 
Terratest with Terraform
Terratest with TerraformTerratest with Terraform
Terratest with Terraform
 
Joe Damato
Joe DamatoJoe Damato
Joe Damato
 
The Development History of PVS-Studio for Linux
The Development History of PVS-Studio for LinuxThe Development History of PVS-Studio for Linux
The Development History of PVS-Studio for Linux
 
Continuous delivery of embedded systems embedded meetup
Continuous delivery of embedded systems   embedded meetupContinuous delivery of embedded systems   embedded meetup
Continuous delivery of embedded systems embedded meetup
 
OPNFV CI and Challenges: How we solved them - if we solved them at all!
OPNFV CI and Challenges: How we solved them - if we solved them at all!OPNFV CI and Challenges: How we solved them - if we solved them at all!
OPNFV CI and Challenges: How we solved them - if we solved them at all!
 
Android lint presentation
Android lint presentationAndroid lint presentation
Android lint presentation
 
2013 10-28 php ug presentation - ci using phing and hudson
2013 10-28 php ug presentation - ci using phing and hudson2013 10-28 php ug presentation - ci using phing and hudson
2013 10-28 php ug presentation - ci using phing and hudson
 
Automated deployment
Automated deploymentAutomated deployment
Automated deployment
 
Linux on Open Source Hardware with Open Source chip design (36c3)
Linux on Open Source Hardware with Open Source chip design (36c3)Linux on Open Source Hardware with Open Source chip design (36c3)
Linux on Open Source Hardware with Open Source chip design (36c3)
 
The Professional Programmer
The Professional ProgrammerThe Professional Programmer
The Professional Programmer
 
Software Quality Management of Opensource Project ( ubuntu and django )
Software Quality Management of Opensource Project ( ubuntu and django )Software Quality Management of Opensource Project ( ubuntu and django )
Software Quality Management of Opensource Project ( ubuntu and django )
 
Python lecture 01
Python lecture 01Python lecture 01
Python lecture 01
 
Getting Started Contributing to Docker
Getting Started Contributing to DockerGetting Started Contributing to Docker
Getting Started Contributing to Docker
 
Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2Performance profiling and testing of symfony application 2
Performance profiling and testing of symfony application 2
 
CI and CD with Jenkins
CI and CD with JenkinsCI and CD with Jenkins
CI and CD with Jenkins
 
HKG15-902: Upstreaming 201
HKG15-902: Upstreaming 201HKG15-902: Upstreaming 201
HKG15-902: Upstreaming 201
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
 

Andere mochten auch

Ying Chang Builders
Ying Chang BuildersYing Chang Builders
Ying Chang Buildersmetcom
 
Conocimientos basicos de Internet
Conocimientos basicos de InternetConocimientos basicos de Internet
Conocimientos basicos de InternetCristina Bogni
 
Notas finales udes grupo medellin 15 diseño de software
Notas finales udes grupo medellin 15 diseño de softwareNotas finales udes grupo medellin 15 diseño de software
Notas finales udes grupo medellin 15 diseño de softwarePaul Marin
 
Plan anual y plan de 1er Lapso programación compartido
Plan anual y plan de 1er Lapso programación compartidoPlan anual y plan de 1er Lapso programación compartido
Plan anual y plan de 1er Lapso programación compartidoHome
 
Taller Bases De Datos
Taller  Bases De DatosTaller  Bases De Datos
Taller Bases De Datosblaze0002
 
Convertir Moodle En Un Punto Itxaro Latasa
Convertir Moodle En Un Punto Itxaro LatasaConvertir Moodle En Un Punto Itxaro Latasa
Convertir Moodle En Un Punto Itxaro LatasaMoodleMoot Euskadi
 

Andere mochten auch (9)

Joomla
JoomlaJoomla
Joomla
 
Serie de fourier
Serie de fourierSerie de fourier
Serie de fourier
 
Ying Chang Builders
Ying Chang BuildersYing Chang Builders
Ying Chang Builders
 
Primera b 2012
Primera b 2012Primera b 2012
Primera b 2012
 
Conocimientos basicos de Internet
Conocimientos basicos de InternetConocimientos basicos de Internet
Conocimientos basicos de Internet
 
Notas finales udes grupo medellin 15 diseño de software
Notas finales udes grupo medellin 15 diseño de softwareNotas finales udes grupo medellin 15 diseño de software
Notas finales udes grupo medellin 15 diseño de software
 
Plan anual y plan de 1er Lapso programación compartido
Plan anual y plan de 1er Lapso programación compartidoPlan anual y plan de 1er Lapso programación compartido
Plan anual y plan de 1er Lapso programación compartido
 
Taller Bases De Datos
Taller  Bases De DatosTaller  Bases De Datos
Taller Bases De Datos
 
Convertir Moodle En Un Punto Itxaro Latasa
Convertir Moodle En Un Punto Itxaro LatasaConvertir Moodle En Un Punto Itxaro Latasa
Convertir Moodle En Un Punto Itxaro Latasa
 

Ähnlich wie LCE12: Intro Training: Upstreaming 101

Upstreaming 1013
Upstreaming 1013Upstreaming 1013
Upstreaming 1013Linaro
 
Linux Kernel Introduction
Linux Kernel IntroductionLinux Kernel Introduction
Linux Kernel IntroductionSage Sharp
 
Kernel Recipes 2015: How to choose a kernel to ship with a product
Kernel Recipes 2015: How to choose a kernel to ship with a productKernel Recipes 2015: How to choose a kernel to ship with a product
Kernel Recipes 2015: How to choose a kernel to ship with a productAnne Nicolas
 
Ice breaker with dev ops
Ice breaker with dev opsIce breaker with dev ops
Ice breaker with dev opsMukta Aphale
 
LAS16-TR02: Upstreaming 101
LAS16-TR02: Upstreaming 101LAS16-TR02: Upstreaming 101
LAS16-TR02: Upstreaming 101Linaro
 
icebreakerwithdevops-150218112943-conversion-gate02
icebreakerwithdevops-150218112943-conversion-gate02icebreakerwithdevops-150218112943-conversion-gate02
icebreakerwithdevops-150218112943-conversion-gate02Manohar Kumar
 
SFO15-TR2: Upstreaming 101
SFO15-TR2: Upstreaming 101SFO15-TR2: Upstreaming 101
SFO15-TR2: Upstreaming 101Linaro
 
Get your FLOSS problems solved
Get your FLOSS problems solvedGet your FLOSS problems solved
Get your FLOSS problems solvedRex Tsai
 
HKG15-901: Upstreaming 101
HKG15-901: Upstreaming 101HKG15-901: Upstreaming 101
HKG15-901: Upstreaming 101Linaro
 
Upstreaming 101 - SFO17-TR02
Upstreaming 101 - SFO17-TR02Upstreaming 101 - SFO17-TR02
Upstreaming 101 - SFO17-TR02Linaro
 
BUD17-TR02: Upstreaming 101
BUD17-TR02: Upstreaming 101 BUD17-TR02: Upstreaming 101
BUD17-TR02: Upstreaming 101 Linaro
 
Teaching Open Source In The University
Teaching Open Source In The UniversityTeaching Open Source In The University
Teaching Open Source In The UniversityDominique Cimafranca
 
Getting started contributing to Apache Spark
Getting started contributing to Apache SparkGetting started contributing to Apache Spark
Getting started contributing to Apache SparkHolden Karau
 
RootStack - Devfactory
RootStack - DevfactoryRootStack - Devfactory
RootStack - DevfactoryKangaroot
 
Pentester++
Pentester++Pentester++
Pentester++CTruncer
 
LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...
LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...
LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...Linaro
 
LCE13: Test and Validation Summit: The future of testing at Linaro
LCE13: Test and Validation Summit: The future of testing at LinaroLCE13: Test and Validation Summit: The future of testing at Linaro
LCE13: Test and Validation Summit: The future of testing at LinaroLinaro
 

Ähnlich wie LCE12: Intro Training: Upstreaming 101 (20)

Upstreaming 1013
Upstreaming 1013Upstreaming 1013
Upstreaming 1013
 
Linux Kernel Introduction
Linux Kernel IntroductionLinux Kernel Introduction
Linux Kernel Introduction
 
Kernel Recipes 2015: How to choose a kernel to ship with a product
Kernel Recipes 2015: How to choose a kernel to ship with a productKernel Recipes 2015: How to choose a kernel to ship with a product
Kernel Recipes 2015: How to choose a kernel to ship with a product
 
Ice breaker with dev ops
Ice breaker with dev opsIce breaker with dev ops
Ice breaker with dev ops
 
LAS16-TR02: Upstreaming 101
LAS16-TR02: Upstreaming 101LAS16-TR02: Upstreaming 101
LAS16-TR02: Upstreaming 101
 
icebreakerwithdevops-150218112943-conversion-gate02
icebreakerwithdevops-150218112943-conversion-gate02icebreakerwithdevops-150218112943-conversion-gate02
icebreakerwithdevops-150218112943-conversion-gate02
 
SFO15-TR2: Upstreaming 101
SFO15-TR2: Upstreaming 101SFO15-TR2: Upstreaming 101
SFO15-TR2: Upstreaming 101
 
Get your FLOSS problems solved
Get your FLOSS problems solvedGet your FLOSS problems solved
Get your FLOSS problems solved
 
HKG15-901: Upstreaming 101
HKG15-901: Upstreaming 101HKG15-901: Upstreaming 101
HKG15-901: Upstreaming 101
 
Upstreaming 101 - SFO17-TR02
Upstreaming 101 - SFO17-TR02Upstreaming 101 - SFO17-TR02
Upstreaming 101 - SFO17-TR02
 
BUD17-TR02: Upstreaming 101
BUD17-TR02: Upstreaming 101 BUD17-TR02: Upstreaming 101
BUD17-TR02: Upstreaming 101
 
Teaching Open Source In The University
Teaching Open Source In The UniversityTeaching Open Source In The University
Teaching Open Source In The University
 
2 b 2-hatta
2 b 2-hatta2 b 2-hatta
2 b 2-hatta
 
Getting started contributing to Apache Spark
Getting started contributing to Apache SparkGetting started contributing to Apache Spark
Getting started contributing to Apache Spark
 
Software maintenance PyConPL 2016
Software maintenance PyConPL 2016Software maintenance PyConPL 2016
Software maintenance PyConPL 2016
 
What is dev ops?
What is dev ops?What is dev ops?
What is dev ops?
 
RootStack - Devfactory
RootStack - DevfactoryRootStack - Devfactory
RootStack - Devfactory
 
Pentester++
Pentester++Pentester++
Pentester++
 
LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...
LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...
LCE13: Test and Validation Mini-Summit: Review Current Linaro Engineering Pro...
 
LCE13: Test and Validation Summit: The future of testing at Linaro
LCE13: Test and Validation Summit: The future of testing at LinaroLCE13: Test and Validation Summit: The future of testing at Linaro
LCE13: Test and Validation Summit: The future of testing at Linaro
 

Mehr von Linaro

Deep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea GalloDeep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea GalloLinaro
 
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta VekariaArm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta VekariaLinaro
 
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua MoraHuawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua MoraLinaro
 
Bud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qaBud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qaLinaro
 
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018Linaro
 
HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018Linaro
 
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...Linaro
 
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...Linaro
 
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...Linaro
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Linaro
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineLinaro
 
HKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteHKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteLinaro
 
HKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP WorkshopHKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP WorkshopLinaro
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineLinaro
 
HKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and allHKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and allLinaro
 
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse HypervisorHKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse HypervisorLinaro
 
HKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMUHKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMULinaro
 
HKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8MHKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8MLinaro
 
HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation Linaro
 
HKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted bootHKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted bootLinaro
 

Mehr von Linaro (20)

Deep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea GalloDeep Learning Neural Network Acceleration at the Edge - Andrea Gallo
Deep Learning Neural Network Acceleration at the Edge - Andrea Gallo
 
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta VekariaArm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
Arm Architecture HPC Workshop Santa Clara 2018 - Kanta Vekaria
 
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua MoraHuawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
Huawei’s requirements for the ARM based HPC solution readiness - Joshua Mora
 
Bud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qaBud17 113: distribution ci using qemu and open qa
Bud17 113: distribution ci using qemu and open qa
 
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
OpenHPC Automation with Ansible - Renato Golin - Linaro Arm HPC Workshop 2018
 
HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018HPC network stack on ARM - Linaro HPC Workshop 2018
HPC network stack on ARM - Linaro HPC Workshop 2018
 
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
It just keeps getting better - SUSE enablement for Arm - Linaro HPC Workshop ...
 
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
Intelligent Interconnect Architecture to Enable Next Generation HPC - Linaro ...
 
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
Yutaka Ishikawa - Post-K and Arm HPC Ecosystem - Linaro Arm HPC Workshop Sant...
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
 
HKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteHKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening Keynote
 
HKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP WorkshopHKG18-318 - OpenAMP Workshop
HKG18-318 - OpenAMP Workshop
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
 
HKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and allHKG18-315 - Why the ecosystem is a wonderful thing, warts and all
HKG18-315 - Why the ecosystem is a wonderful thing, warts and all
 
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse HypervisorHKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
HKG18- 115 - Partitioning ARM Systems with the Jailhouse Hypervisor
 
HKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMUHKG18-TR08 - Upstreaming SVE in QEMU
HKG18-TR08 - Upstreaming SVE in QEMU
 
HKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8MHKG18-113- Secure Data Path work with i.MX8M
HKG18-113- Secure Data Path work with i.MX8M
 
HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation HKG18-120 - Devicetree Schema Documentation and Validation
HKG18-120 - Devicetree Schema Documentation and Validation
 
HKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted bootHKG18-223 - Trusted FirmwareM: Trusted boot
HKG18-223 - Trusted FirmwareM: Trusted boot
 

Kürzlich hochgeladen

Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 

Kürzlich hochgeladen (20)

Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 

LCE12: Intro Training: Upstreaming 101

  • 1. (Kernel) Upstreaming 101: Social and Technical Lessons Oct 29, 2012 Deepak Saxena dsaxena@plexity.net
  • 2. The Problem ● Ever increasing number of Linux developers! ● Specially in the ARM world ● Lots of good technical documentation! ● Linux Device Drivers - http://lwn.net/Kernel/LDD3/ ● Understanding the Linux Kernel - http://goo.gl/p4pM4 ● Linux Kernel Development - http://goo.gl/0YY27 ● Organizations beginning to understand technical and business benefits of getting code upstream! ● More developers interested in working upstream! ● This is a problem?
  • 3. The Issues... ● Using documented APIs and infrastructure is easy ● Creating new APIs and infrastructure is hard ● Creating good APIs and infrastructure is harder ● Creating good APIs and infrastructure for upstream is even harder ● Many SOC problems require creating new subsystems ● Or modifying existing ones to support new features ● Books tend to be x86 oriented ● Do not cover drivers common to other arches: i2c, spi, etc ● Make assumptions about underlying HW ● (See Upcoming Porting Linux by Jon Masters, ETA 2013) ● Working with the community is not documented ● Much tribal knowledge on the process ● Same mistakes are often made by new participants
  • 4. Today's Goals ● Provide an overview of upstreaming code ● Social and Technical ● From Design to Submitting Patches ● How does the process differ from closed development? ● Some general guidelines on design and coding. ● Some low level details on submitting patches. ● Geared at those who are completely new to this world ● For both Managers and Engineers
  • 5. Who Am I? Why Listen To Me? ● Kernel Working Group TL ● I make spreadsheets and run meetings ● Before that: ● 12 years kernel experience ● One of first folks at Intel to work on Linux drivers ● (though a little under the radar...) ● Developed and maintained IXP* Xscale NPU ports ● Kernel maintainer at MontaVista for several years ● Reviewed all patches for distro kernel ● Reviewed thousands of lines of vendor BSP code ● OLPC kernel maintainer for about 1.5 years ● Was active in reviewing code upstream ● Have given similar talk at various conferences: ● Linux Bangalore, ELC, LinuxConf.au, Fosdem
  • 6. V3.4 Who Exactly Is The Community? (From list of top 3.4 contributors: http://lwn.net/Articles/496193/)
  • 7. Upstream Development: The Right and Wrong Way 3.x Release 3.y+1-rc1 Release 3.y+1 Release 2 Week Merge Window 6-12 Week Stabilization Your Development Starts Here Months to Years... If you wait until this window to release your code, expecting it to just go in, it will not (there have been a few exceptions, but very rare). You need to release your code early and often during your development phase to get feedback and fix issues as they come up.
  • 8. Upstream Based Development Socialize Ideas Post Patches Community Review Revise Patches Patches OK? Redesign or Minor Fixes? Start Development Redesign YES ●Release Early, Release Often ●Iterate Design/Code Cycles ●Social component very important ●Discussion Time >> Coding Time
  • 9. Avoiding Issues: Don't Re-invent the Wheel ● Do Your Homework ● Many problems already have known solutions in Linux ● Driver APIs for specific functionality ● User/Kernel interfaces and system level tools ● It may just not be obvious at first. ● May not be documented in one single place ● May just be tribal knowledge ● Google is your friend here ● Read the code ● Ask the experts ● Release Early, Release Often to save your time!
  • 10. Avoiding Issues: Abstraction ● Don't Abstract Unnecessarily ● NO cross-OS HALs (unless extremely well designed) ● Don't add wrappers around existing in-kernel APIs ● Too much abstraction makes code harder to maintain ● Code is harder to read/debug ● Abstraction layer might have bugs ● Kernel API changes are hidden ● Difficult for someone new to get involved ● Release Early, Release Often to find these issues early!
  • 11. Avoiding Issues: Solving Common Problems ● Your HW is Not Unique ● Your HW may seem unique at first, however... ● Others are close by or will soon follow ● Most HW comes from similar research paths ● They will need same kernel support as you do ● Don't blindly add hooks to kernel for these features ● We don't want multiple implementations of same idea ● Need to add APIs at proper points in kernel ● Work with external developers to develop these ● Work with other HW vendors ● !THIS IS WHAT LINARO IS ALL ABOUT! ● Release Early, Release Often to find common solutions!
  • 12. Avoiding Issues: Good API Design ● Good APIs are: ● Easy to use & Hard to misuse ● Follow KISS Principle: Keep it Simple Stupid ● Should be very clear from just name, parameters ● Should be obvious when you use it wrongly ● Build time errors or obvious error values ● Just read Rusty's Blog Post: ● http://ozlabs.org/~rusty/index.cgi/tech/2008-03-30.html ● Release Early, Release often so you don't built a whole stack of software on top of poorly designed APIs!
  • 13. Practicalities: How Do I Post Patches? ● Read Documentation/SubmittingPatches ● Send email to maintainers and list ● One cover email with: ● Summary of WHAT you are solving ● Explaining WHY you used your approach ● Talk about any dependent patchsets ● Don't assume knowledge about your technology area ● git log --diff (which includes patch headers) ● Always post patch against latest tip ● One message per patch ● Break up your changes into small units that build on each other ● If you are adding 100's of lines to one function...you're doing it wrong ● Refactor your patches using “git-rebase -i” ● Go to today's git session
  • 14. Practicalities: Who do I send my patches to? ● Use git-log and git-blame commands ● git-log to find out the last few people to make changes ● git-blame to find out if ● Read MAINTAINERS file in top level directory ● get-maintainers.pl script ● Will give you mailing list and maintainer address ~/src/linux$ ./scripts/get_maintainer.pl spi_message_queue.patch Grant Likely <grant.likely@secretlab.ca> (maintainer:SPI SUBSYSTEM) Randy Dunlap <rdunlap@xenotime.net> (maintainer:DOCUMENTATION) spi­devel­general@lists.sourceforge.net (open list:SPI SUBSYSTEM) linux­doc@vger.kernel.org (open list:DOCUMENTATION) linux­kernel@vger.kernel.org (open list) ~/src/linux$ ./scripts/get_maintainer.pl ­f drivers/mfd/max8925­core.c Samuel Ortiz <sameo@linux.intel.com> (supporter:MULTIFUNCTION DEV...) linux­kernel@vger.kernel.org (open list) :~/src/linux$ ./scripts/get_maintainer.pl ­f drivers/i2c "Jean Delvare (PC drivers, core)" <khali@linux­fr.org> (maintainer:I2C SUBSYSTEM) "Ben Dooks (embedded platforms)" <ben­linux@fluff.org> (maintainer:I2C SUBSYSTEM) "Wolfram Sang (embedded platforms)" <w.sang@pengutronix.de> (maintainer:I2C SUBSYSTEM) linux­i2c@vger.kernel.org (open list:I2C SUBSYSTEM) linux­kernel@vger.kernel.org (open list)
  • 15. Practicalities: Using Signed-Off By ● Signed-off-by is legally binding! ● Make sure you have approval!         Developer's Certificate of Origin 1.1         By making a contribution to this project, I certify that:         (a) The contribution was created in whole or in part by me and I             have the right to submit it under the open source license             indicated in the file; or         (b) The contribution is based upon previous work that, to the best             of my knowledge, is covered under an appropriate open source             license and I have the right under that license to submit that             work with modifications, whether created in whole or in part             by me, under the same open source license (unless I am             permitted to submit under a different license), as indicated             in the file; or         (c) The contribution was provided directly to me by some other             person who certified (a), (b) or (c) and I have not modified             it.         (d) I understand and agree that this project and the contribution             are public and that a record of the contribution (including all             personal information I submit with it, including my sign­off) is             maintained indefinitely and may be redistributed consistent with             this project or the open source license(s) involved.
  • 16. Practicalities: Nobody Replied to My Patches! ● Be patient, don't expect an immediate response. ● Check mailing list archives: ● What's the typical response rate? ● Did the maintainer announce a vacation? ● Is this a merge window? ● Everyone is super busy, try again when it closes ● If it really seems like patches got dropped, email the maintainer privately with a pointer to thread. ● If still no response: ● Ping one level up in tree. ● For drivers: Ping Greg KH ● Sometimes you just have to email patches to Linus directly ● Shames the maintainer, gets his/her attention
  • 17. Practicalities: Responses From Other Developers ● Acked-by: This person is OK with the changes. Usually a maintainer of a subsystem affected by patch. ● Reviewed-by: This person has done a thorough technical review of the patch. ● Tested-by: This person did some level of testing. Allows maintainer to know that it has been validated on an environment other than original author's.
  • 18. Practicalities: When Someone Attacks You :( ● It unfortunately happens :( ● Do NOT Escalate ● Take a step back ● Go work on something else ● Grab a beer (BUT NOT WHILE REPLYING!) ● Pick out the technical issues ● Get some help in reading the negative email ● Respond to just these ● Hint: Attending conferences and meeting people face to face reduces the likelihood of this happening.
  • 19. Practicalities: I can't Release Early and Often ● Ask for Private Reviews ● NDAs with upstream maintainer(s) and experts ● Linaro can possibly help here ● Several of these people are part of our organization ● We have good relationships with many upstream maintainers ● Can you release the concepts if not the code? ● Fine art of providing enough details w/o giving away the secret sauce ● What are the high level problems you want to solve?
  • 20. Summary ● The community is just a bunch of developers ● Like you, just with more experience of the process. ● Most of them want to help! ● Good kernel code: ● Doesn't re-invent what's already there ● Doesn't add abstraction for the sake of abstraction ● Has well-designed APIs ● Solves common problems ● Read the documentation and the code ● Participate openly and respectfully ● Ask us for help ● Release Early, Release Often :)