Re: [PATCH] Define flush_wc, a way to flush write combining store buffers

From: Andi Kleen
Date: Wed Mar 08 2006 - 17:05:02 EST


On Wednesday 08 March 2006 23:05, Bryan O'Sullivan wrote:
> On Wed, 2006-03-08 at 15:35 +0100, Andi Kleen wrote:
>
> > > How is this different to mmiowb() ?
> >
> > I think he intends it to be a flush instead of an ordering.
> > (something like CLFLUSH for WC areas)
>
> Exactly. mmiowb guarantees ordering, but says nothing about timing.
> This would guarantee ordering, affect WC store buffers if present, and
> try to work in a timely manner.

Well if you need the flush, not the ordering then I'm not convinced
SFENCE will do that for you. My understanding is that it only guarantees
ordering.

But at least in some earlier message you said you just needed ordering.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/