Thread (23 messages) 23 messages, 6 authors, 2014-02-10

Re: [PATCH] Convert powerpc simple spinlocks into ticket locks

flat view

From: Kumar Gala <hidden>
Date: 2014-02-07 15:54:36
Also in: lkml

On Feb 7, 2014, at 3:02 AM, Torsten Duwe [off-list ref] wrote:
On Thu, Feb 06, 2014 at 02:19:52PM -0600, Scott Wood wrote:
quoted
On Thu, 2014-02-06 at 18:37 +0100, Torsten Duwe wrote:
quoted
On Thu, Feb 06, 2014 at 05:38:37PM +0100, Peter Zijlstra wrote:
=20
quoted
quoted
Can you pair lwarx with sthcx ? I couldn't immediately find the =
answer
quoted
quoted
quoted
in the PowerISA doc. If so I think you can do better by being able =
to
quoted
quoted
quoted
atomically load both tickets but only storing the head without =
affecting
quoted
quoted
quoted
the tail.
=20
Can I simply write the half word, without a reservation, or will the =
HW caches
mess up the other half? Will it ruin the cache coherency on some =
(sub)architectures?

The coherency should be fine, I just can=92t remember if you=92ll lose =
the reservation by doing this.
quoted
Plus, sthcx doesn't exist on all PPC chips.
=20
Which ones are lacking it? Do all have at least a simple 16-bit store?
Everything implements a simple 16-bit store, just not everything =
implements the store conditional of 16-bit data.

- k=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help