From owner-freebsd-net@FreeBSD.ORG Mon Oct 3 23:06:42 2011 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 212E8106566B; Mon, 3 Oct 2011 23:06:42 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id CBCAF8FC16; Mon, 3 Oct 2011 23:06:41 +0000 (UTC) Received: from [127.0.0.1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id p93N6JCc041089; Mon, 3 Oct 2011 16:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1317683179; bh=6Jpol+jfrYMOBllc7LNR3zt7nnL1HDQk9+tDqJJ2ajg=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=CA9OZNgXeJJWWvHRFM2h4KrvC+FxXc3CMCRYWAq9PLs2JP2QT+rwVThBdqz2GlKaW Vjm+cOnQuWjbECaXLxrub0gn7u89vclaBMQzOnq8JuGFoAxbo6ke4jxyw+UGf+vZH9 wt2EuByPhEgNoLst7aM37fowkJOs1J+r1FejiDUc= From: Sean Bruno To: David Christensen In-Reply-To: <5D267A3F22FD854F8F48B3D2B523819385F35B4738@IRVEXCHCCR01.corp.ad.broadcom.com> References: <1317315666.2777.8.camel@hitfishpass-lx.corp.yahoo.com> <1317323418.2777.14.camel@hitfishpass-lx.corp.yahoo.com> <1317343996.2777.33.camel@hitfishpass-lx.corp.yahoo.com> <1317346748.2777.36.camel@hitfishpass-lx.corp.yahoo.com> <5D267A3F22FD854F8F48B3D2B523819385F35B4738@IRVEXCHCCR01.corp.ad.broadcom.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 03 Oct 2011 16:06:18 -0700 Message-ID: <1317683178.15510.25.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , "davidch@freebsd.org" , Pyun YongHyeon Subject: RE: bce(4) with IPMI 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, 03 Oct 2011 23:06:42 -0000 On Mon, 2011-10-03 at 15:30 -0700, David Christensen wrote: > > > > I should probably say, this is freebsd7. So I'll peruse the > > changelogs > > > > and see if 7 is missing something here. > > > > > > > > sean > > > > > > commenting this change out seems to be helping quite a bit with my > > > issue. I think that this behavior may be wrong in the IPMI shared/nic > > > case. Thoughts? > > > > > > > > http://svnweb.freebsd.org/base/head/sys/dev/bce/if_bce.c?r1=210261&r2=210263 > > > > The main reason bce(4) needs to coordinate with NC-SI/IPMI > firmware is to make sure only one software entity manipulates > PHY registers. When bce(4) is loaded it will have priority > over firmware (e.g. autoneg, speed, and duplex settings will > be set by the host). If you don't bring up the interface in > the host the firmware isn't authorized to do so, which sounds > like your problem. > > Current bce(4) behavior notifies firmware that host driver > is running when resetting the device in bce_attach(). We > tell firmware that host driver is still running through > bce_pulse(). Not sure how to handle the FreeBSD model where > the driver load doesn't immediately bring the link up. > > Dave > Hrm, understood. What are your thoughts on noting that the IPMI f/w is running and leaving the interface up? I'm poking around trying to find the right register bits at initialization to see that this is the case. What's even more strange is that our freebsd6 instances don't have this problem. Sean