From owner-freebsd-net@FreeBSD.ORG Sat Apr 10 21:25:23 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B26FF106566B for ; Sat, 10 Apr 2010 21:25:23 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id 61B4D8FC15 for ; Sat, 10 Apr 2010 21:25:23 +0000 (UTC) Received: by qyk11 with SMTP id 11so3738805qyk.13 for ; Sat, 10 Apr 2010 14:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=CYVpRVzTJv84sHzmvHuMIChlTFf1I94SCaK8HborazA=; b=iFSAM8B/PqpYHoEa9NOPoWoAtV+gnXvk/ChCEqowvNLZrd+IGgFDKtJ435ihp1twbd QNtWw6qaVEAeT312oeg/EPefbPGdqEer240Mr4qaYd2DS+Tnv00mQqmn94Da5CKtmQiC JoJ8pASEMfvT19/uxDj/qvD2/Sw4gIUaPDLuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=Y+Wim+bHJvz7CdRVbYJqyq54qSJHuNMDkU+Vn82EZa36U198j2q7t0MqdfOiXK+upt XiaTiHQzDTNz5qm6pcDLqFgO5BPmiTeMBmaGKoKfUvXvTxJTSN9MP4leEkF3AhDfwS5q D+ojglTsymQWEQLPsLdX5XkdOThbQWCXsBfeM= Received: by 10.229.97.207 with SMTP id m15mr3053842qcn.6.1270934722516; Sat, 10 Apr 2010 14:25:22 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id f5sm3726759qcg.2.2010.04.10.14.25.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 10 Apr 2010 14:25:20 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sat, 10 Apr 2010 14:25:20 -0700 From: Pyun YongHyeon Date: Sat, 10 Apr 2010 14:25:20 -0700 To: "Erich Jenkins, Fuujin Group Ltd" Message-ID: <20100410212520.GB6481@michelle.cdnetworks.com> References: <4BBED9A4.3080303@fuujingroup.com> <20100409070147.GA77350@korolev-net.ru> <4BBEE18C.6040204@fuujingroup.com> <20100409173821.GD1085@michelle.cdnetworks.com> <4BC016F3.4020300@fuujingroup.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4BC016F3.4020300@fuujingroup.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org, Evgenii Davidov Subject: Re: Broadcom BCM5701 / HP NC6770 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2010 21:25:23 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Sat, Apr 10, 2010 at 12:13:07AM -0600, Erich Jenkins, Fuujin Group Ltd wrote: > Pyun YongHyeon wrote: > >On Fri, Apr 09, 2010 at 02:13:00AM -0600, Erich Jenkins, Fuujin Group Ltd > >wrote: > >>Evgenii Davidov wrote: > >>>Здравствуйте, > >>> > >>>On Fri, Apr 09, 2010 at 01:39:16AM -0600, Erich Jenkins, Fuujin Group > >>>Ltd пишет: > >>> > >>>>We were previously running 5.3 on this box (I know, VERY old), but > >>>>never had a problem. The link now fails to come up. I've tried forcing > >>>>the port out of auto (media 1000baseSX mediaopt full-duplex) and as > >>>>long as the port doesn't have an IP assigned via rc.conf on system > >>>>boot, I can get the switch to see it (Cisco 6505), but no traffic to > >>>>flow. I've checked all the obvious things (duplex setting on switch, > >>>>cable failure, etc.), all to no avail. I fiddled with the knobs in the > >>>>driver (rxcsum, vlan_mtu, etc) with no changes either. > >>>sorry for silly ansver but is your interface UP ? (ifconfig bge0 up) > >>> > >>Actually, I was silly for not mentioning that in the original post, but > >>yes, it's up. I've even tried up/down/up on the card a few times after > >>fiddling with the driver knobs, but the same thing happened, no link on > >>the switch. > >> > >>I've also tested this back-to-back with two machines and the same cards. > >>Same result: no transmission of data. Interestingly enough, the link > >>lite is lit on the cards (in back-to-back) and on the card but not the > >>switch. Not sure if that's significant or not. In the interest if > >>completeness, here's ifconfig output for that card: > >> > >>bge0: flags=8843 metric 0 mtu 1500 > >> options=9b > >> ether 00:08:02:28:76:4d > >> inet 10.222.222.144 netmask 0xffffff00 broadcast 10.222.222.255 > >> media: Ethernet 1000baseSX > >> status: active > >> > >>I also verified the MTU size to ensure the switch ports weren't > >>configured for jumbo frames. They are correctly set on the switch and on > >>the FreeBSD box, but no traffic flows. > >> > > > >Would you try booting to latest 7.3-RELEASE and check whether you > >still see the issue? > >If you see the same issue please show me verbose boot message of > >bge(4) and its PHY driver. > >_______________________________________________ > >freebsd-net@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-net > >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > Just finished the install, and ended up with the same result. I > installed OpenBSD on this box just to be sure there wasn't something > unrelated to the driver causing the issue. OpenBSD works fine. > > Where to from here? > It seems there is async link state change issue for BCM5701 TBI case. Link state handling is one of the most complex thing in bge(4) so I'm not sure whether attached patch is right thing. Public data sheet seems to indicate bit 0 of BGE_MI_STS should be set to enable link to the MAC state machine if autopolling is disabled so resetting the bit to 0 does not look right to me. Try attached patch. --gBBFr7Ir9EOA20Yy Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="bge.5701.diff" Index: sys/dev/bge/if_bge.c =================================================================== --- sys/dev/bge/if_bge.c (revision 206437) +++ sys/dev/bge/if_bge.c (working copy) @@ -1875,7 +1875,6 @@ CSR_WRITE_4(sc, BGE_MAC_STS, BGE_MACSTAT_SYNC_CHANGED | BGE_MACSTAT_CFG_CHANGED | BGE_MACSTAT_MI_COMPLETE | BGE_MACSTAT_LINK_CHANGED); - CSR_WRITE_4(sc, BGE_MI_STS, 0); /* Enable PHY auto polling (for MII/GMII only) */ if (sc->bge_flags & BGE_FLAG_TBI) { --gBBFr7Ir9EOA20Yy--