From nobody@FreeBSD.org  Sun Oct 28 06:24:19 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 07E8237B403
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Oct 2001 06:24:19 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f9SEOIA80073;
	Sun, 28 Oct 2001 06:24:18 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200110281424.f9SEOIA80073@freefall.freebsd.org>
Date: Sun, 28 Oct 2001 06:24:18 -0800 (PST)
From: Jim Durham <durham@w2xo.pgh.pa.us>
To: freebsd-gnats-submit@FreeBSD.org
Subject: page fault while in kernel mode doing ifconfig of D-LINK pccard
X-Send-Pr-Version: www-1.0

>Number:         31554
>Category:       i386
>Synopsis:       page fault while in kernel mode doing ifconfig of D-LINK pccard
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pirzyk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 28 06:30:01 PST 2001
>Closed-Date:    Fri Nov 2 18:42:58 PST 2001
>Last-Modified:  Fri Nov  2 18:50:00 PST 2001
>Originator:     Jim Durham
>Release:        4.4-RELEASE
>Organization:
>Environment:
FreeBSD jimslaptop.int 4.4-RELEASE FreeBSD 4.4-RELEASE #3: Sun Oct 28 00:28:41 EDT 2001  root@jimslaptop.jcdurham.com:/usr/obj/usr/src/sys/JIMSLAPTOP i386
>Description:
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: no media present
(following in "dim" text)
ootOct 28 08:49:42 jimslaptop pccardd[123]: ed1 D-Link (DFE-650) inserted
 
(back to bright text)
 
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x8
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc03a38a0
stack pointer           = 0x10:0xcc25fb48
frame pointer           = 0x10:0xcc25fb54
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran1
processor eflags        = interrupt enables, resume, IOPL = 0
current process         = 322 (ifconfig)
interrupt mask          = net tty
trap number             = 12
panic: page fault
 
syncing disks.. 22 22
done
Uptime: 3m40s
Automatic reboot in 15 seconds - press a key on the console to abort
>How-To-Repeat:
Reboot and allow DLINK Card to ifconfig from dhcp
>Fix:
Remove pccards
>Release-Note:
>Audit-Trail:

From: Jim Pirzyk <Jim.Pirzyk@disney.com>
To: Jim Durham <durham@w2xo.pgh.pa.us>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: i386/31554: page fault while in kernel mode doing ifconfig of D-LINK pccard
Date: Mon, 29 Oct 2001 11:23:25 -0800

 Do you have the miibus module loaded as a kernel module or is
 it compiled into your custom kernel?  It needs to be the latter since
 the ed module has to be done that way also.
 
 - JimP
 
 
 Jim Durham wrote:
 
 > >Number:         31554
 > >Category:       i386
 > >Synopsis:       page fault while in kernel mode doing ifconfig of D-LINK pccard
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Sun Oct 28 06:30:01 PST 2001
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Jim Durham
 > >Release:        4.4-RELEASE
 > >Organization:
 > >Environment:
 > FreeBSD jimslaptop.int 4.4-RELEASE FreeBSD 4.4-RELEASE #3: Sun Oct 28 00:28:41 EDT 2001  root@jimslaptop.jcdurham.com:/usr/obj/usr/src/sys/JIMSLAPTOP i386
 > >Description:
 > ukphy0: <Generic IEEE 802.3u media interface> on miibus0
 > ukphy0: no media present
 > (following in "dim" text)
 > ootOct 28 08:49:42 jimslaptop pccardd[123]: ed1 D-Link (DFE-650) inserted
 >
 > (back to bright text)
 >
 > Fatal trap 12: page fault while in kernel mode
 > fault virtual address   = 0x8
 > fault code              = supervisor read, page not present
 > instruction pointer     = 0x8:0xc03a38a0
 > stack pointer           = 0x10:0xcc25fb48
 > frame pointer           = 0x10:0xcc25fb54
 > code segment            = base 0x0, limit 0xfffff, type 0x1b
 >                         = DPL 0, pres 1, def32 1, gran1
 > processor eflags        = interrupt enables, resume, IOPL = 0
 > current process         = 322 (ifconfig)
 > interrupt mask          = net tty
 > trap number             = 12
 > panic: page fault
 >
 > syncing disks.. 22 22
 > done
 > Uptime: 3m40s
 > Automatic reboot in 15 seconds - press a key on the console to abort
 > >How-To-Repeat:
 > Reboot and allow DLINK Card to ifconfig from dhcp
 > >Fix:
 > Remove pccards
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 >
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-bugs" in the body of the message
 
 --
 --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
     __o   Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org
  _'\<,_   Senior Systems Engineer, Walt Disney Feature Animation
 (*)/ (*)
 
 
 

From: Jim Durham <durham@jcdurham.com>
To: Jim Pirzyk <Jim.Pirzyk@disney.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: i386/31554: page fault while in kernel mode doing ifconfig of D-LINK pccard
Date: Mon, 29 Oct 2001 20:53:53 -0500

 On Monday 29 October 2001 02:23 pm, Jim Pirzyk wrote:
 > Do you have the miibus module loaded as a kernel module or is
 > it compiled into your custom kernel?  It needs to be the latter since
 > the ed module has to be done that way also.
 >
 
 No, it is a module.
 
 I have it working with a little help from a couple of folks on the 
 freebsd-mobile list. I removed the probe call on line 244 in
 if_ed_pccard.c and it now works. Here is the code I commented
 out:
 
              mii_phy_probe(dev, &sc->miibus, ed_ifmedia_upd,
                     ed_ifmedia_sts);
 
 Are you saying that compiling mii support into the kernel would
 fix the problem?
 
 Thanks,
 
 -Jim

From: Jim Pirzyk <Jim.Pirzyk@disney.com>
To: Jim Durham <durham@jcdurham.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: i386/31554: page fault while in kernel mode doing ifconfig of D-LINK pccard
Date: Tue, 30 Oct 2001 08:41:15 -0800

 Jim Durham wrote:
 > 
 > On Monday 29 October 2001 02:23 pm, Jim Pirzyk wrote:
 > > Do you have the miibus module loaded as a kernel module or is
 > > it compiled into your custom kernel?  It needs to be the latter since
 > > the ed module has to be done that way also.
 > >
 > 
 > No, it is a module.
 > 
 > I have it working with a little help from a couple of folks on the
 > freebsd-mobile list. I removed the probe call on line 244 in
 > if_ed_pccard.c and it now works. Here is the code I commented
 > out:
 > 
 >              mii_phy_probe(dev, &sc->miibus, ed_ifmedia_upd,
 >                     ed_ifmedia_sts);
 > 
 > Are you saying that compiling mii support into the kernel would
 > fix the problem?
 
 yes that is how I solved the problem on my system, but I had a
 10Mb enet card in there and I was having the kernel panic's when
 I ifconfig'ed that interface.
 
 - JimP
 
 > 
 > Thanks,
 > 
 > -Jim
 
 -- 
 --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
     __o   Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org
  _'\<,_   Senior Systems Engineer, Walt Disney Feature Animation 
 (*)/ (*)
State-Changed-From-To: open->closed 
State-Changed-By: pirzyk 
State-Changed-When: Fri Nov 2 18:42:58 PST 2001 
State-Changed-Why:  
Closed, the problem was having the xl module being loaded 
in /boot/loader.conf in addition to having it compiled into 
the kernel. 



Responsible-Changed-From-To: freebsd-bugs->pirzyk 
Responsible-Changed-By: pirzyk 
Responsible-Changed-When: Fri Nov 2 18:42:58 PST 2001 
Responsible-Changed-Why:  
Changed to me since we debugged the problem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31554 

From: Jim Pirzyk <Jim.Pirzyk@disney.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/31554: page fault while in kernel mode doing ifconfig of D-LINK pccard
Date: Fri, 02 Nov 2001 18:43:33 -0800

 The originator reports the problem was due to having the xl module
 being loaded by /boot/loader.conf and having the ed/miibus modules
 compiled into the kernel.  The final solution was to remove the
 loading of the xl module from /boot/loader.conf
 
 - JimP
 
 -- 
 --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
     __o   Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org
  _'\<,_   Senior Systems Engineer, Walt Disney Feature Animation 
 (*)/ (*)
>Unformatted:
