linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: david-b@pacbell.net (David Brownell)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/4] drivers: hwspinlock: add generic framework
Date: Thu, 25 Nov 2010 12:22:28 -0800	[thread overview]
Message-ID: <1290716548.2529.136.camel@helium> (raw)
In-Reply-To: <AANLkTinQdNC0XaOqNyDbdYE6ZcP0QyzpN492j=Kovuea@mail.gmail.com>

On Thu, 2010-11-25 at 08:40 +0200, Ohad Ben-Cohen wrote:
> On Thu, Nov 25, 2010 at 5:59 AM, David Brownell <david-b@pacbell.net> wrote:
> > My rule of thumb is that nothing is "generic"
> > until at least three whatever-it-is instances
> > plug in to it.  Sometimes this is called
> > the "Rule of Three".
> >
> > Other than OMAP, what's providing hardware
> > spinlocks that plug into this framework?
> 
> We are not aware of any.

So there's no strong reason to think this is
actually "ggeneric".  Function names no longer
specify OMAP, but without other hardware under
the interface, calling it "generic" reflects
more optimism than reality.  (That was the
implication of my observations...)

To find other hardware spinlocks, you might be
able to look at fault tolerant multiprocessors.
Ages ago I worked with one of those, where any
spinlock failures integrated with CPU/OS fault
detection; HW cwould yank (checkpointed) CPU boards
off the bus so they could be recovered (some
might continue later from checkpoints, etc.)...

> This way platforms [2] can easily plug into the framework anything
> they need to achieve multi-core synchronization. E.g., even in case a
> platform doesn't have dedicated silicon, but still need this
> functionality, it can still plug in an implementation which is based
> on Peterson's shared memory mutual exclusion algorithm 

And maybe also standard Linux spinlocks?

I seem to recall some iterations of the real-time patches doing a lot of
work to generalize spinlocks, since they needed multiple variants.  It
might be worth following in those footsteps.  (Though I'm not sure they
were thinking much about hardware support .

- Dave

  reply	other threads:[~2010-11-25 20:22 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-23 15:38 [PATCH v2 0/4] Introduce common hardware spinlock interface Ohad Ben-Cohen
2010-11-23 15:38 ` [PATCH v2 1/4] drivers: hwspinlock: add generic framework Ohad Ben-Cohen
2010-11-24  7:44   ` Kamoolkar, Mugdha
2010-11-24 19:59     ` Ohad Ben-Cohen
2010-11-25  3:59       ` David Brownell
2010-11-25  6:40         ` Ohad Ben-Cohen
2010-11-25 20:22           ` David Brownell [this message]
2010-11-26  7:34             ` Ohad Ben-Cohen
2010-11-27  1:24               ` David Brownell
2010-11-29  9:57                 ` Ohad Ben-Cohen
2010-11-25  6:05       ` Kamoolkar, Mugdha
2010-11-25 14:29         ` Ohad Ben-Cohen
2010-11-26  4:59   ` Olof Johansson
2010-11-26  7:18     ` Grant Likely
2010-11-26 21:00       ` Olof Johansson
2010-11-26  8:53     ` Ohad Ben-Cohen
2010-11-26  9:18       ` Russell King - ARM Linux
2010-11-26 10:16         ` Ohad Ben-Cohen
2010-11-26 10:45           ` Russell King - ARM Linux
2010-11-26 22:18             ` Ohad Ben-Cohen
2010-11-26 22:53               ` Russell King - ARM Linux
2010-11-29  9:46                 ` Ohad Ben-Cohen
2010-11-26 22:51       ` Olof Johansson
2010-11-29 21:31         ` Ohad Ben-Cohen
2010-11-30 19:00   ` Tony Lindgren
2010-11-30 22:20     ` Ohad Ben-Cohen
2010-11-30 22:23       ` Tony Lindgren
2010-11-23 15:38 ` [PATCH v2 2/4] drivers: hwspinlock: add OMAP implementation Ohad Ben-Cohen
2010-11-23 23:23   ` Ionut Nicu
2010-11-24 10:33     ` Ohad Ben-Cohen
2010-11-23 15:38 ` [PATCH v2 3/4] OMAP4: hwmod data: Add hwspinlock Ohad Ben-Cohen
2010-11-23 15:39 ` [PATCH v2 4/4] omap: add hwspinlock device Ohad Ben-Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1290716548.2529.136.camel@helium \
    --to=david-b@pacbell.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).