summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2007-12-31 21:02:00 +0000
committerdyoung <dyoung@NetBSD.org>2007-12-31 21:02:00 +0000
commit34de2dfb486a672b73bfd7d124fb2f42553b3012 (patch)
tree4e94b1032d502a57a8dfabfdce8ce89d9c554141 /sys/dev
parent2b99c93d85fd6aa6e8ead8462affd011af09f582 (diff)
In gem_tint(), synchronize the correct descriptors for a Tx packet:
synchronize the N descriptors starting with the packet's first descriptor, not with its last. This ought to help the defined(GEM_DEBUG) && IFF_DEBUG case.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/gem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c
index 68835e77fbd..89b72a5d336 100644
--- a/sys/dev/ic/gem.c
+++ b/sys/dev/ic/gem.c
@@ -1,4 +1,4 @@
-/* $NetBSD: gem.c,v 1.65 2007/12/31 20:54:41 dyoung Exp $ */
+/* $NetBSD: gem.c,v 1.66 2007/12/31 21:02:00 dyoung Exp $ */
/*
*
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.65 2007/12/31 20:54:41 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.66 2007/12/31 21:02:00 dyoung Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@@ -1363,8 +1363,7 @@ gem_tint(sc)
txlast <= txs->txs_lastdesc)
break;
- GEM_CDTXSYNC(sc, txs->txs_lastdesc,
- txs->txs_ndescs,
+ GEM_CDTXSYNC(sc, txs->txs_firstdesc, txs->txs_ndescs,
BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
#ifdef GEM_DEBUG /* XXX DMA synchronization? */