From owner-freebsd-net@FreeBSD.ORG Mon Nov 26 05:05:57 2007 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 F1D9516A41A for ; Mon, 26 Nov 2007 05:05:56 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by mx1.freebsd.org (Postfix) with ESMTP id A358D13C45A for ; Mon, 26 Nov 2007 05:05:56 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so207134nzf for ; Sun, 25 Nov 2007 21:05:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=Ul1d0AJY6TqIuKQqnFT4i+VBrdxTdHm1NTX2iRTHY0k=; b=PfVntnFLLui7cNDq+CMPEoWDVsQ4btDLeuVP3IDb9eUqIZ10IgZE/gneMxfBKGdTKzWt5qBIchX3oMxVb4SDKrrwjbAMPmkKMnOdQmTxeVRWSEY/gETwRoPSfu3xtxyTEjoFk98y4bCj1+rtKQJXtd1MRdPm+IyTbB4ajO284is= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=cfB7z04en6lazXvUlQv3E3EgukUiojDordFx8NttOeUwML1RJpAbnKMk23Ra98NGWGhXfCV/RKgzWAtWKYaFogrg4aDfs26Hj6noM/zQ5/iyXGb7c5zy/n2fINmmBI/EKgjlTsD7NoMN/5d/HYfkgB19WRKhZAqvOms6AsmDfkk= Received: by 10.114.88.1 with SMTP id l1mr563274wab.1196053555379; Sun, 25 Nov 2007 21:05:55 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id m5sm3201873wag.2007.11.25.21.05.47 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2007 21:05:53 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id lAQ53eu7002663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Nov 2007 14:03:40 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id lAQ53cA6002662; Mon, 26 Nov 2007 14:03:38 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 26 Nov 2007 14:03:38 +0900 From: Pyun YongHyeon To: supportsobaka@mail.ru Message-ID: <20071126050338.GB1025@cdnetworks.co.kr> References: <1452057316.20071124171853@mail.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <1452057316.20071124171853@mail.ru> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org, davidch@freebsd.org Subject: Re: Broadcom NetXtreme II BMC5708 no carrier 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: Mon, 26 Nov 2007 05:05:57 -0000 --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Nov 24, 2007 at 05:18:53PM +0300, supportsobaka@mail.ru wrote: > Hello > > We have problem with Broadcom NetXtreme II BMC5708 on our blade > server. > > ifconfig bce0 report: > > bce0: flags=8847 mtu 1500 > options=3b > inet 172.0.0.199 netmask 0xffffff00 broadcast 172.0.0.255 > ether 00:1a:64:33:29:c7 > media: Ethernet autoselect (none) > status: no carrier > > > Try to set > #ifconfig bce0 media 1000baseSX mediaopt full-duplex > > bce0: flags=8847 mtu 1500 > options=3b > inet 172.0.0.199 netmask 0xffffff00 broadcast 172.0.0.255 > ether 00:1a:64:33:29:c7 > media: Ethernet 1000baseSX (none) > status: no carrier > > > Status don't want change to active, and nothing work :( > > FreeBSD 6.3-PRERELEASE (7.x have problem too) > > Is any idea? It seems that mii_ticks is not kicked at all in auto-negotiation phase. From the output of forced 1000baseSX media configuration I guess BRGPHY_BMSR_ACOMP bit in BRGPHY_MII_BMSR is not updated on 5708S. Mabe davidch know better what's going on 5708S. (CCed) How about attached patch? I don't have the hardware so it's just a guess work. -- Regards, Pyun YongHyeon --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="brgphy.patch" Index: brgphy.c =================================================================== RCS file: /home/ncvs/src/sys/dev/mii/brgphy.c,v retrieving revision 1.70 diff -u -r1.70 brgphy.c --- brgphy.c 8 Jun 2007 02:34:44 -0000 1.70 +++ brgphy.c 26 Nov 2007 05:03:55 -0000 @@ -364,12 +364,10 @@ break; } -#if 0 /* Todo: Is this correct? */ /* Announce link loss right after it happens. */ if (sc->mii_ticks++ == 0) break; -#endif /* Only retry autonegotiation every mii_anegticks seconds. */ if (sc->mii_ticks <= sc->mii_anegticks) @@ -507,9 +505,12 @@ /* Autoneg is still in progress. */ if ((bmcr & BRGPHY_BMCR_AUTOEN) && (bmsr & BRGPHY_BMSR_ACOMP) == 0) { - /* Erg, still trying, I guess... */ - mii->mii_media_active |= IFM_NONE; - goto brgphy_status_exit; + /* XXX 5708S doesn't update BRGPHY_BMSR_ACOMP? */ + if ((bsc->serdes_flags & BRGPHY_5708S) == 0) { + /* Erg, still trying, I guess... */ + mii->mii_media_active |= IFM_NONE; + goto brgphy_status_exit; + } } /* Autoneg is enabled and complete, link should be up. */ --xgyAXRrhYN0wYx8y--