From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <16983.8839.391784.458466@cargo.ozlabs.ibm.com> Date: Sat, 9 Apr 2005 10:32:07 +1000 From: Paul Mackerras To: Gabriel Paubert In-Reply-To: <20050408184442.GA13709@iram.es> References: <20050408082635.GB4992@iram.es> <8fc7723059937dc9876c5c14fdcd92ae@freescale.com> <20050408184442.GA13709@iram.es> Cc: linuxppc-dev list , linux-ppc-embedded list Subject: Re: pte_update and 64-bit PTEs on PPC32? List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Gabriel Paubert writes: > But I'm not sure that OOO cannot play tricks on you, what guarantees > that the lwz is done after lwarx? Nothing, but it doesn't matter, because we have the mm->page_table_lock, and anything that is changing the top 32 bits, or anything in the bottom 32 bits other than the _PAGE_HASHPTE bit, must also take the mm->page_table_lock. The low-level hash_page routine can change the _PAGE_HASHPTE bit without having that lock, which is why we need the atomic sequence. Paul.