Subject: port-amd64/34323: amd64 INSTALL kernel crashes at i2o device(s) probe in the boot sequence
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <karino@da.jp.nec.com>
List: netbsd-bugs
Date: 08/29/2006 07:25:00
>Number:         34323
>Category:       port-amd64
>Synopsis:       amd64 INSTALL kernel crashes at i2o device(s) probe in the boot sequence
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 29 07:25:00 +0000 2006
>Originator:     Shuichi Karino
>Release:        3.1_RC1
>Organization:
NEC Corporation
>Environment:
"uname" cannot be executed because of kernel panic at boot time.
A crash log is attached below section.
>Description:
- 3.1_RC1 kernel of NetBSD/amd64 crashes in boot sequence with Adaptec AIC7902 on borad Ultra320 SCSI controller + 0ch RAID card (2010S).
- Without the RAID card, the kernel boots normally.
- NetBSD/i386 kernels boot normally with this card.

The crash log is as follows:
----------------------------------------------------------------
>> NetBSD/amd64 BIOS Boot, Revision 3.2
>> (builds@b1.netbsd.org, Sun Aug 20 22:12:26 UTC 2006)
>> Memory: 617/3144128 k
> boot
booting fd0a:netbsd
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.1_RC1 (INSTALL) #0: Sun Aug 20 22:53:43 UTC 2006
	builds@b1.netbsd.org:/home/builds/ab/netbsd-3-1-RC1/amd64/200608202102Z-obj/home/builds/ab/netbsd-3-1-RC1/src/sys/arch/amd64/compile/INSTALL
total memory = 3071 MB
avail memory = 2931 MB
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (INTEL    Lindenhurst )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0:                   Intel(R) Xeon(TM) CPU 3.80GHz, 3790.70 MHz
cpu0: features: bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: bfebfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,B21,MMXX,MMX>
cpu0: features: bfebfbff<FXSR,SSE,SSE2,B27,B28,LONG,3DNOW>
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: calibrating local timer
cpu0: apic clock running at 199 MHz
cpu0: 64 page colors
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 is type PCI   
mpbios: bus 4 is type PCI   
mpbios: bus 5 is type PCI   
mpbios: bus 6 is type PCI   
mpbios: bus 7 is type PCI   
mpbios: bus 8 is type PCI   
mpbios: bus 9 is type PCI   
mpbios: bus 10 is type ISA   
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x3590 (rev. 0x0c)
vendor 0x8086 product 0x3591 (undefined subclass 0x00, revision 0x0c) at pci0 dev 0 function 1 not configured
vendor 0x8086 product 0x3594 (miscellaneous system, revision 0x0c) at pci0 dev 1 function 0 not configured
ppb0 at pci0 dev 2 function 0: vendor 0x8086 product 0x3595 (rev. 0x0c)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci1 dev 0 function 0: vendor 0x8086 product 0x0329 (rev. 0x09)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
wm0 at pci2 dev 1 function 0: Intel i82546GB 1000BASE-T Ethernet, rev. 3
wm0: interrupting at ioapic0 pin 16 (irq 10)
wm0: Ethernet address 00:16:17:00:43:f2
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci2 dev 1 function 1: Intel i82546GB 1000BASE-T Ethernet, rev. 3
wm1: interrupting at ioapic0 pin 17 (irq 10)
wm1: Ethernet address 00:16:17:00:43:f3
makphy1 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
iop0 at pci2 dev 2 function 0: I2O adapteruvm_fault(0xffffffff80a6e320, 0x0, 0, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip ffffffff802c8f0d cs 8 rflags 10202 cr2  30 cpl e rsp ffffffff80a7e2e0

The operating system has halted.
Please press any key to reboot.
----------------------------------------------------------------

NetBSD/i386 3.1_RC1 boot log is as follows:
----------------------------------------------------------------
>> NetBSD/i386 BIOS Boot, Revision 3.2
>> (builds@b4.netbsd.org, Mon Aug 21 01:45:28 UTC 2006)
>> Memory: 617/3144128 k
> boot
booting fd0a:netbsd
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 3.1_RC1 (INSTALL) #0: Mon Aug 21 02:25:01 UTC 2006
	builds@b4.netbsd.org:/home/builds/ab/netbsd-3-1-RC1/i386/200608202102Z-obj/home/builds/ab/netbsd-3-1-RC1/src/sys/arch/i386/compile/INSTALL
total memory = 3071 MB
avail memory = 2995 MB
BIOS32 rev. 0 found at 0xfd3c0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel (686-class), 3790.72 MHz, id 0xf4a
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 659d<SSE3,MONITOR,DS-CPL,EST,TM2,CID,xTPR>
cpu0: features3 20000000<EM64T>
cpu0: "Intel(R) Xeon(TM) CPU 3.80GHz"
cpu0: I-cache 12K uOp cache 8-way
cpu0: L2 cache 2 MB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: using thermal monitor 1
cpu0: 64 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x3590 (rev. 0x0c)
vendor 0x8086 product 0x3591 (undefined subclass 0x00, revision 0x0c) at pci0 dev 0 function 1 not configured
vendor 0x8086 product 0x3594 (miscellaneous system, revision 0x0c) at pci0 dev 1 function 0 not configured
ppb0 at pci0 dev 2 function 0: vendor 0x8086 product 0x3595 (rev. 0x0c)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci1 dev 0 function 0: vendor 0x8086 product 0x0329 (rev. 0x09)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
wm0 at pci2 dev 1 function 0: Intel i82546GB 1000BASE-T Ethernet, rev. 3
wm0: interrupting at irq 10
wm0: Ethernet address 00:16:17:00:43:f2
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci2 dev 1 function 1: Intel i82546GB 1000BASE-T Ethernet, rev. 3
wm1: interrupting at irq 10
wm1: Ethernet address 00:16:17:00:43:f3
makphy1 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 5
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
iop0 at pci2 dev 2 function 0: I2O adapter <ADAPTEC 2010S>
iop0: interrupting at irq 10
ppb2 at pci1 dev 0 function 2: vendor 0x8086 product 0x032a (rev. 0x09)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
wm2 at pci3 dev 9 function 0: Intel i82546EB 1000BASE-T Ethernet, rev. 1
wm2: interrupting at irq 10
wm2: Ethernet address 00:0e:0c:b1:c1:74
makphy2 at wm2 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm3 at pci3 dev 9 function 1: Intel i82546EB 1000BASE-T Ethernet, rev. 1
wm3: interrupting at irq 10
wm3: Ethernet address 00:0e:0c:b1:c1:75
makphy3 at wm3 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb3 at pci0 dev 4 function 0: vendor 0x8086 product 0x3597 (rev. 0x0c)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci0 dev 5 function 0: vendor 0x8086 product 0x3598 (rev. 0x0c)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
ppb5 at pci0 dev 6 function 0: vendor 0x8086 product 0x3599 (rev. 0x0c)
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
ppb6 at pci0 dev 7 function 0: vendor 0x8086 product 0x359a (rev. 0x0c)
pci7 at ppb6 bus 7
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x24d2 (rev. 0x02)
uhci0: interrupting at irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x24d4 (rev. 0x02)
uhci1: interrupting at irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x24d7 (rev. 0x02)
uhci2: interrupting at irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x24de (rev. 0x02)
uhci3: interrupting at irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x24dd (rev. 0x02)
ehci0: interrupting at irq 10
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 8 ports with 8 removable, self powered
ppb7 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xc2)
pci8 at ppb7 bus 8
pci8: i/o space, memory space enabled
vga1 at pci8 dev 4 function 0: vendor 0x1002 product 0x5159 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 31 function 0
pcib0: vendor 0x8086 product 0x24d0 (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
vendor 0x8086 product 0x24d3 (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
wskbd0: connecting to wsdisplay0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
iop0: configuring...
device (class 0xffffffff) at iop0 tid 0 not configured
ld0 at iop0 tid 526: <ADAPTEC R, RAID-5, NE04D> direct access, fixed
ld0: 16383 PB, 2147483647 cyl, 255 head, 63 sec, 512 bytes/sect x 18446744071758331904 sectors
iopsp0 at iop0 tid 8: SCSI port <ADAPTEC, AIC-7902, 00000001>
scsibus0 at iopsp0: 16 targets, 8 luns per target
iopsp1 at iop0 tid 9: SCSI port <ADAPTEC, AIC-7902, 00000001>
scsibus1 at iopsp1: 16 targets, 8 luns per target
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
md0: internal 5000 KB image area
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITADVD-ROM SR-8178, , PZ16> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
scsibus1 target 9 lun 0: <SDR, GEM318, 0> processor fixed not configured
boot device: fd0
root on md0a dumps on md0b
root file system type: ffs
warning: no /dev/console
init: Creating mfs /dev (413 blocks, 1024 inodes)
erase ^?, werase ^W, kill ^U, intr ^C

----------------------------------------------------------------
>How-To-Repeat:
1. boot 3.1_RC1 amd64 INSTALL kernel on adaptec aic7902 + 2010S Raid card machine
2. then the kernel crashes at probe of iop devices in boot sequence


>Fix: