From geniusj@bluenugget.net  Thu Dec  6 20:45:52 2001
Return-Path: <geniusj@bluenugget.net>
Received: from ods.org (my.skin-flute.com [64.221.79.178])
	by hub.freebsd.org (Postfix) with ESMTP id 1718A37B417
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Dec 2001 20:45:51 -0800 (PST)
Received: by ods.org (CommuniGate Pro PIPE 3.5b9)
  with PIPE id 310053; Thu, 06 Dec 2001 23:53:00 -0500
Message-Id: <auto-000000310053@ods.org>
Date: Thu, 06 Dec 2001 23:53:00 -0500
From: Jason DiCioccio <geniusj@bluenugget.net>
Reply-To: Jason DiCioccio <geniusj+categories.replies@bluenugget.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: if_xl/miibus causes panic when loaded from boot loader
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32570
>Category:       kern
>Synopsis:       if_xl/miibus causes panic when loaded from boot loader
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pirzyk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 06 20:50:01 PST 2001
>Closed-Date:    Tue Dec 11 09:44:47 PST 2001
>Last-Modified:  Tue Dec 11 09:46:20 PST 2001
>Originator:     jd
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD ods.org 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Nov 6 12:20:16 EST 2001 geniusj@ods.org:/usr/src/sys/compile/ODS i386

(Note: from RELENG4_4 at around ~Nov 6th)

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.4-RELEASE #0: Tue Nov  6 12:20:16 EST 2001
    geniusj@ods.org:/usr/src/sys/compile/ODS
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 756745369 Hz
CPU: AMD Athlon(tm) Processor (756.75-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x642  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
  AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!>
real memory  = 268353536 (262064K bytes)
avail memory = 257347584 (251316K bytes)
Preloaded elf kernel "kernel" at 0xc03d4000.
Preloaded elf module "vinum.ko" at 0xc03d409c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 9 entries at 0xc00f16c0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib2: <PCI to PCI bridge (vendor=1106 device=8305)> at device 1.0 on pci0
pci1: <PCI bus> on pcib2
pci1: <NVidia Riva TNT graphics accelerator> at 0.0 irq 11
isab0: <VIA 82C686 PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0xd800-0xd80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
dc0: <82c169 PNIC 10/100BaseTX> port 0xa400-0xa4ff mem 0xe0800000-0xe08000ff irq 12 at device 9.0 on pci0
dc0: Ethernet address: 00:a0:cc:52:53:96
miibus0: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <unknown card> (vendor=0x10b7, dev=0x9055) at 11.0 irq 10
atapci1: <Promise ATA100 controller> port 0x8400-0x843f,0x8800-0x8803,0x9000-0x9007,0x9400-0x9403,0x9800-0x9807 mem 0xdf800000-0xdf81ffff irq 10 at device 17.0 on pci0
ata2: at 0x9800 on atapci1
ata3: at 0x9000 on atapci1
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
orm0: <Option ROMs> at iomem 0xc0000-0xc87ff,0xcc000-0xcdfff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
IP Filter: v3.4.20 initialized.  Default = pass all, Logging = disabled
ad0: 29314MB <IBM-DTLA-307030> [59560/16/63] at ata0-master UDMA66
ad1: 29314MB <IBM-DTLA-307030> [59560/16/63] at ata0-slave UDMA66
ata1-master: DMA limited to UDMA33, non-ATA66 compliant cable
ad2: 19531MB <Maxtor 92048U8> [39683/16/63] at ata1-master UDMA33
ad4: 58623MB <Maxtor 96147H8> [119108/16/63] at ata2-master UDMA100
ad6: 58644MB <Maxtor 5T060H6> [119150/16/63] at ata3-master UDMA100
Mounting root from ufs:/dev/ad0s1a

>Description:
	When loading if_xl and miibus.ko from boot loader (via loader.conf),
typing ifconfig results in a kernel panic.  Panic reason being "page fault -
error in supervisor read" .. I wish I had a dump, however apparently /var
was not to capacity..

>How-To-Repeat:
	Load if_xl and miibus from boot loader and type ifconfig after booting.
Or let rc.network go through if you have any ifconfig_xl0* lines in rc.conf.

>Fix:

I wish I knew ;)
>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@starjuice.net>
To: Jason DiCioccio <geniusj+categories.replies@bluenugget.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/32570: if_xl/miibus causes panic when loaded from boot loader 
Date: Fri, 07 Dec 2001 13:09:52 +0200

 On Thu, 06 Dec 2001 23:53:00 EST, Jason DiCioccio wrote:
 
 > >Description:
 > 	When loading if_xl and miibus.ko from boot loader (via loader.conf),
 > typing ifconfig results in a kernel panic.  Panic reason being "page fault -
 > error in supervisor read" .. I wish I had a dump, however apparently /var
 > was not to capacity..
 
 So let's see your loader.conf. :-)
 
 Ciao,
 Sheldon.
State-Changed-From-To: open->closed 
State-Changed-By: pirzyk 
State-Changed-When: Tue Dec 11 09:44:47 PST 2001 
State-Changed-Why:  
The problem was due to having the miibus module compiled into 
the kernel as well as the if_xl module loading it at boot time. 
Removed the miibus module from the compiled kernel and the system 
boots fine. 



Responsible-Changed-From-To: freebsd-bugs->pirzyk 
Responsible-Changed-By: pirzyk 
Responsible-Changed-When: Tue Dec 11 09:44:47 PST 2001 
Responsible-Changed-Why:  
I have personal experience with this problem :) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32570 
>Unformatted:
