On Thu, Sep 09, 2010 at 01:10:50PM -0700, Pyun YongHyeon wrote: > On Thu, Sep 09, 2010 at 02:28:26PM +0400, Igor Sysoev wrote: > > Hi, > > > > I have several hosts running FreeBSD/amd64 7.2-STABLE updated on 11.01.2010 > > and 25.02.2010. Hosts process about 10K input and 10K output packets/s > > without issues. One of them, however, is loaded more than others, so it > > processes 20K/20K packets/s. > > > > Recently, I have upgraded one host to 7.3-STABLE, 24.08.2010. > > Then bge on this host hung two times. I was able to restart it from > > console using: > > /etc/rc.d/netif restart bge0 > > > > Then I have upgraded the most loaded (20K/20K) host to 7.3-STABLE, > > 07.09.2010. > > After reboot bge hung every several seconds. I was able to restart it, > > but bge hung again after several seconds. > > > > Then I have downgraded this host to 7.3-STABLE, 14.08.2010, since there > > were several if_bge.c commits on 15.08.2010. The same hangs. > > Then I have downgraded this host to 7.3-STABLE, 17.03.2010, before > > the first if_bge.c commit after 25.02.2010. Now it runs without hangs. > > > > The hosts are amd64 dual core SMP with 4G machines. bge information: > > > > b...@pci0:4:0:0: class=0x020000 card=0x165914e4 chip=0x165914e4 > > rev=0x11 hdr=0x00 > > vendor = 'Broadcom Corporation' > > device = 'NetXtreme Gigabit Ethernet PCI Express (BCM5721)' > > > > bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x004101> > > mem 0xfe5f0000-0xfe5fffff irq 19 at device 0.0 on pci4 > > miibus1: <MII bus> on bge0 > > brgphy0: <BCM5750 10/100/1000baseTX PHY> PHY 1 on miibus1 > > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > 1000baseT-FDX, auto > > bge0: Ethernet address: 00:e0:81:5f:6e:8a > > > > Could you show me verbose boot message(bge part only)? > Also show me the output of "pciconf -lcbv". >
Forgot to send a patch. Let me know whether attached patch fixes the issue or not.
Index: sys/dev/bge/if_bge.c =================================================================== --- sys/dev/bge/if_bge.c (revision 212341) +++ sys/dev/bge/if_bge.c (working copy) @@ -3386,9 +3386,11 @@ sc->bge_rx_saved_considx = rx_cons; bge_writembx(sc, BGE_MBX_RX_CONS0_LO, sc->bge_rx_saved_considx); if (stdcnt) - bge_writembx(sc, BGE_MBX_RX_STD_PROD_LO, sc->bge_std); + bge_writembx(sc, BGE_MBX_RX_STD_PROD_LO, (sc->bge_std + + BGE_STD_RX_RING_CNT - 1) % BGE_STD_RX_RING_CNT); if (jumbocnt) - bge_writembx(sc, BGE_MBX_RX_JUMBO_PROD_LO, sc->bge_jumbo); + bge_writembx(sc, BGE_MBX_RX_JUMBO_PROD_LO, (sc->bge_jumbo + + BGE_JUMBO_RX_RING_CNT - 1) % BGE_JUMBO_RX_RING_CNT); #ifdef notyet /* * This register wraps very quickly under heavy packet drops.
_______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"