sfc: Use write-combining to reduce TX latency
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 22 Feb 2011 17:26:10 +0000 (17:26 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 4 Mar 2011 17:58:42 +0000 (17:58 +0000)
commit65f0b417dee94f779ce9b77102b7d73c93723b39
tree390279203a8c73a986d15be5cc30f9bb2e95c1e8
parent6d84b986b26bac1d4d678ff10c10a633bf53f834
sfc: Use write-combining to reduce TX latency

Based on work by Neil Turton <nturton@solarflare.com> and
Kieran Mansley <kmansley@solarflare.com>.

The BIU has now been verified to handle 3- and 4-dword writes within a
single 128-bit register correctly.  This means we can enable write-
combining and only insert write barriers between writes to distinct
registers.

This has been observed to save about 0.5 us when pushing a TX
descriptor to an empty TX queue.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/efx.c
drivers/net/sfc/io.h
drivers/net/sfc/mcdi.c