Cc: Nick Piggin <nickpiggin@...>, Russell King <rmk+lkml@...>, Linus Torvalds <torvalds@...>, Benjamin Herrenschmidt <benh@...>, David Miller <davem@...>, <linux-arch@...>, <scottwood@...>, <linuxppc-dev@...>, <alan@...>, <linux-kernel@...>
How about providing 1 and 2, and if you want 3 or 4 define your own accessors?
I guess you haven't been reading the whole thread. The reason it started was
because gcc can re-order powerpc (and everyone else's too) IO accesses vs
accesses to cachable memory (but not spin-locks), which ends up only being a
problem with coherent DMA.
--