Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 16:05:38 -0400 (EDT)
From:      Eric van Gyzen <vangyzen@stat.duke.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/41489: nge(4) works as a module, but fails when when compiled-in
Message-ID:  <200208092005.g79K5cfe056095@floyd.isds.duke.edu>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208092005.g79K5cfe056095>