]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34d977a58cf770166682876c0c775e738fc2f947
tree3e8387932c5cc10facffa248ecfb648564a9ae5e
parentc3885deb2046838c9002417ee86af3bd29db9522
sfc: Use rmb() to ensure reads occur in order

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>
drivers/net/sfc/io.h