aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBrice Goglin <brice@myri.com>2006-12-05 11:26:27 -0500
committerJeff Garzik <jeff@garzik.org>2006-12-07 04:59:20 -0500
commite67bda55e27d3308ba0b4ce8cf2da51850ef1453 (patch)
tree58ad7a5c0dcfcbfc5ca259b8a4acaae6402b3e08 /drivers
parentc3905bc4b71ab562acf69765e8c4778bd263b9db (diff)
[PATCH] myri10ge: write as 2 32-byte blocks in myri10ge_submit_8rx
In the myri10ge_submit_8rx() routine, write the 64 byte request block as 2 32-byte blocks so that it is handled by the hardware pio write handler if write-combining is enabled. Signed-off-by: Brice Goglin <brice@myri.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/myri10ge/myri10ge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index b8f57df1091a..81f127a78afa 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -795,7 +795,9 @@ myri10ge_submit_8rx(struct mcp_kreq_ether_recv __iomem * dst,
795 795
796 low = src->addr_low; 796 low = src->addr_low;
797 src->addr_low = htonl(DMA_32BIT_MASK); 797 src->addr_low = htonl(DMA_32BIT_MASK);
798 myri10ge_pio_copy(dst, src, 8 * sizeof(*src)); 798 myri10ge_pio_copy(dst, src, 4 * sizeof(*src));
799 mb();
800 myri10ge_pio_copy(dst + 4, src + 4, 4 * sizeof(*src));
799 mb(); 801 mb();
800 src->addr_low = low; 802 src->addr_low = low;
801 put_be32(low, &dst->addr_low); 803 put_be32(low, &dst->addr_low);