From nobody@FreeBSD.org  Tue May 17 23:54:16 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E5D87106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 May 2011 23:54:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id D3F458FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 May 2011 23:54:16 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4HNsGOE045146
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 May 2011 23:54:16 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4HNsGSl045145;
	Tue, 17 May 2011 23:54:16 GMT
	(envelope-from nobody)
Message-Id: <201105172354.p4HNsGSl045145@red.freebsd.org>
Date: Tue, 17 May 2011 23:54:16 GMT
From: "Miko&#322;aj Ochal" <vatt.miko@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nfe0 hang up the system after the 'dhclient nfe0'
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         157132
>Category:       kern
>Synopsis:       [nfe] nfe0 hang up the system after the 'dhclient nfe0'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 18 00:00:17 UTC 2011
>Closed-Date:    Tue Sep 06 00:47:22 UTC 2011
>Last-Modified:  Tue Sep 06 00:47:22 UTC 2011
>Originator:     Miko&#322;aj Ochal
>Release:        8.2-i386_amd64, 8.2-amd63, 9.0-i386
>Organization:
myself
>Environment:
it is default system instalation for instance 9.0  02.2011 snapshot
no kernel changes or anything just trying 'nfe'
im only using OpenBSD atm
FreeBSD is on a different hdd
>Description:
while installing FBSD ... while dhclient start system freez
when installing developer +eng doc+ no network +reboot
after reboot
1=>>'dhclient nfe0' freez the system
2=>>'ifconfig nfe0 inet 192.168.1.xx netmask 255.255.255.0' freez
..after reboot
>How-To-Repeat:
when installing just let Ethernet auto dhcp == freez

after installing without eth>>
login: root
pass:xxxx
dhclient nfe0 == freez
================
login:root
pass:xxxx
ifconfig nfe0 inet 192.168.1.111 netmask 255.255.255.0== freez
================

>Fix:
after installing the system without the ethernet
login:root
pass:xxxx
ifconfig nfe0 down
ifconfig nfe0 inet 192.168.1.111
ifconfig nfe0 inet 192.168.1.111 netmask 255.255.255.0
ifconfig nfe0 up
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Thu May 19 21:21:26 UTC 2011 
State-Changed-Why:  
Show me full dmesg output as well as the output of "pciconf -lcbv". 
Can you run 'dhclient nfe0' without UTP cable plugged? Do you still 
see the lock up? 


Responsible-Changed-From-To: freebsd-bugs->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Thu May 19 21:21:26 UTC 2011 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157132 

From: YongHyeon PYUN <pyunyh@gmail.com>
To: vatt rexah <vatt.miko@gmail.com>
Cc: yongari@freebsd.org, bug-followup@FreeBSD.org
Subject: Re: misc/157132: [nfe] nfe0 hang up the system after the 'dhclient nfe0'
Date: Thu, 19 May 2011 16:54:01 -0700

 --Uwl7UQhJk99r8jnw
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Fri, May 20, 2011 at 01:43:56AM +0200, vatt rexah wrote:
 > dhclient without cable seems to work good but < im tired drunk and tommorow
 > past 9-10pm ill be back from work and have 2 days off^i hope i didnt waste
 > your time> if it's nvidia(i have m57sli motherboard) or it can take too much
 > time to make changes ... give me a vendornames i should use when updating
 > software a BSDfriendly vendors
 > 
 > i have also uname-a from 9.0 and vmstat_-i as my frind from
 > bsdguru.org'vermaden' adviced<< thank you
 > i have had some problems with retriving data from new instalation of FB> ill
 > have more time tommorow
 > thank you again for your time
 
 Try attached patch and let me know whether it makes any difference
 for you.
 
 --Uwl7UQhJk99r8jnw
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="nfe.intr.diff"
 
 Index: sys/dev/nfe/if_nfe.c
 ===================================================================
 --- sys/dev/nfe/if_nfe.c	(revision 222097)
 +++ sys/dev/nfe/if_nfe.c	(working copy)
 @@ -1889,7 +1889,7 @@
  
  	if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
  		NFE_UNLOCK(sc);
 -		nfe_enable_intr(sc);
 +		nfe_disable_intr(sc);
  		return;
  	}
  
 
 --Uwl7UQhJk99r8jnw--
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Tue Sep 6 00:46:48 UTC 2011 
State-Changed-Why:  
Feedback timeout(> 3 months). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=157132 
>Unformatted:
 >>>>>works after
 
 3=>>ifconfig nfe0 down
 ifconfig nfe0 inet 192.168.1.16(or xx)
 ifconfig nfe0 inet 192.168.1.16 netmask 255.255.255.0
 
 ..it works for a while
 
 (if ** ifconfig nfe0 inet 192.xxx.xxx.xxx netmask xxxxxxxxxxx <<at once <<< it hangs up the system
 
 dhclient nfe0 hangs up system(it works well only after )
 (3=>>)step
 
 I can't set inet and netmask at once
 even if I set it as
 ifconfig nfe0 inet X
 ifconfig nfe0 inet X netmask X
 after reboot it hangs up the system
 >>it works for a while
 
 sometimes it takes ++MB of memory >> when it reachs max == it hangs up
 or just freez watching top or wathever .. making tea
 
