[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-stable
Subject:    RE: 4.9-RC and bge
From:       John Polstra <jdp () polstra ! com>
Date:       2003-09-30 15:21:16
[Download RAW message or body]

This message is in MIME format

On 30-Sep-2003 Damon Anton Permezel wrote:
> Recent SUP.
> Installed on Dell PowerEdge 4600.
> Getting tons of:
> 
> Sep 30 12:23:16 zige /kernel: bge0: gigabit link up
> Sep 30 12:23:46 zige last message repeated 98 times

Check your dmesg output, and I bet you'll see that bge0 is sharing an
IRQ with another device.  (If not, I'd like to hear about it.)  This
bug was fixed in -current in revision 1.41 of if_bge.c, but it never
got merged to -stable.  I have a patch for -stable that I am planning
to commit after the source freeze lifts.  It is attached to this mail.
Please let me know whether it solves your problem or not.

John

["if_bge.c.patch" (if_bge.c.patch)]

Index: if_bge.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/bge/if_bge.c,v
retrieving revision 1.3.2.28
diff -u -r1.3.2.28 if_bge.c
--- if_bge.c	26 Sep 2003 16:02:04 -0000	1.3.2.28
+++ if_bge.c	30 Sep 2003 15:15:45 -0000
@@ -2222,11 +2222,12 @@
 {
 	struct bge_softc *sc;
 	struct ifnet *ifp;
+	u_int32_t statusword;
 	u_int32_t status;
 
-
 	sc = xsc;
 	ifp = &sc->arpcom.ac_if;
+	statusword = loadandclear(&sc->bge_rdata->bge_status_block.bge_status);
 
 #ifdef notdef
 	/* Avoid this for now -- checking this register is expensive. */
@@ -2263,13 +2264,7 @@
 			    BRGPHY_INTRS);
 		}
 	} else {
-		if ((sc->bge_rdata->bge_status_block.bge_status &
-		    BGE_STATFLAG_UPDATED) &&
-		    (sc->bge_rdata->bge_status_block.bge_status &
-		    BGE_STATFLAG_LINKSTATE_CHANGED)) {
-			sc->bge_rdata->bge_status_block.bge_status &=
-			    ~(BGE_STATFLAG_UPDATED|
-			    BGE_STATFLAG_LINKSTATE_CHANGED);
+		if (statusword & BGE_STATFLAG_LINKSTATE_CHANGED) {
 			/*
 			 * Sometimes PCS encoding errors are detected in
 			 * TBI mode (on fiber NICs), and for some reason


_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

End of MIME message

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic