From owner-freebsd-bugs  Fri Aug  9 13:10:12 2002
Delivered-To: freebsd-bugs@hub.freebsd.org
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0E14037B400
	for <freebsd-bugs@hub.freebsd.org>; Fri,  9 Aug 2002 13:10:03 -0700 (PDT)
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 51BFE43E72
	for <freebsd-bugs@hub.freebsd.org>; Fri,  9 Aug 2002 13:10:02 -0700 (PDT)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g79KA2JU064674
	for <freebsd-bugs@freefall.freebsd.org>; Fri, 9 Aug 2002 13:10:02 -0700 (PDT)
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g79KA2eT064673;
	Fri, 9 Aug 2002 13:10:02 -0700 (PDT)
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
X-Send-Pr-Version: 3.113
Subject: kern/41489: nge(4) works as a module, but fails when when compiled-in
Sender: owner-freebsd-bugs@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-bugs.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-bugs>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-bugs>
X-Loop: FreeBSD.org


>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 09 13:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message