Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Since the RFA is allocated in a normal mbuf, as o...
details: https://anonhg.NetBSD.org/src/rev/d3480d13b0d7
branches: trunk
changeset: 494044:d3480d13b0d7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jun 29 16:53:48 2000 +0000
description:
Since the RFA is allocated in a normal mbuf, as opposed to DMA-safe
memory that is explicitly mapped in a DMA-coherent manner, we must
make sure to PREREAD sync the RFA after noticing a clear "complete"
bit. Without this, the clear bit will linger in the cache, and the
CPU will not notice when the chip updates the bit via DMA later.
>From Izumi Tsutsui on port-arm32%netbsd.org@localhost.
diffstat:
sys/dev/ic/i82557.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r fbfdf03ff997 -r d3480d13b0d7 sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c Thu Jun 29 16:47:09 2000 +0000
+++ b/sys/dev/ic/i82557.c Thu Jun 29 16:53:48 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i82557.c,v 1.35 2000/06/28 17:12:57 mrg Exp $ */
+/* $NetBSD: i82557.c,v 1.36 2000/06/29 16:53:48 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -923,6 +923,7 @@
* We have processed all of the
* receive buffers.
*/
+ FXP_RFASYNC(sc, m, BUS_DMASYNC_PREREAD);
goto do_transmit;
}
Home |
Main Index |
Thread Index |
Old Index