Re: [PATCH] I/O space write barrier

From: Benjamin Herrenschmidt
Date: Mon Oct 04 2004 - 22:11:50 EST



> I agree, it's hard to get right, especially when you've got a large base of
> drivers with hard to find assumptions about ordering.
>
> What about mmiowb()? Should it be eieio? I don't want to post another patch
> if I don't have to...

I don't understand the whole story...

If normal accesses aren't relaxed (and I think they shouldn't be), then
there is no point in a barrier here.... If you need an explicit barrier
for explicitely relaxed accesses, then yes.

That doesn't solve my need of MMIO vs. memory unless you are trying to
cover that as well, in which case it should be a sync.

Ben.


-
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/