linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 0/1] Kconfig: Introduce CONFIG_PREEMPT_RT
@ 2019-07-15 15:04 Thomas Gleixner
  2019-07-15 15:04 ` [patch 1/1] " Thomas Gleixner
  0 siblings, 1 reply; 20+ messages in thread
From: Thomas Gleixner @ 2019-07-15 15:04 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: LKML, Andrew Morton, Greg Kroah-Hartman, Ingo Molnar,
	Peter Zijlstra, Steven Rostedt, Sebastian Siewior, Paul McKenney,
	Christoph Hellwig, Tejun Heo, Lukas Bulwahn, Daniel Wagner,
	Tom Zanussi, Daniel Bristot de Oliveira, Clark Williams,
	Julia Cartwright, Marc Zyngier, Frederic Weisbecker

Linus,

please consider to apply the following patch, which introduces the Kconfig
symbol CONFIG_PREEMPT_RT.

Rationale:

The real-time preemption patch set exists for almost 15 years now and while
the vast majority of infrastructure and enhancements have found their way
into the mainline kernel, the final integration of RT is still missing.

Over the course of the last few years, we have worked on reducing the
intrusivenness of the RT patches by refactoring kernel infrastructure to be
more real-time friendly. Almost all of these changes were benefitial to
the mainline kernel on their own, so there was no objection to integrate
them.

Though except for the still ongoing printk refactoring, the remaining
changes which are required to make RT a first class mainline citizen are
not longer arguable as immediately beneficial for the mainline kernel. Most
of them are either reordering code flows or adding RT specific functionality.
But this now has hit a wall and turned into a classic hen and egg problem:

  Maintainers are rightfully wary vs. these changes as they make only
  sense if the final integration of RT into the mainline kernel takes
  place.

Adding CONFIG_PREEMPT_RT aims to solve this as a clear sign that RT will be
fully integrated into the mainline kernel. The final integration of the
missing bits and pieces will be of course done with the same careful
approach as we have used in the past.

While I'm aware that you are not entirely enthusiastic about that, I think
that RT should receive the same treatment as any other widely used out of
tree functionality, which we have accepted into mainline over the years.

RT has become the de-facto standard real-time enhancement and is shipped by
enterprise, embedded and community distros. It's in use throughout a wide
range of industries: telecommunications, industrial automation, professional
audio, medical devices, data acquisition, automotive - just to name a
few major use cases.

RT development is backed by a Linuxfoundation project which is supported
by major stakeholders of this technology. The funding will continue over
the actual inclusion into mainline to make sure that the functionality is
neither introducing regressions, regressing itself, nor becomes subject
to bitrot. There is also a lifely user community around RT as well, so
contrary to the grim situation 5 years ago, it's a healthy project.

As RT is still a good vehicle to exercise rarely used code paths and to
detect hard to trigger issues, you could at least view it as a QA tool if
nothing else.

The current state of the RT patches against 5.2 is:

   365 files changed, 9396 insertions(+), 3209 deletions(-)

When the already queued changes, agreed on changes and the ongoing printk
work is taken out then the diffstat is reduced to:

   311 files changed, 6567 insertions(+), 1352 deletions(-)

Out of the 6567 insertions about 4000 lines are the self contained RT
infrastructure (lock substitutions, scheduler addons, etc.).

The remaining bits and pieces are smallish changes to places which need to
be slightly modified to cope with the RT semantics.

The current full RT set can be found here:

  git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.2.y-rt

Note that aside of the printk changes (which are under flux due to the
ongoing review/design discussions) also a large part of the rest is
not the final state as these changes still need to be discussed with
the relevant maintainers and we are still working hard on refinining
them and reducing the impact. So while the big picture is probably
good reflected, please take the details with a grain of salt.

Thanks,

	Thomas




^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2019-07-18 21:17 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15 15:04 [patch 0/1] Kconfig: Introduce CONFIG_PREEMPT_RT Thomas Gleixner
2019-07-15 15:04 ` [patch 1/1] " Thomas Gleixner
2019-07-15 19:47   ` Lukas Bulwahn
2019-07-16 18:20   ` Paul E. McKenney
2019-07-16 20:07   ` Steven Rostedt
2019-07-16 20:10   ` Clark Williams
2019-07-16 20:18     ` Daniel Bristot de Oliveira
2019-07-16 20:59       ` Frederic Weisbecker
2019-07-16 22:58   ` Ingo Molnar
2019-07-16 23:34   ` Gratian Crisan
2019-07-17  7:38   ` Peter Zijlstra
2019-07-17  7:57   ` Marc Zyngier
2019-07-17  8:45   ` Daniel Wagner
2019-07-17 20:01   ` [patch V2 " Thomas Gleixner
2019-07-18 14:19     ` [tip:sched/urgent] sched/rt, " tip-bot for Thomas Gleixner
2019-07-18 14:50     ` [patch V2 1/1] " Julia Cartwright
2019-07-18 17:52     ` [tip:sched/urgent] sched/rt, " tip-bot for Thomas Gleixner
2019-07-18 19:23     ` [patch V2 1/1] " Tom Zanussi
2019-07-18 21:16     ` [tip:sched/urgent] sched/rt, " tip-bot for Thomas Gleixner
2019-07-17 23:05   ` [patch 1/1] " Luis Claudio R. Goncalves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).