Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" Newsgroups: comp.arch Subject: Re: Arm ldaxr / stxr loop question Date: Mon, 11 Nov 2024 13:53:43 -0800 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <_4oYO.862335$_o_3.103294@fx17.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 11 Nov 2024 22:53:44 +0100 (CET) Injection-Info: dont-email.me; posting-host="60c80f1a10de041ddca4d39cbf184afe"; logging-data="1257069"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181D3RscbQdFGu5Gm08l+pYzcAvJxD/Uj4=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:mHr7TBN8ScE7G63c6xZPFg/u8K0= In-Reply-To: Content-Language: en-US Bytes: 2112 On 11/11/2024 6:56 AM, jseigh wrote: > On 11/11/24 08:59, Scott Lurndal wrote: > >> >> There are fully atomic instructions,  the load/store exclusives are >> generally there for backward compatability with armv7; the full set >> of atomics (SWP, CAS, Atomic Arithmetic Ops, etc) arrived with >> ARMv8.1. >> > > They added the atomics for scalability allegedly.  ARM never > stated what the actual issue was.  I suspect they couldn't > guarantee a memory lock size small enough to eliminate > destructive interference.  Like cache line size instead > of word size. For some reason it reminds me of the size of a reservation granule wrt LL/SC.