Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic When we are recovering from a resource exhaustion...



details:   https://anonhg.NetBSD.org/src/rev/ec6473ffe77e
branches:  trunk
changeset: 566134:ec6473ffe77e
user:      briggs <briggs%NetBSD.org@localhost>
date:      Wed Apr 28 15:25:45 2004 +0000

description:
When we are recovering from a resource exhaustion on receive, make sure
that the RU is stopped before issuing an RU_START.
Fix suggested by Takahiro Kambe in PR kern/10622.

diffstat:

 sys/dev/ic/i82557.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 042a9c5998b2 -r ec6473ffe77e sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c       Wed Apr 28 15:21:43 2004 +0000
+++ b/sys/dev/ic/i82557.c       Wed Apr 28 15:25:45 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82557.c,v 1.83 2004/04/28 03:37:58 briggs Exp $       */
+/*     $NetBSD: i82557.c,v 1.84 2004/04/28 15:25:45 briggs Exp $       */
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.83 2004/04/28 03:37:58 briggs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.84 2004/04/28 15:25:45 briggs Exp $");
 
 #include "bpfilter.h"
 #include "rnd.h"
@@ -1144,6 +1144,8 @@
                }
 
                if (statack & FXP_SCB_STATACK_RNR) {
+                       fxp_scb_wait(sc);
+                       fxp_scb_cmd(sc, FXP_SCB_COMMAND_RU_ABORT);
                        rxmap = M_GETCTX(sc->sc_rxq.ifq_head, bus_dmamap_t);
                        fxp_scb_wait(sc);
                        CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL,



Home | Main Index | Thread Index | Old Index