From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7CC2B2C0091 for ; Sat, 8 Feb 2014 02:54:27 +1100 (EST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: [PATCH] Convert powerpc simple spinlocks into ticket locks From: Kumar Gala In-Reply-To: <20140207090248.GB26811@lst.de> Date: Fri, 7 Feb 2014 09:51:16 -0600 Message-Id: <87C29DBB-41E7-4B6C-9089-3C7756FBAE07@kernel.crashing.org> References: <20140206103736.GA18054@lst.de> <20140206163837.GT2936@laptop.programming.kicks-ass.net> <20140206173727.GA13048@lst.de> <1391717992.6733.232.camel@snotra.buserror.net> <20140207090248.GB26811@lst.de> To: Torsten Duwe Cc: Tom Musta , Peter Zijlstra , linux-kernel@vger.kernel.org, Paul Mackerras , Anton Blanchard , Scott Wood , "Paul E. McKenney" , linuxppc-dev@lists.ozlabs.org, Ingo Molnar List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Feb 7, 2014, at 3:02 AM, Torsten Duwe wrote: > On Thu, Feb 06, 2014 at 02:19:52PM -0600, Scott Wood wrote: >> On Thu, 2014-02-06 at 18:37 +0100, Torsten Duwe wrote: >>> On Thu, Feb 06, 2014 at 05:38:37PM +0100, Peter Zijlstra wrote: >>=20 >>>> Can you pair lwarx with sthcx ? I couldn't immediately find the = answer >>>> in the PowerISA doc. If so I think you can do better by being able = to >>>> atomically load both tickets but only storing the head without = affecting >>>> 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. >> 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=