Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/dev/ic Pull up rev. 1.36:



details:   https://anonhg.NetBSD.org/src/rev/320db27c51d7
branches:  netbsd-1-5
changeset: 488336:320db27c51d7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jun 29 23:59:57 2000 +0000

description:
Pull up rev. 1.36:
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 25f8b28dbfb2 -r 320db27c51d7 sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c       Thu Jun 29 23:58:39 2000 +0000
+++ b/sys/dev/ic/i82557.c       Thu Jun 29 23:59:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82557.c,v 1.34 2000/05/29 17:37:13 jhawk Exp $        */
+/*     $NetBSD: i82557.c,v 1.34.2.1 2000/06/29 23:59:57 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