sfc: Use rmb() to ensure reads occur in order
authorNeil Turton <nturton@solarflare.com>
Mon, 11 Apr 2011 10:42:43 +0000 (11:42 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 12 Apr 2011 22:52:44 +0000 (23:52 +0100)
Enabling write-combining may also enable read reordering.  The BIU is
only guaranteed to read from a 128-bit CSR or 64-bit SRAM word when
the host reads from its lowest address; otherwise the BIU may use the
latched value.  Therefore we need to reinstate the read memory
barriers after the first read operation for each CSR or SRAM word.

Signed-off-by; Ben Hutchings <bhutchings@solarflare.com>


No differences found