From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: MMIO and gcc re-ordering issue Date: Thu, 29 May 2008 09:10:06 +0200 Message-ID: <200805290910.07207.arnd@arndb.de> References: <1211852026.3286.36.camel@pasglop> <1211926779.3286.104.camel@pasglop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1211926779.3286.104.camel@pasglop> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: benh@kernel.crashing.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, tpiepho@freescale.com, linuxppc-dev@ozlabs.org, scottwood@freescale.com, Linus Torvalds , David Miller , alan@lxorguk.ukuu.org.uk List-Id: linux-arch.vger.kernel.org On Wednesday 28 May 2008, Benjamin Herrenschmidt wrote: > On Tue, 2008-05-27 at 14:55 -0700, Linus Torvalds wrote: > > > > On Wed, 28 May 2008, Benjamin Herrenschmidt wrote: > > > > > > A problem with __raw_ though is that they -also- don't do byteswap, > > > > Well, that's why there is __readl() and __raw_readl(), no? > > As I replied to somebody else, __readl() is news to me :-) we dont' have > those on powerpc. > It's not exactly a well-established interface. Only five architectures define these functions, and there is not a single user in the kernel source outside of these architecture's io.h files. Arnd <>< From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de ([212.227.126.186]:56074 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754580AbYE2HKn (ORCPT ); Thu, 29 May 2008 03:10:43 -0400 From: Arnd Bergmann Subject: Re: MMIO and gcc re-ordering issue Date: Thu, 29 May 2008 09:10:06 +0200 References: <1211852026.3286.36.camel@pasglop> <1211926779.3286.104.camel@pasglop> In-Reply-To: <1211926779.3286.104.camel@pasglop> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200805290910.07207.arnd@arndb.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: benh@kernel.crashing.org Cc: Linus Torvalds , David Miller , linux-arch@vger.kernel.org, scottwood@freescale.com, linuxppc-dev@ozlabs.org, alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org, tpiepho@freescale.com Message-ID: <20080529071006.DF2CEgOzNlNGXOyL6Xa4eMtg6S8IM60zqgfIaYFRO04@z> On Wednesday 28 May 2008, Benjamin Herrenschmidt wrote: > On Tue, 2008-05-27 at 14:55 -0700, Linus Torvalds wrote: > > > > On Wed, 28 May 2008, Benjamin Herrenschmidt wrote: > > > > > > A problem with __raw_ though is that they -also- don't do byteswap, > > > > Well, that's why there is __readl() and __raw_readl(), no? > > As I replied to somebody else, __readl() is news to me :-) we dont' have > those on powerpc. > It's not exactly a well-established interface. Only five architectures define these functions, and there is not a single user in the kernel source outside of these architecture's io.h files. Arnd <><