linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] powerpc/qspinlock: make slowpath accesses more efficient
@ 2022-11-14 16:11 Nicholas Piggin
  2022-11-14 16:11 ` [RFC PATCH 1/4] powerpc/qspinlock: Avoid cmpxchg pattern in lock stealing Nicholas Piggin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Nicholas Piggin @ 2022-11-14 16:11 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Jordan Niethe, Laurent Dufour, Nicholas Piggin

This series (at least the first 3 patches) will get folded into the main
series, but I will to post incremental changes first to make it easier
to see the change.

The 3rd patch is now quite an ugly mess, but once it is folded in then
everything should become simpler because that special case will never be
added in the first place. So don't review it with a fine comb, all it
really does is remove that branch.

There were a couple of cases where I tried to make things a bit simpler
but less efficient in contended paths. It turns out some microbenchmarks
or pathological cases might be limited by this so I'm trying to find
improvements. In one case there is already a better primitive available,
in another case the end result allows a much bigger simplification so it
should be worth the more complicated asm primitive.

Thanks,
Nick

Nicholas Piggin (4):
  powerpc/qspinlock: Avoid cmpxchg pattern in lock stealing
  powerpc/qspinlock: Avoid cmpxchg style patterns in queue head locking
  powerpc/qspinlock: Remove !maybe_waiters special case queue head
    locking
  powerpc/qspinlock: add compile-time tuning adjustments

 arch/powerpc/include/asm/qspinlock.h |  61 ++++++-
 arch/powerpc/lib/qspinlock.c         | 237 ++++++++++++---------------
 2 files changed, 167 insertions(+), 131 deletions(-)

-- 
2.37.2


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

end of thread, other threads:[~2022-11-14 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14 16:11 [RFC PATCH 0/4] powerpc/qspinlock: make slowpath accesses more efficient Nicholas Piggin
2022-11-14 16:11 ` [RFC PATCH 1/4] powerpc/qspinlock: Avoid cmpxchg pattern in lock stealing Nicholas Piggin
2022-11-14 16:11 ` [RFC PATCH 2/4] powerpc/qspinlock: Avoid cmpxchg style patterns in queue head locking Nicholas Piggin
2022-11-14 16:11 ` [RFC PATCH 3/4] powerpc/qspinlock: Remove !maybe_waiters special case " Nicholas Piggin
2022-11-14 16:11 ` [RFC PATCH 4/4] powerpc/qspinlock: add compile-time tuning adjustments Nicholas Piggin

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).