From owner-freebsd-current@FreeBSD.ORG Wed Jul 22 00:13:16 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0D651065688 for ; Wed, 22 Jul 2009 00:13:16 +0000 (UTC) (envelope-from webmaster@doghouserepair.com) Received: from smtp125.sbc.mail.sp1.yahoo.com (smtp125.sbc.mail.sp1.yahoo.com [69.147.65.184]) by mx1.freebsd.org (Postfix) with SMTP id 79B768FC14 for ; Wed, 22 Jul 2009 00:13:16 +0000 (UTC) (envelope-from webmaster@doghouserepair.com) Received: (qmail 91397 invoked from network); 21 Jul 2009 23:46:36 -0000 Received: from unknown (HELO ?10.10.10.3?) (webmaster@69.108.138.13 with plain) by smtp125.sbc.mail.sp1.yahoo.com with SMTP; 21 Jul 2009 23:46:35 -0000 X-YMail-OSG: kdaTwk0VM1kxGGw84kOMmU3i0PA6PZCwt2SRxPJiHLEGLGANeoDw.uqLNtIbYjc.Wx4gVT4a9XV1ExkGyHddvI48n8.bZ8D_RSskm9MhaJoyEDHP9.c.vrn6bPgKNhgtIhRYh.f54PvrXI18nSyvxY12L_ZQ7j1NZzRfE33U7OveE_YSoeBNWhXmDI9OqgTslO5lYVSyGPNn62PoBZqb7y5QcMpjK30Lk16epwPy.Id3uKPYnwq60ouWklG_mrL.mJ1ZIkU_77_q6jagCWOS_vBCCK7VP_2f5ZJfz2hwV.bOvQv_I4FR9mJYUAMmAs9vFgslEiLBdhiR9sIv628CeXF6 X-Yahoo-Newman-Property: ymail-3 Message-ID: <4A6652DF.8080004@doghouserepair.com> Date: Tue, 21 Jul 2009 16:44:31 -0700 From: Ryan Rogers User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: "Sam Fourman Jr." References: <4A651E50.6000508@doghouserepair.com> <11167f520907201957h380601a7m18109be634da45c7@mail.gmail.com> In-Reply-To: <11167f520907201957h380601a7m18109be634da45c7@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: nfe problem on 8.0-BETA2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2009 00:13:17 -0000 Sam Fourman Jr. wrote: > On Mon, Jul 20, 2009 at 8:48 PM, Ryan > Rogers wrote: >> I'm running 8.0-BETA2/amd64 on a system that has on-board ethernet. It is >> detected by FreeBSD as the following: >> >> nfe0: port 0xac00-0xac07 mem >> 0xcfffa000-0xcfffafff,0xcfff9000-0xcfff90ff,0xcfff8000-0xcfff800f irq 22 at >> device 17.0 on pci0 >> miibus1: on nfe0 >> e1000phy0: PHY 1 on miibus1 >> e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, >> 1000baseT-FDX, auto >> >> The problem is, I can't get packets to move across the interface. I know >> that the interface works in Windows as well as Ubuntu, but it looks like >> it's failing to get fully configured in FreeBSD. The output of ifconfig >> nfe0 is: >> >> nfe0: flags=8843 metric 0 mtu 1500 >> options=19b >> ether 00:04:4b:01:8c:0b >> inet 10.10.10.3 netmask 0xffffff00 broadcast 10.10.10.255 >> media: Ethernet autoselect (none) >> status: active >> >> The part that I find odd is "media: Ethernet autoselect (none)". If I >> manually force it to "media 1000baseT mediaopt full-duplex", that line >> becomes "media: 1000baseT full-duplex (10baseT/UTP half-duplex)". Still, the >> interface is dead. >> >> I found PR kern/127910 which describes the same problem, except for >> 7.0-RELEASE. There's been no activity on that for 9 months though (aside >> from my update today). Can anyone offer me any insight on this? >> >> Thanks, >> Ryan > > > I can confirm this is a nfe problem, I first reported it to the > mailing list a few weeks back > under the subject FreeBSD 8 BETA1 DHCP trouble. > http://groups.google.co.jp/group/muc.lists.freebsd.current/browse_thread/thread/ba7b35e561d3e868 > I have several different motherboards with nfe nics, My findings are as follows. > > on a FreeBSD -CURRENT snapshot dated 6-1-2009 dhcp works as expected. > somewhere after ~ 6-6-2009 something broke. > > dhclient nfe0 > DHCPDISCOVER on nfe0 to 255.255.255.255 port 67 interval 4 > DHCPDISCOVER on nfe0 to 255.255.255.255 port 67 interval 9 > DHCPDISCOVER on nfe0 to 255.255.255.255 port 67 interval 9 > DHCPDISCOVER on nfe0 to 255.255.255.255 port 67 interval 12 > DHCPDISCOVER on nfe0 to 255.255.255.255 port 67 interval 18 > DHCPDISCOVER on nfe0 to 255.255.255.255 port 67 interval 9 > No DHCPOFFERS received. > No working leases in persistent database - sleeping. > > the odd thing is that on motherboards that have dual nfe nics nfe1 > always works,and nfe0 is always broke. > on motherboards that have only a single nfe interface nfe0 is indeed broke. > > on a dual nic motherboard, if you go into BIOS and disable one of the > LAN devices. DHCP will fail if the interface name is nfe0 > even though it worked 5 min before when that same nic and MAC address > had the nfe1 name. > > This entire thing is odd :) > > > Sam Fourman Jr. > > I have 7.2-RELEASE/i386 running perfectly using the same motherboard that is causing me nfe problems in 8.0-BETA2/amd64. I then decided to see if perhaps it was something with i386 vs amd64, so I downloaded a 7.2-RELEASE/amd64 iso, and the nics worked perfectly there as well. Seeing that nfe apparently worked on June 1st, I headed to the FTP to see which snapshots were available. The earliest -CURRENT June snapshot was dated the 8th, so I grabbed that one. The nics didn't work at all. So, there's a small window where something changed which broke nfe. Looking at the SVN commit logs for if_nfe.c, nothing really fits in that window. To me, this looks like something about general network device handling changed which nfe nics can't cope with. I have no idea what that could be though, so I'm hoping that someone on this list would be able to point me in the right direction. Ryan