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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 609E7DDEF2 for ; Fri, 30 May 2008 11:13:56 +1000 (EST) Subject: Re: MMIO and gcc re-ordering issue From: Benjamin Herrenschmidt To: Haavard Skinnemoen In-Reply-To: <20080528103648.54eb8734@hskinnemo-gx745.norway.atmel.com> References: <1211852026.3286.36.camel@pasglop> <20080526.184047.88207142.davem@davemloft.net> <1211854540.3286.42.camel@pasglop> <20080526.192812.184590464.davem@davemloft.net> <1211859542.3286.46.camel@pasglop> <1211922621.3286.80.camel@pasglop> <1211924335.3286.89.camel@pasglop> <20080527214241.GA22636@parisc-linux.org> <1211926636.3286.100.camel@pasglop> <20080528103648.54eb8734@hskinnemo-gx745.norway.atmel.com> Content-Type: text/plain Date: Fri, 30 May 2008 11:13:23 +1000 Message-Id: <1212110003.15633.0.camel@pasglop> Mime-Version: 1.0 Cc: linux-arch@vger.kernel.org, Matthew Wilcox , linux-kernel@vger.kernel.org, tpiepho@freescale.com, linuxppc-dev@ozlabs.org, scottwood@freescale.com, Linus Torvalds , David Miller , alan@lxorguk.ukuu.org.uk Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > I do -- in all the drivers for on-chip peripherals that are shared > between AT91 ARM (LE) and AVR32 (BE). Since everything goes on inside > the chip, we must use LE accesses on ARM and BE accesses on AVR32. > > Currently, this is the only interface I know that can do native-endian > accesses, so if you take it away, I'm gonna need an alternative > interface that doesn't do byteswapping. Are you aware that these also don't provide any ordering guarantee ? Ben.