From vangyzen@stat.duke.edu  Fri Aug  9 13:05:40 2002
Return-Path: <vangyzen@stat.duke.edu>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3BA1A37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Aug 2002 13:05:40 -0700 (PDT)
Received: from davinci.isds.duke.edu (davinci.isds.duke.edu [152.3.22.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7CCCB43E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  9 Aug 2002 13:05:39 -0700 (PDT)
	(envelope-from vangyzen@stat.duke.edu)
Received: from floyd.isds.duke.edu (floyd.isds.duke.edu [152.3.22.120])
	by davinci.isds.duke.edu (8.11.6/8.11.6) with ESMTP id g79K5c212584
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 9 Aug 2002 16:05:38 -0400 (EDT)
Received: (from vangyzen@localhost)
	by floyd.isds.duke.edu (8.12.5/8.12.5/Submit) id g79K5cfe056095;
	Fri, 9 Aug 2002 16:05:38 -0400 (EDT)
	(envelope-from vangyzen)
Message-Id: <200208092005.g79K5cfe056095@floyd.isds.duke.edu>
Date: Fri, 9 Aug 2002 16:05:38 -0400 (EDT)
From: Eric van Gyzen <vangyzen@stat.duke.edu>
Reply-To: Eric van Gyzen <vangyzen@stat.duke.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: nge(4) works as a module, but fails when when compiled-in
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41489
>Category:       kern
>Synopsis:       nge(4) works as a module, but fails when when compiled-in
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 09 13:10:01 PDT 2002
>Closed-Date:    Fri Aug 15 22:29:29 PDT 2003
>Last-Modified:  Fri Aug 15 22:29:29 PDT 2003
>Originator:     Eric van Gyzen
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Duke University Statistics
>Environment:
FreeBSD-STABLE GENERIC kernel circa Tue Aug 6 10:23:02 EDT 2002

>Description:
I have an SMC 9452TX 32-bit gigabit ethernet card.
If I load the nge(4) driver as a module, it works.
If I compile the driver into the kernel, without
making any other modifications, it does not work.
I can configure it and bring it up, but ping
gets no replies.  tcpdump shows arp who-has
requests, but no arp is-at replies.  tcpdump on a
different machine shows both the who-has and is-at
packets.  Apparently, the card is sending but not
receiving packets.

Also, when it does work, it takes a while to
actually start passing packets.  I bring up the
interface, start pinging something, and 52
seconds pass before I start receiving replies.
I tried this four times and there was almost no
variation in the "lag time".

On a possibly unrelated note, if I load the GENERIC
kernel and the if_nge module from the bootloader,
the kernel panics as soon as "ifconfig nge0" is run --
"page fault while in kernel mode".  This seems to be
because miibus is both built into the kernel and
loaded as a module by the bootloader, even though this
is also the case when I load if_nge with kldload.
I have no idea.  If you think these problems are
related, I'll try to get more information.

>How-To-Repeat:
In /etc/rc.conf, set network_interfaces="lo0 nge0"
so the nge module will be loaded.  Alternatively,
boot into single-user and load it manually with
kldload.  Of course, also set ifconfig_nge0
appropriately.

Boot the GENERIC kernel.  It works.

Add "device nge" to the GENERIC kernel config,
compile, and boot the new kernel.  It fails.

>Fix:
I wish I knew.  I'll gladly work with anyone to
troubleshoot this.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Mon Jul 14 04:23:39 PDT 2003 
State-Changed-Why:  
Does this problem persist in recent releases? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41489 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Fri Aug 15 22:29:19 PDT 2003 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41489 
>Unformatted:
