From: ohad@wizery.com (Ohad Ben-Cohen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ux500: Adding support for u8500 Hsem functionality V2
Date: Wed, 13 Apr 2011 11:45:19 +0300 [thread overview]
Message-ID: <BANLkTi=UnOdSskB5_+2bNH9B6MT=LDEOEQ@mail.gmail.com> (raw)
In-Reply-To: <4DA4A44D.5020208@linaro.org>
On Tue, Apr 12, 2011 at 10:13 PM, Mathieu Poirier
<mathieu.poirier@linaro.org> wrote:
>>> +struct u8500_hsem {
>>> + ? ? ? struct hwspinlock lock;
>>> + ? ? ? void __iomem *addr;
>>> +};
>>
>> It seems inconsistent to name it sem instead of spinlock.
>>
> This is a good point and I've been going back and forth on that one. ?TI's
> implementation is based on 'spinlock' but in this case there is not a single
> mention of a 'spinlock' in the CPU's reference manual, leaving potential
> users to wonder if spinlock == hsem.
I figured out this was your line of thought.
Looking forward, though, we have some design decisions to do which are
related to this spinlock vs. semaphore issue - it's much more than
just names.
While the OMAP hardware currently has only these hwspinlocks modules,
which require the host to spin until they become free, we now have two
other systems (the u8500 and TI's C6474) which also support additional
semaphore-like functionality of queuing, owner semantics and interrupt
notification (so the host wouldn't have to spin, and the lock can be
used for a wider range of non-atomic use cases).
Sadly, the specs of the u8500 are closed, which makes it somewhat hard
to start any reasonable design discussions.
Btw, last I heard, mainline c6x support is coming. but it's not there yet.
next prev parent reply other threads:[~2011-04-13 8:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 15:24 [PATCH 1/2] ux500: Adding support for u8500 Hsem functionality V2 mathieu.poirier at linaro.org
2011-04-12 13:44 ` Ohad Ben-Cohen
2011-04-12 16:53 ` Mathieu Poirier
2011-04-12 17:46 ` Arnd Bergmann
2011-04-12 19:13 ` Mathieu Poirier
2011-04-13 8:45 ` Ohad Ben-Cohen [this message]
2011-04-17 20:39 ` Arnd Bergmann
2011-04-19 16:06 ` Mathieu Poirier
2011-04-19 16:10 ` Arnd Bergmann
2011-09-05 21:09 ` Ohad Ben-Cohen
2011-09-06 7:15 ` Linus Walleij
2011-09-06 7:27 ` Ohad Ben-Cohen
2011-04-13 8:16 ` 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='BANLkTi=UnOdSskB5_+2bNH9B6MT=LDEOEQ@mail.gmail.com' \
--to=ohad@wizery.com \
--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).