From owner-freebsd-net@FreeBSD.ORG Thu Feb 23 04:33:51 2012 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 95D96106564A for ; Thu, 23 Feb 2012 04:33:51 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6BED28FC08 for ; Thu, 23 Feb 2012 04:33:51 +0000 (UTC) Received: by daec6 with SMTP id c6so887673dae.13 for ; Wed, 22 Feb 2012 20:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=4EtPwq9CdpWwpMUYkz2VDo/8OeZ2vkiXMJ7DfaFBE40=; b=IvAmHQaq4fGXZU82vAxQFm4PEZAmqWQ1+IIJFbsIWE15WO2/5cYmkaMEQyFhTpyVKk sJtlSa9677gGqsuPeasX15mSQ8hvw1cHrBX7rf6z1Z1ScqrZiBcU++TihbPqjC6iVe0v 3KDCYRv2Gw3MOaQDwyAmVaRsewtcx2EQZQURw= Received: by 10.68.197.196 with SMTP id iw4mr947254pbc.133.1329971631090; Wed, 22 Feb 2012 20:33:51 -0800 (PST) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id vy2sm361112pbb.48.2012.02.22.20.33.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 20:33:50 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 23 Feb 2012 13:33:44 -0800 From: YongHyeon PYUN Date: Thu, 23 Feb 2012 13:33:44 -0800 To: sbruno@freebsd.org Message-ID: <20120223213344.GC13815@michelle.cdnetworks.com> References: <1329958728.78750.6.camel@powernoodle-l7.corp.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1329958728.78750.6.camel@powernoodle-l7.corp.yahoo.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: bge(4) failure, Dell 12G hardware, BCM5720C 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: Thu, 23 Feb 2012 04:33:51 -0000 On Wed, Feb 22, 2012 at 04:58:48PM -0800, Sean Bruno wrote: > Trying some hackery today in my netboot environment with the Dell 12G > R620. I had to disable some bios calls in bios.c after reviewing an > email from Doug Ambrisko, and I see a pretty hard failure of bge(4) on > stable/7 with yahoo modifications on i386. > > I've tried disabling msi via: > ==== //depot/yahoo/ybsd_7/src/sys/dev/bge/if_bge.c#49 > - /home/seanbru/ybsd_7/src/sys/dev/bge/if_bge.c ==== > 5633c5633 > < sc->bge_msi = 1; > --- > > sc->bge_msi = 0; > > This quieted a lot of errors but the interface still appears to be non > functional. > > > http://people.freebsd.org/~sbruno/dell_12g_bgesysctl.txt > http://people.freebsd.org/~sbruno/dell_12g_pciconf.txt > http://people.freebsd.org/~sbruno/dell_12g_dmesg.txt > > > Sean As you see ukphy(4) was attached to bge2 so it may cause various issues. Is bge2 ASF/IPMI enabled interface? It seems ASF handling in bge(4) causes more trouble on recent controllers. Unfortunately disabling ASF may also trigger other problems like NMI. I believe bge(4) should always honor ASF/IMPI firmware instead of relying on hw.bge.allow_asf tunable and have to strictly follow firmware handshake sequence. Just ignoring ASF/IMPI firmware seems to confuse firmware. Unfortunately all these information is undocumented and fixing it requires real hardware access.