All of lore.kernel.org
 help / color / mirror / Atom feed
* Project Proposal: add sleeping spinlocks to mainline kernel
@ 2009-12-16 22:47 Tim Bird
  2009-12-17  9:54 ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Bird @ 2009-12-16 22:47 UTC (permalink / raw)
  To: CE Linux Developers List, linux-embedded

Summary: add sleeping spinlocks to the mainline kernel

Proposer: Tim Bird

Description:
One of the last major elements of the RT-preempt patch set that is
still not mainlined is the implementation of the so-called
"sleeping spinlocks".  It would be good to mainline these,
addressing remaining issues to their inclusion in the standard
Linux kernel.

Thomas Gleixner discussed the status of RT-preempt at the
[http://lwn.net/Articles/354690/ realtime preemption mini-summit,
and the [http://lwn.net/Articles/357465/ 2009 kernel summit].

Related work:
* RT-preempt
** http://rt.wiki.kernel.org/index.php/Main_Page

Scope: unknown

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================

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

* Re: Project Proposal: add sleeping spinlocks to mainline kernel
  2009-12-16 22:47 Project Proposal: add sleeping spinlocks to mainline kernel Tim Bird
@ 2009-12-17  9:54 ` Linus Walleij
  2009-12-17 18:45   ` Tim Bird
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2009-12-17  9:54 UTC (permalink / raw)
  To: Tim Bird; +Cc: CE Linux Developers List, linux-embedded

2009/12/16 Tim Bird <tim.bird@am.sony.com>:

> Summary: add sleeping spinlocks to the mainline kernel

If realtime performance overall is a big deal for CELF I would suggest
adding "Kill-the-BKL" to the suggested projects. There are still some
RTOS people using the BKL as an argument to flak the Linux kernel,
c.f.
http://www.freescale.com/files/32bit/doc/ref_manual/EMBMCRM.pdf
(section 5.2)

Another item could be to go through some common embedded
arch drivers and switch them from request_irq() to request_threaded_irq()
just based on the observation that almost nobody actually use that
in the mainline kernel, though I'm sure they should,
if realtime is a desired feature.
(The wm8350-core driver is an excellent example of a situation where
it is used properly.)

NB: I'm not a member of the CE Linux Forum and nor is my company
so I'm just talking freely here. (linux-embedded is public, hehe.)

Yours,
Linus Walleij

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

* Re: Project Proposal: add sleeping spinlocks to mainline kernel
  2009-12-17  9:54 ` Linus Walleij
@ 2009-12-17 18:45   ` Tim Bird
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Bird @ 2009-12-17 18:45 UTC (permalink / raw)
  To: Linus Walleij; +Cc: CE Linux Developers List, linux-embedded

Linus Walleij wrote:
> 2009/12/16 Tim Bird <tim.bird@am.sony.com>:
> 
>> Summary: add sleeping spinlocks to the mainline kernel
> 
> If realtime performance overall is a big deal for CELF I would suggest
> adding "Kill-the-BKL" to the suggested projects. There are still some
> RTOS people using the BKL as an argument to flak the Linux kernel,
> c.f.
> http://www.freescale.com/files/32bit/doc/ref_manual/EMBMCRM.pdf
> (section 5.2)

The only reference I could find in section 5.2 to BKL was
an OSE BKL.  Maybe I missed the reference to the Linux BKL.
(I looked pretty quickly).

However, agree that BKL reduction is a worthy goal.

> 
> Another item could be to go through some common embedded
> arch drivers and switch them from request_irq() to request_threaded_irq()
> just based on the observation that almost nobody actually use that
> in the mainline kernel, though I'm sure they should,
> if realtime is a desired feature.
> (The wm8350-core driver is an excellent example of a situation where
> it is used properly.)

Likely, CELF would be most interested in switching to using
threaded interrupts in places where the drivers were commonly
used in embedded devices.  This would require some analysis.
But this is another good suggestion.

> NB: I'm not a member of the CE Linux Forum and nor is my company
> so I'm just talking freely here. (linux-embedded is public, hehe.)

The feedback is much appreciated!
 -- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================

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

end of thread, other threads:[~2009-12-17 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-16 22:47 Project Proposal: add sleeping spinlocks to mainline kernel Tim Bird
2009-12-17  9:54 ` Linus Walleij
2009-12-17 18:45   ` Tim Bird

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.