From owner-p4-projects Sun May 5 15:18:17 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8CD9737B407; Sun, 5 May 2002 15:18:09 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4D66A37B40B for ; Sun, 5 May 2002 15:17:55 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g45MHtb15569 for perforce@freebsd.org; Sun, 5 May 2002 15:17:55 -0700 (PDT) (envelope-from tmm@freebsd.org) Date: Sun, 5 May 2002 15:17:55 -0700 (PDT) Message-Id: <200205052217.g45MHtb15569@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to tmm@freebsd.org using -f From: Thomas Moestl Subject: PERFORCE change 10849 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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