[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1211922766.3286.84.camel@pasglop>
Date: Wed, 28 May 2008 07:12:46 +1000
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: David Miller <davem@...emloft.net>, linux-arch@...r.kernel.org,
scottwood@...escale.com, linuxppc-dev@...abs.org,
alan@...rguk.ukuu.org.uk, linux-kernel@...r.kernel.org,
tpiepho@...escale.com
Subject: Re: MMIO and gcc re-ordering issue
On Tue, 2008-05-27 at 09:47 -0700, Linus Torvalds wrote:
>
> __read[bwlq]()/__write[bwlq]() are not serialized with a :"memory"
> barrier, although since they still use "asm volatile" I suspect that
> i
> practice they are probably serial too. Did not look very closely at
> any
> generated code (only did a trivial test to see that the code looks
> *roughly* correct).
Nah, asm volatile doesn't help, it does need the "memory" clobber too.
Cheers,
Ben.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists