Date: Sun, 5 May 2002 15:17:55 -0700 (PDT) From: Thomas Moestl <tmm@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 10849 for review Message-ID: <200205052217.g45MHtb15569@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10849 Change 10849 by tmm@tmm_sparc64 on 2002/05/05 15:17:05 Perform a full reset on RX/TX error conditions; failing to do so seems to cause stalls under some circumstances. Reported, proposed and tested by: phk Affected files ... ... //depot/projects/sparc64/sys/dev/gem/if_gem.c#14 edit Differences ... ==== //depot/projects/sparc64/sys/dev/gem/if_gem.c#14 (text+ko) ==== @@ -1610,11 +1610,15 @@ int txstat = bus_space_read_4(t, seb, GEM_MAC_TX_STATUS); if (txstat & ~GEM_MAC_TX_XMIT_DONE) printf("MAC tx fault, status %x\n", txstat); + if (txstat & (GEM_MAC_TX_UNDERRUN | GEM_MAC_TX_PKT_TOO_LONG)) + gem_init(sc); } if (status & GEM_INTR_RX_MAC) { int rxstat = bus_space_read_4(t, seb, GEM_MAC_RX_STATUS); if (rxstat & ~(GEM_MAC_RX_DONE | GEM_MAC_RX_FRAME_CNT)) printf("MAC rx fault, status %x\n", rxstat); + if ((rxstat & GEM_MAC_RX_OVERFLOW) != 0) + gem_init(sc); } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205052217.g45MHtb15569>