From owner-freebsd-net@FreeBSD.ORG Mon Jun 11 03:25:29 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9DA8106566C for ; Mon, 11 Jun 2012 03:25:29 +0000 (UTC) (envelope-from jeffutter@sadclown.net) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5E2D68FC1C for ; Mon, 11 Jun 2012 03:25:29 +0000 (UTC) Received: by yenl8 with SMTP id l8so2461593yen.13 for ; Sun, 10 Jun 2012 20:25:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:x-gm-message-state; bh=W9AbgU9ck5dYHY53Sj/fMWZTHn6liSP8RDvLrmAaXI8=; b=d8b7Iq3EDjIh8YSwdAQ1uYcqYKmcLdwa2Rpynhc9LEHC5CGwOcr4/FuKcfSfgRP9jB aG3szQ45QHLnqKdUEgXgD+jjdSGAolitvWMnlUzPPavNLXAlm5ScWCdxzTjzH+lw4S5V hrCTdcZM841ztm1lhkVcbaXKR3jLoJ1Qhglzqs8qRL2cZhOWpRqFOMApn2C2EnC605kw J+qKpgzR2M9UP+JE30FiGVcsdIUo1nQGqE0R4VDy7mrevlpZScHfwAoTW2MlR/8nPioW S7RsC/RlSY3SGxr9M3uhr/5jezZtr414QlX07OBi+gDvlIIUUfE4BNEG6vr/JWynGlb3 oNfw== Received: by 10.236.183.227 with SMTP id q63mr18435759yhm.114.1339385128025; Sun, 10 Jun 2012 20:25:28 -0700 (PDT) Received: from [192.168.1.65] (75-48-125-111.lightspeed.klmzmi.sbcglobal.net. [75.48.125.111]) by mx.google.com with ESMTPS id q32sm23353780anh.21.2012.06.10.20.25.26 (version=SSLv3 cipher=OTHER); Sun, 10 Jun 2012 20:25:27 -0700 (PDT) Message-ID: <4FD56526.6090008@sadclown.net> Date: Sun, 10 Jun 2012 23:25:26 -0400 From: Jeffery Utter User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120602 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-net@freebsd.org X-Gm-Message-State: ALoCoQnsff4N0WuZtnSuUBYj0M4Loj1nEd/BSlDcHWIeMK2hBE26fbxo/O94lG9yrhymxUKr6QGl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: BCM57781 Adapter Hangs X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2012 03:25:29 -0000 Hi! (Hope this is the right place to ask this) I have a BCM57781 adapter built into a new ASRock motherboard. The adapter runs great, however it periodically dies - about once a day. When it dies existing connections (like ssh) work fine, but any new incoming or outgoing connections fail. I am not running a firewall. When in the crashed state I've checked my ifconfig/routes/resolve.conf all looks good. I have also checked the max/current sockets in sysctl and it is nowhere near the max. The only thing I can do to get my connection working again is /etc/rc.d/netif restart. # pciconf -lvvv bge0@pci0:3:0:0: class=0x020000 card=0x96b11849 chip=0x16b114e4 rev=0x10 hdr=0x00 vendor = 'Broadcom Corporation' device = 'NetLink BCM57781 Gigabit Ethernet PCIe' class = network subclass = ethernet # dmesg |grep bge bge0: mem 0xf2110000-0xf211ffff,0xf2100000-0xf210ffff irq 19 at device 0.0 on pci3 bge0: CHIP ID 0x57785100; ASIC REV 0x57785; CHIP REV 0x577851; PCI-E miibus0: on bge0 bge0: Ethernet address: bc:5f:f4:43:87:9e # uname -a FreeBSD jeffu-htpc 9.0-STABLE FreeBSD 9.0-STABLE #0: Thu Jun 7 13:34:56 EDT 2012 root@jeffu-htpc:/usr/obj/usr/src/sys/GENERIC amd64 Here is some output while the problem is occurring: # ping google.com ping: cannot resolve google.com: Host name lookup failure # cat /etc/resolv.conf # Generated by resolvconf search gateway.2wire.net nameserver 192.168.1.254 # netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.1.254 UGS 0 402197 bge0 localhost link#6 UH 0 286788 lo0 192.168.1.0 link#3 U 0 77598 bge0 192.168.1.65 link#3 UHS 0 0 lo0 Internet6: Destination Gateway Flags Netif Expire :: localhost UGRS lo0 localhost link#6 UH lo0 ::ffff:0.0.0.0 localhost UGRS lo0 fe80:: localhost UGRS lo0 fe80::%lo0 link#6 U lo0 fe80::1%lo0 link#6 UHS lo0 ff01::%lo0 localhost U lo0 ff02:: localhost UGRS lo0 ff02::%lo0 localhost U lo0 # sysctl -a |grep sockets kern.ipc.maxsockets: 25600 kern.ipc.numopensockets: 251 # dmesg |grep bge bge0: mem 0xf2110000-0xf211ffff,0xf2100000-0xf210ffff irq 19 at device 0.0 on pci3 bge0: CHIP ID 0x57785100; ASIC REV 0x57785; CHIP REV 0x577851; PCI-E miibus0: on bge0 bge0: Ethernet address: bc:5f:f4:43:87:9e bge0: link state changed to DOWN bge0: link state changed to UP bge0: link state changed to DOWN bge0: link state changed to UP ^--- the up/downs were from much earlier # ping 192.168.1.254 PING 192.168.1.254 (192.168.1.254): 56 data bytes --- 192.168.1.254 ping statistics --- 352 packets transmitted, 0 packets received, 100.0% packet loss # ifconfig -a bge0: flags=8843 metric 0 mtu 1500 options=c019b ether bc:5f:f4:43:87:9e inet 192.168.1.65 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active What can i do to troubleshoot this? I've checked the bge manpage and don't see anything related to debugging.