From darcy@dbitech.wavefire.com  Mon Sep 29 11:23:56 2003
Return-Path: <darcy@dbitech.wavefire.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 17B6216A4BF; Mon, 29 Sep 2003 11:23:56 -0700 (PDT)
Received: from dbitech.wavefire.com (dbitech.wavefire.com [64.141.15.253])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id B70554400D; Mon, 29 Sep 2003 11:23:52 -0700 (PDT)
	(envelope-from darcy@dbitech.wavefire.com)
Received: from dbitech.wavefire.com (darcy@localhost [127.0.0.1])
	by dbitech.wavefire.com (8.12.5/8.12.5) with ESMTP id h8TINeMp071234;
	Mon, 29 Sep 2003 11:23:40 -0700 (PDT)
	(envelope-from darcy@dbitech.wavefire.com)
Received: (from darcy@localhost)
	by dbitech.wavefire.com (8.12.5/8.12.5/Submit) id h8TINbea071231;
	Mon, 29 Sep 2003 11:23:37 -0700 (PDT)
Message-Id: <200309291823.h8TINbea071231@dbitech.wavefire.com>
Date: Mon, 29 Sep 2003 11:23:37 -0700 (PDT)
From: Darcy Buskermolen <darcy@wavefire.com>
Reply-To: Darcy Buskermolen <darc@wavefire.comy>
To: FreeBSD-gnats-submit@freebsd.org
Cc: freebsd-stable@freebsd.org
Subject: 4.9-PRERELEASE panic during ata probe
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57369
>Category:       kern
>Synopsis:       4.9-PRERELEASE panic during ata probe
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 29 11:30:06 PDT 2003
>Closed-Date:    Mon Jan 12 11:28:20 PST 2004
>Last-Modified:  Mon Jan 12 11:28:20 PST 2004
>Originator:     Darcy Buskermolen
>Release:        FreeBSD 4.9-PRERELEASE
>Organization:
Wavefire TEchnologies Corp	
>Environment:
System: FreeBSD dbitech 4.9-PRERELEASE FreeBSD 4.9-PERELEASE #1: Thu Sep 25 18:18:53 PDT 2003     root@dbitech:/usr/obj/usr/src/sys/CUSTOM

>Description:
 	Unable to boot a 4.9-PR kernel on  a varity of ASUS PII/PIII boards including the MEW, and P3B-F with older ATA33 Quantum Hard drives, these same systems boot 4.6 without a problem. Attached is a consol panic.


FreeBSD 4.9-PERELEASE #1: Thu Sep 25 18:18:53 PDT 2003
     root@dbitech:/usr/obj/usr/src/sys/CUSTOM


Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 400911120 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x665  Stepping = 5
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 133152768 (130032K bytes)
avail memory = 126386176 (123424K bytes)
Preloaded elf kernel "kernel" at 0xc0324000.
Pentium Pro MTRR support enabled
Using $PIR table, 10 entries at 0xc00f0e70
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82810-DC100 (i810-DC100 GMCH) Host To Hub bridge> on motherboard
pci0: <PCI bus> on pcib0
pci0: <Intel 82810-DC100 (i810-DC100 GMCH) SVGA controller> at 1.0 irq 5
pcib1: <Intel 82801AA (ICH) Hub to PCI bridge> at device 30.0 on pci0
pci1: <PCI bus> on pcib1
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xd800-0xd87f mem 0xe2800000-0xe280007f irq 5 at device 8.0 on pci1
xl0: Ethernet address: 00:10:4b:63:f7:1e
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl1: <3Com 3c905B-TX Fast Etherlink XL> port 0xd400-0xd47f mem 0xe2000000-0xe200007f irq 11 at device 9.0 on pci1
xl1: Ethernet address: 00:50:da:6e:8b:cd
miibus1: <MII bus> on xl1
xlphy1: <3Com internal media interface> on miibus1
xlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl2: <3Com 3c905B-TX Fast Etherlink XL> port 0xd000-0xd07f mem 0xe1800000-0xe180007f irq 12 at device 10.0 on pci1
xl2: Ethernet address: 00:50:da:6e:99:3e
miibus2: <MII bus> on xl2
xlphy2: <3Com internal media interface> on miibus2
xlphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl3: <3Com 3c905B-TX Fast Etherlink XL> port 0xb800-0xb87f mem 0xe1000000-0xe100007f irq 15 at device 11.0 on pci1
xl3: Ethernet address: 00:10:4b:9a:cf:32
miibus3: <MII bus> on xl3
xlphy3: <3Com internal media interface> on miibus3
xlphy3:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl4: <3Com 3c905B-TX Fast Etherlink XL> port 0xb400-0xb47f mem 0xe0800000-0xe080007f irq 5 at device 12.0 on pci1
xl4: Ethernet address: 00:10:4b:97:00:f3
miibus4: <MII bus> on xl4
xlphy4: <3Com internal media interface> on miibus4
xlphy4:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <Intel 82801AA (ICH) PCI to LPC bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH ATA66 controller> port 0xa800-0xa80f at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x8086, dev=0x2413) at 31.3 irq 11
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 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=0x100>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
sio1: configured irq 3 not in bitmap of probed irqs 0
ed0 at port 0x300-0x31f iomem 0xd8000 irq 10 on isa0
ed0: address 00:c0:a8:35:e3:73, type NE2000 (16 bit) 
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 1000000 packets/entry by default
DUMMYNET initialized (011031)
IPsec: Initialized Security Association Processing.
ad0: READ command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. done
ad0: 8063MB <QUANTUM FIREBALL CR8.4A> [16383/16/63] at ata0-master UDMA33
ad0: READ command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. done
ad0: READ command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. done
ad0: READ command timeout tag=0 serv=0 - resetting
ad0: trying fallback to PIO mode
ata0: resetting devices .. done


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x7800bc
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc017a26c
stack pointer           = 0x10:0xc02920e4
frame pointer           = 0x10:0xc02920e4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = Idle
interrupt mask          = bio 
trap number             = 12
panic: page fault

syncing disks... 
done
Uptime: 42s
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot,
--> or switch off the system now.
Rebooting...


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Oct 11 01:17:21 PDT 2003 
Responsible-Changed-Why:  
Assign to ATA maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57369 

From: Darcy Buskermolen <darcy@wavefire.com>
To: freebsd-gnats-submit@FreeBSD.org, darcy@wavefire.com
Cc:  
Subject: Re: kern/57369: 4.9-PRERELEASE panic during ata probe
Date: Tue, 14 Oct 2003 09:51:39 -0700

 sendpr munged the email address, the correct email address is=20
 darcy@wavefire.com
 

From: Darcy Buskermolen <darcy@wavefire.com>
To: freebsd-gnats-submit@FreeBSD.org, darcy@wavefire.com
Cc:  
Subject: Re: kern/57369: 4.9-PRERELEASE panic during ata probe
Date: Wed, 15 Oct 2003 09:17:04 -0700

 I rebuilt the kernel with ddb support and obtained the following:
 
 db> trace
 vwakeup(c1f33200) at vwakeup+0x14
 biodone(c1f33200,c1f404b8,c1f33200,c01325a8,c1f8cc80) at biodone+0x8f
 ad_interrupt(c1f8cc80,0,c029eef8,c024cbc2,c1f3d200) at ad_interrupt+0x3e7
 ata_intr(c1f3d200,0,c0240010,400010,10) at ata_intr+0xd8
 Xresume14() at Xresume14+0x2b
 --- interrupt, eip =3D 0xc025183a, esp =3D 0xc029eef0, ebp =3D 0xc029eef8=
  ---
 cpu_idle(e,665,2,183f9ff,0) at cpu_idle+0xe
 idle_loop() at idle_loop+0x1d
 db>=20
 
 Also, if I set hw.ata.ata_dma=3D0 the box boots fines (all though in much=
 ly=20
 degraded in performance)
 
 --=20
 Darcy Buskermolen
 Wavefire Technologies Corp.
 ph: 250.717.0200
 fx:  250.763.1759
 http://www.wavefire.com
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Jan 12 11:25:43 PST 2004 
State-Changed-Why:  
Looks very strange. Please try -current and get back to me if that fails.. 

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