Thread (26 messages) 26 messages, 6 authors, 2007-09-03

Re: wmb vs mmiowb

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2007-08-23 16:27:17

On Thu, 2007-08-23 at 09:16 -0700, Linus Torvalds wrote:
On Thu, 23 Aug 2007, Nick Piggin wrote:
quoted
Also, FWIW, there are some advantages of deferring the mmiowb thingy
until the point of unlock.
And that is exactly what ppc64 does.

But you're missing a big point: for 99.9% of all hardware, mmiowb() is a 
total no-op. So when you talk about "advantages", you're not talking about 
any *real* advantage, are you?
I wonder whether it might be worth removing mmiowb and having all archs
that matter do like ppc64 though... It's just yet another confusing
barrier that most driver writers get wrong..

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help