Re: [PATCH] Document Linux's memory barriers [try #2]

From: David Howells
Date: Wed Mar 08 2006 - 12:17:32 EST


Matthew Wilcox <matthew@xxxxxx> wrote:

> > That might be worth an example with an if() because PPC will do this and
> > if its a read with a side effect (eg I/O space) you get singed..
>
> PPC does speculative memory accesses to IO? Are you *sure*?

Can you do speculative reads from frame buffers?

> # define smp_read_barrier_depends() do { } while(0)

What's this one meant to do?

> Port space is deprecated though. PCI 2.3 says:

That's sort of irrelevant for the here. I still need to document the
interaction.

> Since memory write transactions may be posted in bridges anywhere
> in the system, and I/O writes may be posted in the host bus bridge,

I'm not sure whether this is beyond the scope of this document. Maybe the
document's scope needs to be expanded.

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