NetBSD Problem Report #49102

From www@NetBSD.org  Tue Aug 12 13:04:41 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 76B88ACDFD
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 12 Aug 2014 13:04:41 +0000 (UTC)
Message-Id: <20140812130438.4992BACDFC@mollari.NetBSD.org>
Date: Tue, 12 Aug 2014 13:04:38 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: wm detach panic on shutdown or reboot
X-Send-Pr-Version: www-1.0

>Number:         49102
>Category:       kern
>Synopsis:       wm detach panic on shutdown or reboot
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    msaitoh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 12 13:05:00 +0000 2014
>Closed-Date:    Mon Sep 01 05:41:51 +0000 2014
>Last-Modified:  Thu Apr 30 20:05:01 +0000 2015
>Originator:     John D. Baker
>Release:        NetBSD/i386-6.1_STABLE, NetBSD/i386-7.99.1
>Organization:
>Environment:
NetBSD brenowin.reltuk.net 6.1_STABLE NetBSD 6.1_STABLE (GENERIC) #2: Mon Jul 29 16:45:39 CDT 2013  sysop@tesla.clamp.net:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC i386

NetBSD brenowin.reltuk.net 7.99.1 NetBSD 7.99.1 (RELTUK) #16: Mon Aug 11 21:44:48 CDT 2014  sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/RELTUK i386

>Description:
Dell PowerEdge 1650 (IIRC) rackmount system panics on shutdown/reboot.
DDB backtrace indicates problem related to detaching onboard "wm"
ethernet devices.

The machine has a quirk where booting hangs if both ACPI and SMP are
enabled.  As long as either one or both are disabled, it will finish
booting.

Relevant "dmesg" snippets and DDB output (from 6.1_STABLE as that's
all I was able to capture and only recently regained access to):

I just noticed that the dmesg snippets complain about not being able to
map registers on "wm2" and "wm3".  Perhaps that's the source of the
panic?  But then why cant it map them?

(I will have console access to the machine again next week and I will
try to capture similar logs from -current, 7.99.1.  The log-replay
messages in 'dmesg' indicate that it's still panicking on reboot.)

ACPI disabled:
> boot /netbsd-GENERIC -2s
11259000+564156+464544 [600192+589644]=0xcdc158
Loading /stand/i386/6.1/modules/pciverbose/pciverbose.kmod  
Loading /stand/i386/6.1/modules/usbverbose/usbverbose.kmod  
Loading /stand/i386/6.1/modules/miiverbose/miiverbose.kmod  
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012                             
    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 6.1_STABLE (GENERIC) #2: Mon Jul 29 16:45:39 CDT 2013
	sysop@tesla.clamp.net:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC
total memory = 2047 MB
avail memory = 2000 MB
mainbus0 (root)       
mainbus0: Intel MP Specification (Version 1.4) (DELL     PE 011B     )
cpu0 at mainbus0 apid 1: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
cpu1 at mainbus0 apid 0: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
ioapic0 at mainbus0 apid 2
ioapic1 at mainbus0 apid 3
ipmi0 at mainbus0         
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
pci1 at pchb0 bus 1                                                        
wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm0: interrupting at ioapic1 pin 1                                          
wm0: Ethernet address 00:0f:1f:9d:41:38
makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm1: interrupting at ioapic1 pin 0                                          
wm1: Ethernet address 00:0f:1f:9d:41:39
makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
pci2 at ppb0 bus 2                                             
aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
aac0: interrupting at ioapic1 pin 2          
aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
ld0 at aac0 unit 0: RAID 5                                               
ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01) 
pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
pci3 at pchb2 bus 1                                                        
wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm2: unable to map device registers                                         
wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm3: unable to map device registers                                         
[...]
# reboot
reboot: rebooted by root
syncing disks... done
cd0: detached        
sysbeep0: detached
midi0: detached   
pci4: detached 
pci2: detached
atapibus0: detached
npx0: detached     
pcppi0: detached
ppb1: detached  
uvm_fault(0xc3867ca8, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c0555b6c cs 8 eflags 10282 cr2 300 ilevel 6
kernel: supervisor trap page fault, code=0                        
Stopped in pid 7.1 (reboot) at  netbsd:callout_stop+0xc:        movl    10(%ebx)
,%edi                                                                          
db{1}> bt
callout_stop(2f0,c078fa68,0,e361eba4,c07911c0,c0b94b9a,c3640000,c3640028,c380998
0,e361ebb4) at netbsd:callout_stop+0xc                                         
wm_stop(c3640028,1,c0bc7ce8,0,c0bc2580,c3809980,c0c2e280,e361ebe8,c077f07f,c3809
980) at netbsd:wm_stop+0x1f                                                    
wm_detach(c3809980,4,e361ebd0,c07805e1,c3809800,e361ebe8,c3809980,1,c3809980,1) a
t netbsd:wm_detach+0x38
config_detach(c3809980,4,0,0,e361ec1c,c05a25dc,0,0,0,0) at netbsd:config_detach+
0x71                                                                           
config_detach_all(0,0,0,0,e361ed00,e361eccc,c0559688,0,0,0) at netbsd:config_det
ach_all+0x7a                                                                   
cpu_reboot(0,0,0,0,0,0,c30b7bc8,c312af00,0,c38d3d20) at netbsd:cpu_reboot+0x166
sys_reboot(c38d3d20,e361ed00,e361ed28,d0,c3868e10,c38d3d20,e361ed00,c3862a38,2,b
bad9ba7) at netbsd:sys_reboot+0x94                                             
syscall(e361ed48,b3,ab,bfbf001f,806001f,0,2,bfbfee08,0,ffffffff) at netbsd:sysca
ll+0xaa                                                                        
db{1}> 


SMP disabled:
> boot /netbsd-GENERIC -1s
11259000+564156+464544 [600192+589644]=0xcdc158
Loading /stand/i386/6.1/modules/pciverbose/pciverbose.kmod  
Loading /stand/i386/6.1/modules/usbverbose/usbverbose.kmod  
Loading /stand/i386/6.1/modules/miiverbose/miiverbose.kmod  
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012                             
    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 6.1_STABLE (GENERIC) #2: Mon Jul 29 16:45:39 CDT 2013
	sysop@tesla.clamp.net:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC
total memory = 2047 MB
avail memory = 2000 MB
mainbus0 (root)       
cpu0 at mainbus0 apid 0: multiprocessor boot disabled
cpu1 at mainbus0 apid 1: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
ioapic0 at mainbus0 apid 2
ioapic1 at mainbus0 apid 3
acpi0 at mainbus0: Intel ACPICA 20110623
npx1 at acpi0 (FPU, PNP0C04): io 0xf0-0xff irq 13
pcppi1 at acpi0 (SPK, PNP0800): io 0x61          
midi0 at pcppi1: PC speaker            
sysbeep0 at pcppi1         
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x5f irq 0
FDC (PNP0700) at acpi0 not configured               
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
COMA (PNP0501) at acpi0 not configured                       
MBIO (PNP0C01) at acpi0 not configured
MEM (PNP0C01) at acpi0 not configured 
apm0 at acpi0: Power Management spec V1.2
attimer1: attached to pcppi1             
pckbd0 at pckbc1 (kbd slot) 
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1          
ipmi0 at mainbus0     
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
pci1 at pchb0 bus 1                                                        
wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm0: interrupting at ioapic1 pin 1                                          
wm0: Ethernet address 00:0f:1f:9d:41:38
makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm1: interrupting at ioapic1 pin 0                                          
wm1: Ethernet address 00:0f:1f:9d:41:39
makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
pci2 at ppb0 bus 2                                             
aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
aac0: interrupting at ioapic1 pin 2          
aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
ld0 at aac0 unit 0: RAID 5                                               
ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01) 
pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
pci3 at pchb2 bus 1                                                        
wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm2: unable to map device registers                                         
wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm3: unable to map device registers                                         
[...]
# reboot
reboot: rebooted by root
syncing disks... done
cd0: detached        
pci4: detached
pci2: detached
atapibus0: detached
ppb1: detached     
uvm_fault(0xc38a8ca8, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c0555b6c cs 8 eflags 10282 cr2 300 ilevel 6
kernel: supervisor trap page fault, code=0                        
Stopped in pid 7.1 (reboot) at  netbsd:callout_stop+0xc:        movl    10(%ebx)
,%edi                                                                          
db{0}> bt
callout_stop(2f0,c078fa68,0,e35feba4,c07911c0,c0b94b9a,c3658000,c3658028,c38206c
0,e35febb4) at netbsd:callout_stop+0xc                                         
wm_stop(c3658028,1,c0bc7ce8,0,c0bc2580,c38206c0,c0c2e280,e35febe8,c077f07f,c3820
6c0) at netbsd:wm_stop+0x1f                                                    
wm_detach(c38206c0,4,e35febd0,c07805e1,c3820540,e35febe8,c38206c0,1,c38206c0,1) a
t netbsd:wm_detach+0x38
config_detach(c38206c0,4,0,0,e35fec1c,c05a25dc,0,0,0,0) at netbsd:config_detach+
0x71                                                                           
config_detach_all(0,0,0,0,e35fed00,e35feccc,c0559688,0,0,0) at netbsd:config_det
ach_all+0x7a                                                                   
cpu_reboot(0,0,0,0,0,0,c30b7c48,c312af00,0,c38ce800) at netbsd:cpu_reboot+0x166
sys_reboot(c38ce800,e35fed00,e35fed28,d0,c38a8ca8,bbb38000,e35fed00,c38a3a38,2,b
bad9ba7) at netbsd:sys_reboot+0x94                                             
syscall(e35fed48,b3,ab,bfbf001f,806001f,0,2,bfbfee08,0,ffffffff) at netbsd:sysca
ll+0xaa                                                                        
db{0}> 


Normal, single-user boot:
> boot /netbsd-GENERIC -s
11259000+564156+464544 [600192+589644]=0xcdc158
Loading /stand/i386/6.1/modules/pciverbose/pciverbose.kmod  
Loading /stand/i386/6.1/modules/usbverbose/usbverbose.kmod  
Loading /stand/i386/6.1/modules/miiverbose/miiverbose.kmod  
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012                             
    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 6.1_STABLE (GENERIC) #2: Mon Jul 29 16:45:39 CDT 2013
	sysop@tesla.clamp.net:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC
total memory = 2047 MB
avail memory = 2000 MB
mainbus0 (root)       
cpu0 at mainbus0 apid 0
[hung]


Custom kernel w/o ACPI:
> boot -s
3793164+90108+278944 [272784+264588]=0x47db34
Loading /stand/i386/6.1/modules/pciverbose/pciverbose.kmod  
Loading /stand/i386/6.1/modules/usbverbose/usbverbose.kmod  
Loading /stand/i386/6.1/modules/miiverbose/miiverbose.kmod  
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012                             
    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 6.1_STABLE (RELTUK) #2: Mon Jul 29 16:53:32 CDT 2013
	sysop@tesla.clamp.net:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/RELTUK
total memory = 2047 MB
avail memory = 2008 MB
mainbus0 (root)       
mainbus0: Intel MP Specification (Version 1.4) (DELL     PE 011B     )
cpu0 at mainbus0 apid 1: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
cpu1 at mainbus0 apid 0: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
ioapic0 at mainbus0 apid 2
ioapic1 at mainbus0 apid 3
ipmi0 at mainbus0         
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
pci1 at pchb0 bus 1                                                        
wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm0: interrupting at ioapic1 pin 1                                          
wm0: Ethernet address 00:0f:1f:9d:41:38
makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm1: interrupting at ioapic1 pin 0                                          
wm1: Ethernet address 00:0f:1f:9d:41:39
makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
pci2 at ppb0 bus 2                                             
aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
aac0: interrupting at ioapic1 pin 2          
aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
ld0 at aac0 unit 0: RAID 5                                               
ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01) 
pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
pci3 at pchb2 bus 1                                                        
wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm2: unable to map device registers                                         
wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm3: unable to map device registers                                         
[...]
# reboot
reboot: rebooted by root
syncing disks... done
cd0: detached        
sysbeep0: detached
pci4: detached    
pci2: detached
atapibus0: detached
npx0: detached     
pcppi0: detached
ppb1: detached  
uvm_fault(0xc2fc1ca8, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c024d9cc cs 8 eflags 10282 cr2 300 ilevel 6
kernel: supervisor trap page fault, code=0                        
Stopped in pid 7.1 (reboot) at  netbsd:callout_stop+0xc:        movl    10(%ebx)
,%edi                                                                          
db{1}> bt
callout_stop(2f0,c03514f8,0,e2bdeba4,c0352c50,c04924d2,c2d82000,c2d82028,c2f4298
0,e2bdebb4) at netbsd:callout_stop+0xc                                         
wm_stop(c2d82028,1,c04a3828,0,c04a2c80,c2f42980,c04a81a0,e2bdebe8,c034174f,c2f42
980) at netbsd:wm_stop+0x1f                                                    
wm_detach(c2f42980,4,e2bdebd0,c0342cb1,c2f42800,e2bdebe8,c2f42980,1,c2f42980,1) a
t netbsd:wm_detach+0x38
config_detach(c2f42980,4,0,0,e2bdec1c,c028e587,0,0,0,0) at netbsd:config_detach+
0x71                                                                           
config_detach_all(0,0,0,0,e2bded00,e2bdeccc,c02514e8,0,0,0) at netbsd:config_det
ach_all+0x7a                                                                   
cpu_reboot(0,0,0,0,0,0,c2879bc8,c2963f00,0,c2ff6a80) at netbsd:cpu_reboot+0x141
sys_reboot(c2ff6a80,e2bded00,e2bded28,d0,c2fc2e88,c2fc2e10,e2bded00,c2fbca38,2,b
bad9ba7) at netbsd:sys_reboot+0x94                                             
syscall(e2bded48,b3,ab,bfbf001f,806001f,0,2,bfbfee08,0,ffffffff) at netbsd:sysca
ll+0xaa                                                                        
db{1}> 


GENERIC, SMP disabled, "makphy" disabled to force "ukphy":
> boot netbsd-GENERIC -1cs
11259000+564156+464544 [600192+589644]=0xcdc158
Loading /stand/i386/6.1/modules/pciverbose/pciverbose.kmod  
Loading /stand/i386/6.1/modules/usbverbose/usbverbose.kmod  
Loading /stand/i386/6.1/modules/miiverbose/miiverbose.kmod  
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012                             
    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 6.1_STABLE (GENERIC) #2: Mon Jul 29 16:45:39 CDT 2013
	sysop@tesla.clamp.net:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC
total memory = 2047 MB
avail memory = 2000 MB
userconf: configure system autoconfiguration:
uc> disable makphy                           
[ 49] makphy* disabled
uc> exit              
Continuing...
mainbus0 (root)
cpu0 at mainbus0 apid 0: multiprocessor boot disabled
cpu1 at mainbus0 apid 1: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
ioapic0 at mainbus0 apid 2
ioapic1 at mainbus0 apid 3
acpi0 at mainbus0: Intel ACPICA 20110623
npx1 at acpi0 (FPU, PNP0C04): io 0xf0-0xff irq 13
pcppi1 at acpi0 (SPK, PNP0800): io 0x61          
midi0 at pcppi1: PC speaker            
sysbeep0 at pcppi1         
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x5f irq 0
FDC (PNP0700) at acpi0 not configured               
pckbc1 at acpi0 (KBD, PNP0303) (kbd port): io 0x60,0x64 irq 1
COMA (PNP0501) at acpi0 not configured                       
MBIO (PNP0C01) at acpi0 not configured
MEM (PNP0C01) at acpi0 not configured 
apm0 at acpi0: Power Management spec V1.2
attimer1: attached to pcppi1             
pckbd0 at pckbc1 (kbd slot) 
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1          
ipmi0 at mainbus0     
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
pci1 at pchb0 bus 1                                                        
wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm0: interrupting at ioapic1 pin 1                                          
wm0: Ethernet address 00:0f:1f:9d:41:38
ukphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY (OUI 0x000ac2, model 0x0003), rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm1: interrupting at ioapic1 pin 0                                          
wm1: Ethernet address 00:0f:1f:9d:41:39
ukphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY (OUI 0x000ac2, model 0x0003), rev. 0
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
pci2 at ppb0 bus 2                                             
aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
aac0: interrupting at ioapic1 pin 2          
aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
ld0 at aac0 unit 0: RAID 5                                               
ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01) 
pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
pci3 at pchb2 bus 1                                                        
wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm2: unable to map device registers                                         
wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm3: unable to map device registers                                         
[...]
# reboot
reboot: rebooted by root
syncing disks... done
cd0: detached        
pci4: detached
pci2: detached
ukphy1: detached
ukphy0: detached
atapibus0: detached
ppb1: detached     
uvm_fault(0xc38a8ca8, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c0555b6c cs 8 eflags 10282 cr2 300 ilevel 6
kernel: supervisor trap page fault, code=0                        
Stopped in pid 15.1 (reboot) at netbsd:callout_stop+0xc:        movl    10(%ebx)
,%edi                                                                          
db{0}> bt
callout_stop(2f0,c078fa68,0,e35feba4,c07911c0,c0b94b9a,c3658000,c3658028,c38206c
0,e35febb4) at netbsd:callout_stop+0xc                                         
wm_stop(c3658028,1,c0bc7ce8,0,c0bc2580,c38206c0,c0c2e280,e35febe8,c077f07f,c3820
6c0) at netbsd:wm_stop+0x1f                                                    
wm_detach(c38206c0,4,e35febd0,c07805e1,c3820540,e35febe8,c38206c0,1,c38206c0,1) a
t netbsd:wm_detach+0x38
config_detach(c38206c0,4,0,0,e35fec1c,c05a25dc,0,0,0,0) at netbsd:config_detach+
0x71                                                                           
config_detach_all(0,0,0,0,e35fed00,e35feccc,c0559688,0,0,0) at netbsd:config_det
ach_all+0x7a                                                                   
cpu_reboot(0,0,0,0,0,0,e35fec94,c312af00,0,c38cf800) at netbsd:cpu_reboot+0x166
sys_reboot(c38cf800,e35fed00,e35fed28,d0,c38a8ca8,bbb38000,e35fed00,c38a3a38,2,b
bad9ba7) at netbsd:sys_reboot+0x94                                             
syscall(e35fed48,b3,ab,bfbf001f,806001f,0,2,bfbfee08,0,ffffffff) at netbsd:sysca
ll+0xaa                                                                        
db{0}> 


GENERIC, ACPI disabled, "makphy" disabled to force "ukphy"
> boot netbsd-GENERIC -2cs
11259000+564156+464544 [600192+589644]=0xcdc158
Loading /stand/i386/6.1/modules/pciverbose/pciverbose.kmod  
Loading /stand/i386/6.1/modules/usbverbose/usbverbose.kmod  
Loading /stand/i386/6.1/modules/miiverbose/miiverbose.kmod  
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012                             
    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 6.1_STABLE (GENERIC) #2: Mon Jul 29 16:45:39 CDT 2013
	sysop@tesla.clamp.net:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC
total memory = 2047 MB
avail memory = 2000 MB
userconf: configure system autoconfiguration:
uc> disable makphy                           
[ 49] makphy* disabled
uc> exit              
Continuing...
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (DELL     PE 011B     )
cpu0 at mainbus0 apid 1: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
cpu1 at mainbus0 apid 0: Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
ioapic0 at mainbus0 apid 2
ioapic1 at mainbus0 apid 3
ipmi0 at mainbus0         
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
pci1 at pchb0 bus 1                                                        
wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm0: interrupting at ioapic1 pin 1                                          
wm0: Ethernet address 00:0f:1f:9d:41:38
ukphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY (OUI 0x000ac2, model 0x0003), rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm1: interrupting at ioapic1 pin 0                                          
wm1: Ethernet address 00:0f:1f:9d:41:39
ukphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY (OUI 0x000ac2, model 0x0003), rev. 0
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
pci2 at ppb0 bus 2                                             
aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
aac0: interrupting at ioapic1 pin 2          
aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
ld0 at aac0 unit 0: RAID 5                                               
ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01) 
pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
pci3 at pchb2 bus 1                                                        
wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm2: unable to map device registers                                         
wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
wm3: unable to map device registers                                         
[...]
# reboot
reboot: rebooted by root
syncing disks... done
cd0: detached        
sysbeep0: detached
midi0: detached   
pci4: detached 
pci2: detached
ukphy1: detached
ukphy0: detached
atapibus0: detached
npx0: detached     
pcppi0: detached
ppb1: detached  
uvm_fault(0xc3867ca8, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c0555b6c cs 8 eflags 10282 cr2 300 ilevel 6
kernel: supervisor trap page fault, code=0                        
Stopped in pid 7.1 (reboot) at  netbsd:callout_stop+0xc:        movl    10(%ebx)
,%edi                                                                          
db{1}> bt
callout_stop(2f0,c078fa68,0,e361eba4,c07911c0,c0b94b9a,c3640000,c3640028,c380998
0,e361ebb4) at netbsd:callout_stop+0xc                                         
wm_stop(c3640028,1,c0bc7ce8,0,c0bc2580,c3809980,c0c2e280,e361ebe8,c077f07f,c3809
980) at netbsd:wm_stop+0x1f                                                    
wm_detach(c3809980,4,e361ebd0,c07805e1,c3809800,e361ebe8,c3809980,1,c3809980,1) a
t netbsd:wm_detach+0x38
config_detach(c3809980,4,0,0,e361ec1c,c05a25dc,0,0,0,0) at netbsd:config_detach+
0x71                                                                           
config_detach_all(0,0,0,0,e361ed00,e361eccc,c0559688,0,0,0) at netbsd:config_det
ach_all+0x7a                                                                   
cpu_reboot(0,0,0,0,0,0,c30b7bc8,c312af00,0,c38d5d20) at netbsd:cpu_reboot+0x166
sys_reboot(c38d5d20,e361ed00,e361ed28,d0,c3868e10,c38d5d20,e361ed00,c3862a38,2,b
bad9ba7) at netbsd:sys_reboot+0x94                                             
syscall(e361ed48,b3,ab,bfbf001f,806001f,0,2,bfbfee08,0,ffffffff) at netbsd:sysca
ll+0xaa                                                                        
db{1}> 

>How-To-Repeat:
Don't know.  Only seen on this one machine and there are no others like
it available to test.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->msaitoh
Responsible-Changed-By: msaitoh@NetBSD.org
Responsible-Changed-When: Tue, 19 Aug 2014 03:41:48 +0000
Responsible-Changed-Why:
mine.


From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
Date: Wed, 20 Aug 2014 22:16:51 -0500 (CDT)

 I had console access to the problem machine today.  With the latest
 current:

 NetBSD brenowin.reltuk.net 7.99.1 NetBSD 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014  sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC i386


 GENERIC with ACPI,SMP enabled:
 > boot netbsd-GENERIC -vxs
 booting hd0a:netbsd-GENERIC (howto 0xa0002)
 13918672+559804+463004 [641648+640223]=0xf7b0f4
 Loading /stand/i386/7.99.1/modules/pciverbose/pciverbose.kmod  
 Loading /stand/i386/7.99.1/modules/usbverbose/usbverbose.kmod  
 Loading /stand/i386/7.99.1/modules/miiverbose/miiverbose.kmod  
 Loading /stand/i386/7.99.1/modules/acpiverbose/acpiverbose.kmod  
 BIOS CFG: Model-SubM-Rev: fc-01-00, 0x0x74<EBDA,KBDINT,RTC,IC2>
 rbus: rbus_min_start set to 0x80000000                         
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014                 
     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 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014
 	sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC
 total memory = 2047 MB
 avail memory = 1998 MB
 Prep module path=pciverbose len=95714 pa=107c000
 Prep module path=usbverbose len=77974 pa=1094000
 Prep module path=miiverbose len=9853 pa=10a8000 
 Prep module path=acpiverbose len=31157 pa=10ab000
 kern.module.path=/stand/i386/7.99.1/modules      
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 BIOS32 rev. 0 found at 0xffe90                                   
 SMBIOS rev. 2.3 @ 0xfb1e0 (47 entries)
 Dell Computer Corporation PowerEdge 1650             
 mainbus0 (root)                                      
 ACPI: RSDP 0xfdc40 000014 (v00 DELL  )
 ACPI: RSDT 0xfdc54 000030 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: FACP 0xfdc84 000074 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: DSDT 0x7ffe0000 00282A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: FACS 0x7ffefc00 000040                                             
 ACPI: APIC 0xfdcf8 00006A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: SPCR 0xfdd62 000050 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: All ACPI Tables successfully acquired                           
 cpu0 at mainbus0 apid 0cpu0: 2 page colors 
 [machine hangs]


 GENERIC w/SMP disabled, ACPI enabled:
 > boot netbsd-GENERIC -vx1s
 booting hd0a:netbsd-GENERIC (howto 0x100a0002)
 13918672+559804+463004 [641648+640223]=0xf7b0f4
 Loading /stand/i386/7.99.1/modules/pciverbose/pciverbose.kmod  
 Loading /stand/i386/7.99.1/modules/usbverbose/usbverbose.kmod  
 Loading /stand/i386/7.99.1/modules/miiverbose/miiverbose.kmod  
 Loading /stand/i386/7.99.1/modules/acpiverbose/acpiverbose.kmod  
 BIOS CFG: Model-SubM-Rev: fc-01-00, 0x0x74<EBDA,KBDINT,RTC,IC2>
 rbus: rbus_min_start set to 0x80000000                         
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014                 
     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 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014
 	sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC
 total memory = 2047 MB
 avail memory = 1998 MB
 Prep module path=pciverbose len=95714 pa=107c000
 Prep module path=usbverbose len=77974 pa=1094000
 Prep module path=miiverbose len=9853 pa=10a8000 
 Prep module path=acpiverbose len=31157 pa=10ab000
 kern.module.path=/stand/i386/7.99.1/modules      
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 BIOS32 rev. 0 found at 0xffe90                                   
 SMBIOS rev. 2.3 @ 0xfb1e0 (47 entries)
 Dell Computer Corporation PowerEdge 1650             
 mainbus0 (root)                                      
 ACPI: RSDP 0xfdc40 000014 (v00 DELL  )
 ACPI: RSDT 0xfdc54 000030 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: FACP 0xfdc84 000074 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: DSDT 0x7ffe0000 00282A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: FACS 0x7ffefc00 000040                                             
 ACPI: APIC 0xfdcf8 00006A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: SPCR 0xfdd62 000050 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 ACPI: All ACPI Tables successfully acquired                           
 cpu0 at mainbus0 apid 0: multiprocessor boot disabled
 cpu1 at mainbus0 apid 1cpu1: 16 page colors          
 cpu1: calibrating local timer              
 cpu1: apic clock running at 133 MHz
 timecounter: Timecounter "lapic" frequency 133055293 Hz quality -100
 : Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4         
 cpu1: PAT enabled                                          
 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x11, 16 pins
 ioapic0: misconfigured as apic 0                                
 ioapic0: remapped to apic 2     
 ioapic1 at mainbus0 apid 3: pa 0xfec01000, version 0x11, 16 pins
 ioapic1: misconfigured as apic 0                                
 ioapic1: remapped to apic 3     
 acpi0 at mainbus0: Intel ACPICA 20131218
 acpi0: X/RSDT: OemId <DELL  ,PE1650  ,00000001>, AslId <MSFT,0100000a>
 [...]                                                             
 attimer1: attached to pcppi1
 ipmi0 at mainbus0           
 ipmi0: WARNING: power management not supported
 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: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
 pci1 at pchb0 bus 1                                                        
 pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm0: interrupting at ioapic1 pin 1                                          
 wm0: 64-bit 66MHz PCI bus         
 wm0: 64 word (6 address bits) MicroWire EEPROM
 wm0: Ethernet address 00:0f:1f:9d:41:38       
 makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm1: interrupting at ioapic1 pin 0                                          
 wm1: 64-bit 66MHz PCI bus         
 wm1: 64 word (6 address bits) MicroWire EEPROM
 wm1: Ethernet address 00:0f:1f:9d:41:39       
 makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
 pci2 at ppb0 bus 2                                             
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 pci_mem_find: void region                                
 aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
 aac0: interrupting at ioapic1 pin 2          
 aac0: GETCOMMPREF appears untrustworthy.  Ignoring.
 aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
 aac0: Kernel 2.8-1 [Build 6098], Monitor 2.8-1 [Build 6098], S/N 3041D3  
 aac0: Controller supports: 0x235c<WCACHE,DATA64,HOSTTIME,WINDOW4GB,SOFTERR,NORECOND>
 ld0 at aac0 unit 0: RAID 5
 ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
 aac0: WARNING: power management not supported                               
 pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01)
 pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
 pci3 at pchb2 bus 1                                                        
 pci3: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm2: unable to map device registers                                         
 wm2: WARNING: power management not supported
 wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm3: unable to map device registers                                         
 wm3: WARNING: power management not supported
 [...]
 # reboot
 reboot: rebooted by root
 syncing disks... done
 cd0: detached        
 pci4: detached
 pci2: detached
 atapibus0: detached
 ppb1: detached     
 uvm_fault(0xc3ae3d40, 0x1000, 1) -> 0xe
 fatal page fault in supervisor mode    
 trap type 6 code 0 eip c04cd7d5 cs 8 eflags 10292 cr2 1150 ilevel 6 esp ffffffff
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                         
 kernel: supervisor trap page fault, code=0            
 Skipping crash dump on recursive panic    
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dcc64
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dcab8
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc90c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc760
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc5b4
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc408
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc25c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc0b0
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dbf04
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dbd58
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dbbac
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dba00
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db854
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db6a8
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db4fc
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db350
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db1a4
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38daff8
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dae4c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38daca0
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38daaf4
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da948
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da79c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da5f0
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da444
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da298
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0                        
 fatal double fault in supervisor mode                 
 trap type 13 code 80000000 eip c0843fe7 cs 8 eflags 10297 cr2 e38d9ffc ilevel 8 esp e38da000
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 kernel: supervisor trap double fault, code=0          
 Skipping crash dump on recursive panic      
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 4046 cr2 e38d9ffc ilevel 8 esp dab54e3c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54c90
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54ae4
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54938
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab5478c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab545e0
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54434
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54288
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab540dc
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53f30
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53d84
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53bd8
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53a2c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53880
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab536d4
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53528
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab5337c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab531d0
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53024
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52e78
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52ccc
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52b20
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52974
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab527c8
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab5261c
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52470
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 Skipping crash dump on recursive panic                
 panic: i82489_icr_wait: busy          
 fatal breakpoint trap in supervisor mode
 trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab522c4
 curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 [machine hangs]



 GENERIC w/SMP enabled, ACPI disabled:
 > boot netbsd-GENERIC -vx2s
 booting hd0a:netbsd-GENERIC (howto 0x200a0002)
 13918672+559804+463004 [641648+640223]=0xf7b0f4
 Loading /stand/i386/7.99.1/modules/pciverbose/pciverbose.kmod  
 Loading /stand/i386/7.99.1/modules/usbverbose/usbverbose.kmod  
 Loading /stand/i386/7.99.1/modules/miiverbose/miiverbose.kmod  
 Loading /stand/i386/7.99.1/modules/acpiverbose/acpiverbose.kmod  
 BIOS CFG: Model-SubM-Rev: fc-01-00, 0x0x74<EBDA,KBDINT,RTC,IC2>
 rbus: rbus_min_start set to 0x80000000                         
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014                 
     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 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014
 	sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC
 total memory = 2047 MB
 avail memory = 1998 MB
 Prep module path=pciverbose len=95714 pa=107c000
 Prep module path=usbverbose len=77974 pa=1094000
 Prep module path=miiverbose len=9853 pa=10a8000 
 Prep module path=acpiverbose len=31157 pa=10ab000
 kern.module.path=/stand/i386/7.99.1/modules      
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 BIOS32 rev. 0 found at 0xffe90                                   
 SMBIOS rev. 2.3 @ 0xfb1e0 (47 entries)
 Dell Computer Corporation PowerEdge 1650             
 mainbus0 (root)                                      
 mainbus0: Intel MP Specification (Version 1.4) (DELL     PE 011B     )
 cpu0 at mainbus0 apid 1cpu0: 16 page colors                           
 cpu0: calibrating local timer              
 cpu0: apic clock running at 133 MHz
 timecounter: Timecounter "lapic" frequency 133054893 Hz quality -100
 : Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4         
 cpu0: PAT enabled                                          
 cpu1 at mainbus0 apid 0cpu1: 2 page colors
 x86_ipi_init: ESR 00000040                
 : Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
 cpu1: PAT enabled                                          
 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 ISA   
 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x11, 16 pins
 ioapic0: misconfigured as apic 0                                
 ioapic0: remapped to apic 2     
 ioapic1 at mainbus0 apid 3: pa 0xfec01000, version 0x11, 16 pins
 ioapic1: misconfigured as apic 0                                
 ioapic1: remapped to apic 3     
 ipmi0 at mainbus0          
 ipmi0: WARNING: power management not supported
 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: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
 pci1 at pchb0 bus 1                                                        
 pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm0: interrupting at ioapic1 pin 1                                          
 wm0: 64-bit 66MHz PCI bus         
 wm0: 64 word (6 address bits) MicroWire EEPROM
 wm0: Ethernet address 00:0f:1f:9d:41:38       
 makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm1: interrupting at ioapic1 pin 0                                          
 wm1: 64-bit 66MHz PCI bus         
 wm1: 64 word (6 address bits) MicroWire EEPROM
 wm1: Ethernet address 00:0f:1f:9d:41:39       
 makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
 pci2 at ppb0 bus 2                                             
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 pci_mem_find: void region                                
 aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
 aac0: interrupting at ioapic1 pin 2          
 aac0: GETCOMMPREF appears untrustworthy.  Ignoring.
 aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
 aac0: Kernel 2.8-1 [Build 6098], Monitor 2.8-1 [Build 6098], S/N 3041D3  
 aac0: Controller supports: 0x235c<WCACHE,DATA64,HOSTTIME,WINDOW4GB,SOFTERR,NORECOND>
 ld0 at aac0 unit 0: RAID 5
 ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
 aac0: WARNING: power management not supported                               
 pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01)
 pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
 pci3 at pchb2 bus 1                                                        
 pci3: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm2: unable to map device registers                                         
 wm2: WARNING: power management not supported
 wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 wm3: unable to map device registers                                         
 wm3: WARNING: power management not supported
 [...]
 # reboot
 reboot: rebooted by root
 syncing disks... done
 cd0: detached        
 sysbeep0: detached
 midi0: detached   
 pci4: detached 
 pci2: detached
 atapibus0: detached
 pcppi0: detached   
 ppb1: detached  
 uvm_fault(0xc3b4dd40, 0x1000, 1) -> 0xe
 fatal page fault in supervisor mode    
 trap type 6 code 0 eip c04cd7d5 cs 8 eflags 10292 cr2 1150 ilevel 6 esp ffffffff
 curlwp 0xc3b2faa0 pid 8 lid 1 lowest kstack 0xe38b92c0                         
 kernel: supervisor trap page fault, code=0            
 Stopped in pid 8.1 (reboot) at  netbsd:wm_stop+0x11:    movl    1150(%ebx),%eax
 db{0}> bt                                                                      
 wm_stop(c38a4028,1,c0e613d8,c3a9b808,4,c0e51b60,e38bbe54,c083488b,c3a9b808,4) at
  netbsd:wm_stop+0x11                                                           
 wm_detach(c3a9b808,4,c0f360c0,e38bbe3c,c08360b3,c3a9b688,e38bbe54,c0836112,c3a9b
 808,c3a9b808) at netbsd:wm_detach+0x37                                         
 config_detach(c3a9b808,4,0,0,e38bbe8c,c063bad0,0,0,0,e38bbf68) at netbsd:config_
 detach+0xe2                                                                    
 config_detach_all(0,0,0,e38bbf68,0,d0,e38bbf3c,c05df6a9,0,0) at netbsd:config_de
 tach_all+0x78                                                                  
 cpu_reboot(0,0,0,0,0,0,c3b4ee10,e38bbef0,c071c2b4,c9) at netbsd:cpu_reboot+0x1aa

 sys_reboot(c3b2faa0,e38bbf68,e38bbf60,bbaf1000,c0e60a80,c0eb8e20,e38bbf68,0,0,0)
  at netbsd:sys_reboot+0x95                                                     
 syscall() at netbsd:syscall+0x83
 --- syscall (number 208) ---    
 bba83d37:                   
 db{0}>   



 I am in the process of tweaking this machine's custom kernel to enumerate
 only wm[01] to see if that will work around the issue.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Masanobu SAITOH <msaitoh@execsw.org>
To: gnats-bugs@NetBSD.org, msaitoh@NetBSD.org, gnats-admin@netbsd.org, 
 netbsd-bugs@netbsd.org, jdbaker@mylinuxisp.com
Cc: msaitoh@execsw.org
Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
Date: Thu, 21 Aug 2014 12:45:47 +0900

 Hi, John.

 On 2014/08/21 12:20, John D. Baker wrote:
 > The following reply was made to PR kern/49102; it has been noted by GNATS.
 > 
 > From: "John D. Baker" <jdbaker@mylinuxisp.com>
 > To: gnats-bugs@NetBSD.org
 > Cc:
 > Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
 > Date: Wed, 20 Aug 2014 22:16:51 -0500 (CDT)
 > 
 >   I had console access to the problem machine today.  With the latest
 >   current:
 >   
 >   NetBSD brenowin.reltuk.net 7.99.1 NetBSD 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014  sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC i386
 >   
 >   
 >   GENERIC with ACPI,SMP enabled:
 >   > boot netbsd-GENERIC -vxs
 >   booting hd0a:netbsd-GENERIC (howto 0xa0002)
 >   13918672+559804+463004 [641648+640223]=0xf7b0f4
 >   Loading /stand/i386/7.99.1/modules/pciverbose/pciverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/usbverbose/usbverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/miiverbose/miiverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/acpiverbose/acpiverbose.kmod
 >   BIOS CFG: Model-SubM-Rev: fc-01-00, 0x0x74<EBDA,KBDINT,RTC,IC2>
 >   rbus: rbus_min_start set to 0x80000000
 >   Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 >       2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
 >       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 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014
 >   	sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC
 >   total memory = 2047 MB
 >   avail memory = 1998 MB
 >   Prep module path=pciverbose len=95714 pa=107c000
 >   Prep module path=usbverbose len=77974 pa=1094000
 >   Prep module path=miiverbose len=9853 pa=10a8000
 >   Prep module path=acpiverbose len=31157 pa=10ab000
 >   kern.module.path=/stand/i386/7.99.1/modules
 >   timecounter: Timecounters tick every 10.000 msec
 >   timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 >   BIOS32 rev. 0 found at 0xffe90
 >   SMBIOS rev. 2.3 @ 0xfb1e0 (47 entries)
 >   Dell Computer Corporation PowerEdge 1650
 >   mainbus0 (root)
 >   ACPI: RSDP 0xfdc40 000014 (v00 DELL  )
 >   ACPI: RSDT 0xfdc54 000030 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: FACP 0xfdc84 000074 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: DSDT 0x7ffe0000 00282A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: FACS 0x7ffefc00 000040
 >   ACPI: APIC 0xfdcf8 00006A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: SPCR 0xfdd62 000050 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: All ACPI Tables successfully acquired
 >   cpu0 at mainbus0 apid 0cpu0: 2 page colors
 >   [machine hangs]
 >   
 >   
 >   GENERIC w/SMP disabled, ACPI enabled:
 >   > boot netbsd-GENERIC -vx1s
 >   booting hd0a:netbsd-GENERIC (howto 0x100a0002)
 >   13918672+559804+463004 [641648+640223]=0xf7b0f4
 >   Loading /stand/i386/7.99.1/modules/pciverbose/pciverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/usbverbose/usbverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/miiverbose/miiverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/acpiverbose/acpiverbose.kmod
 >   BIOS CFG: Model-SubM-Rev: fc-01-00, 0x0x74<EBDA,KBDINT,RTC,IC2>
 >   rbus: rbus_min_start set to 0x80000000
 >   Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 >       2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
 >       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 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014
 >   	sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC
 >   total memory = 2047 MB
 >   avail memory = 1998 MB
 >   Prep module path=pciverbose len=95714 pa=107c000
 >   Prep module path=usbverbose len=77974 pa=1094000
 >   Prep module path=miiverbose len=9853 pa=10a8000
 >   Prep module path=acpiverbose len=31157 pa=10ab000
 >   kern.module.path=/stand/i386/7.99.1/modules
 >   timecounter: Timecounters tick every 10.000 msec
 >   timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 >   BIOS32 rev. 0 found at 0xffe90
 >   SMBIOS rev. 2.3 @ 0xfb1e0 (47 entries)
 >   Dell Computer Corporation PowerEdge 1650
 >   mainbus0 (root)
 >   ACPI: RSDP 0xfdc40 000014 (v00 DELL  )
 >   ACPI: RSDT 0xfdc54 000030 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: FACP 0xfdc84 000074 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: DSDT 0x7ffe0000 00282A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: FACS 0x7ffefc00 000040
 >   ACPI: APIC 0xfdcf8 00006A (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: SPCR 0xfdd62 000050 (v01 DELL   PE1650   00000001 MSFT 0100000A)
 >   ACPI: All ACPI Tables successfully acquired
 >   cpu0 at mainbus0 apid 0: multiprocessor boot disabled
 >   cpu1 at mainbus0 apid 1cpu1: 16 page colors
 >   cpu1: calibrating local timer
 >   cpu1: apic clock running at 133 MHz
 >   timecounter: Timecounter "lapic" frequency 133055293 Hz quality -100
 >   : Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
 >   cpu1: PAT enabled
 >   ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x11, 16 pins
 >   ioapic0: misconfigured as apic 0
 >   ioapic0: remapped to apic 2
 >   ioapic1 at mainbus0 apid 3: pa 0xfec01000, version 0x11, 16 pins
 >   ioapic1: misconfigured as apic 0
 >   ioapic1: remapped to apic 3
 >   acpi0 at mainbus0: Intel ACPICA 20131218
 >   acpi0: X/RSDT: OemId <DELL  ,PE1650  ,00000001>, AslId <MSFT,0100000a>
 >   [...]
 >   attimer1: attached to pcppi1
 >   ipmi0 at mainbus0
 >   ipmi0: WARNING: power management not supported
 >   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: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
 >   pci1 at pchb0 bus 1
 >   pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 >   wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm0: interrupting at ioapic1 pin 1
 >   wm0: 64-bit 66MHz PCI bus
 >   wm0: 64 word (6 address bits) MicroWire EEPROM
 >   wm0: Ethernet address 00:0f:1f:9d:41:38
 >   makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 >   makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 >   wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm1: interrupting at ioapic1 pin 0
 >   wm1: 64-bit 66MHz PCI bus
 >   wm1: 64 word (6 address bits) MicroWire EEPROM
 >   wm1: Ethernet address 00:0f:1f:9d:41:39
 >   makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 >   makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 >   ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
 >   pci2 at ppb0 bus 2
 >   pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 >   pci_mem_find: void region
 >   aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
 >   aac0: interrupting at ioapic1 pin 2
 >   aac0: GETCOMMPREF appears untrustworthy.  Ignoring.
 >   aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
 >   aac0: Kernel 2.8-1 [Build 6098], Monitor 2.8-1 [Build 6098], S/N 3041D3
 >   aac0: Controller supports: 0x235c<WCACHE,DATA64,HOSTTIME,WINDOW4GB,SOFTERR,NORECOND>
 >   ld0 at aac0 unit 0: RAID 5
 >   ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
 >   aac0: WARNING: power management not supported
 >   pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01)
 >   pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
 >   pci3 at pchb2 bus 1
 >   pci3: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 >   wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm2: unable to map device registers
 >   wm2: WARNING: power management not supported
 >   wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm3: unable to map device registers
 >   wm3: WARNING: power management not supported

 The scenario is:

 	0) call wm_attach()

 	1) pci_mapreg_map() failed

 	2) wm_attach() failed

 	( 3) configure() don't detect whether an attach function successfully
 	finished or not because the return value of attach function is void)

 	4) When shutdown, wm_detach() is called even though the device wasn't
 	attached correctly.

 	5) wm_detach() doesn't check whether the device was successfully
 	attached or not.

 The panic can be avoided by fixing wm_detach(). The problem of failing
 pci_mapreg_map() is not related to if_wm.c but ... perhaps related to
 BIOS bug or something else.

  I think adding extra check into detach function is not a smart solution.
 If the return value of the attach function is not void, the caller function
 can detect it and detach sequence in shutdown won't call the detach function.

  Anyway, I'll write a patch to fix above 5). Please wait a few days.

  Thanks.


 >   [...]
 >   # reboot
 >   reboot: rebooted by root
 >   syncing disks... done
 >   cd0: detached
 >   pci4: detached
 >   pci2: detached
 >   atapibus0: detached
 >   ppb1: detached
 >   uvm_fault(0xc3ae3d40, 0x1000, 1) -> 0xe
 >   fatal page fault in supervisor mode
 >   trap type 6 code 0 eip c04cd7d5 cs 8 eflags 10292 cr2 1150 ilevel 6 esp ffffffff
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   kernel: supervisor trap page fault, code=0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dcc64
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dcab8
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc90c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc760
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc5b4
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc408
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc25c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dc0b0
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dbf04
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dbd58
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dbbac
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dba00
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db854
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db6a8
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db4fc
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db350
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38db1a4
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38daff8
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38dae4c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38daca0
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38daaf4
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da948
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da79c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da5f0
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da444
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 1150 ilevel 8 esp e38da298
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   fatal double fault in supervisor mode
 >   trap type 13 code 80000000 eip c0843fe7 cs 8 eflags 10297 cr2 e38d9ffc ilevel 8 esp e38da000
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   kernel: supervisor trap double fault, code=0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 4046 cr2 e38d9ffc ilevel 8 esp dab54e3c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54c90
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54ae4
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54938
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab5478c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab545e0
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54434
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab54288
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab540dc
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53f30
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53d84
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53bd8
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53a2c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53880
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab536d4
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53528
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab5337c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab531d0
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab53024
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52e78
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52ccc
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52b20
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52974
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab527c8
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab5261c
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab52470
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   Skipping crash dump on recursive panic
 >   panic: i82489_icr_wait: busy
 >   fatal breakpoint trap in supervisor mode
 >   trap type 1 code 0 eip c027d8c4 cs 8 eflags 246 cr2 e38d9ffc ilevel 8 esp dab522c4
 >   curlwp 0xc3c37800 pid 7 lid 1 lowest kstack 0xe38da2c0
 >   [machine hangs]
 >   
 >   
 >   
 >   GENERIC w/SMP enabled, ACPI disabled:
 >   > boot netbsd-GENERIC -vx2s
 >   booting hd0a:netbsd-GENERIC (howto 0x200a0002)
 >   13918672+559804+463004 [641648+640223]=0xf7b0f4
 >   Loading /stand/i386/7.99.1/modules/pciverbose/pciverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/usbverbose/usbverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/miiverbose/miiverbose.kmod
 >   Loading /stand/i386/7.99.1/modules/acpiverbose/acpiverbose.kmod
 >   BIOS CFG: Model-SubM-Rev: fc-01-00, 0x0x74<EBDA,KBDINT,RTC,IC2>
 >   rbus: rbus_min_start set to 0x80000000
 >   Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 >       2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
 >       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 7.99.1 (GENERIC) #1: Tue Aug 19 19:02:53 CDT 2014
 >   	sysop@kepler.clamp.net:/d0/nbsd/current/obj/i386/sys/arch/i386/compile/GENERIC
 >   total memory = 2047 MB
 >   avail memory = 1998 MB
 >   Prep module path=pciverbose len=95714 pa=107c000
 >   Prep module path=usbverbose len=77974 pa=1094000
 >   Prep module path=miiverbose len=9853 pa=10a8000
 >   Prep module path=acpiverbose len=31157 pa=10ab000
 >   kern.module.path=/stand/i386/7.99.1/modules
 >   timecounter: Timecounters tick every 10.000 msec
 >   timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 >   BIOS32 rev. 0 found at 0xffe90
 >   SMBIOS rev. 2.3 @ 0xfb1e0 (47 entries)
 >   Dell Computer Corporation PowerEdge 1650
 >   mainbus0 (root)
 >   mainbus0: Intel MP Specification (Version 1.4) (DELL     PE 011B     )
 >   cpu0 at mainbus0 apid 1cpu0: 16 page colors
 >   cpu0: calibrating local timer
 >   cpu0: apic clock running at 133 MHz
 >   timecounter: Timecounter "lapic" frequency 133054893 Hz quality -100
 >   : Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
 >   cpu0: PAT enabled
 >   cpu1 at mainbus0 apid 0cpu1: 2 page colors
 >   x86_ipi_init: ESR 00000040
 >   : Intel(R) Pentium(R) III CPU - S         1400MHz, id 0x6b4
 >   cpu1: PAT enabled
 >   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 ISA
 >   ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x11, 16 pins
 >   ioapic0: misconfigured as apic 0
 >   ioapic0: remapped to apic 2
 >   ioapic1 at mainbus0 apid 3: pa 0xfec01000, version 0x11, 16 pins
 >   ioapic1: misconfigured as apic 0
 >   ioapic1: remapped to apic 3
 >   ipmi0 at mainbus0
 >   ipmi0: WARNING: power management not supported
 >   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: ServerWorks CNB20-HE PCI Bridge (rev. 0x23)
 >   pci1 at pchb0 bus 1
 >   pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 >   wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm0: interrupting at ioapic1 pin 1
 >   wm0: 64-bit 66MHz PCI bus
 >   wm0: 64 word (6 address bits) MicroWire EEPROM
 >   wm0: Ethernet address 00:0f:1f:9d:41:38
 >   makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 >   makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 >   wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm1: interrupting at ioapic1 pin 0
 >   wm1: 64-bit 66MHz PCI bus
 >   wm1: 64 word (6 address bits) MicroWire EEPROM
 >   wm1: Ethernet address 00:0f:1f:9d:41:39
 >   makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 >   makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 >   ppb0 at pci1 dev 8 function 0: Intel product 0x0309 (rev. 0x01)
 >   pci2 at ppb0 bus 2
 >   pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 >   pci_mem_find: void region
 >   aac0 at pci1 dev 8 function 1: Dell PERC 3/Di
 >   aac0: interrupting at ioapic1 pin 2
 >   aac0: GETCOMMPREF appears untrustworthy.  Ignoring.
 >   aac0: i960RX at 100MHz, 128MB mem (118MB cache), optional battery present
 >   aac0: Kernel 2.8-1 [Build 6098], Monitor 2.8-1 [Build 6098], S/N 3041D3
 >   aac0: Controller supports: 0x235c<WCACHE,DATA64,HOSTTIME,WINDOW4GB,SOFTERR,NORECOND>
 >   ld0 at aac0 unit 0: RAID 5
 >   ld0: 34729 MB, 8820 cyl, 128 head, 63 sec, 512 bytes/sect x 71125760 sectors
 >   aac0: WARNING: power management not supported
 >   pchb1 at pci0 dev 0 function 1: ServerWorks CNB20-HE PCI Bridge (rev. 0x01)
 >   pchb2 at pci0 dev 0 function 2: ServerWorks CNB30-LE PCI Bridge (rev. 0x01)
 >   pci3 at pchb2 bus 1
 >   pci3: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 >   wm2 at pci3 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm2: unable to map device registers
 >   wm2: WARNING: power management not supported
 >   wm3 at pci3 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet (rev. 0x02)
 >   wm3: unable to map device registers
 >   wm3: WARNING: power management not supported
 >   [...]
 >   # reboot
 >   reboot: rebooted by root
 >   syncing disks... done
 >   cd0: detached
 >   sysbeep0: detached
 >   midi0: detached
 >   pci4: detached
 >   pci2: detached
 >   atapibus0: detached
 >   pcppi0: detached
 >   ppb1: detached
 >   uvm_fault(0xc3b4dd40, 0x1000, 1) -> 0xe
 >   fatal page fault in supervisor mode
 >   trap type 6 code 0 eip c04cd7d5 cs 8 eflags 10292 cr2 1150 ilevel 6 esp ffffffff
 >   curlwp 0xc3b2faa0 pid 8 lid 1 lowest kstack 0xe38b92c0
 >   kernel: supervisor trap page fault, code=0
 >   Stopped in pid 8.1 (reboot) at  netbsd:wm_stop+0x11:    movl    1150(%ebx),%eax
 >   db{0}> bt
 >   wm_stop(c38a4028,1,c0e613d8,c3a9b808,4,c0e51b60,e38bbe54,c083488b,c3a9b808,4) at
 >    netbsd:wm_stop+0x11
 >   wm_detach(c3a9b808,4,c0f360c0,e38bbe3c,c08360b3,c3a9b688,e38bbe54,c0836112,c3a9b
 >   808,c3a9b808) at netbsd:wm_detach+0x37
 >   config_detach(c3a9b808,4,0,0,e38bbe8c,c063bad0,0,0,0,e38bbf68) at netbsd:config_
 >   detach+0xe2
 >   config_detach_all(0,0,0,e38bbf68,0,d0,e38bbf3c,c05df6a9,0,0) at netbsd:config_de
 >   tach_all+0x78
 >   cpu_reboot(0,0,0,0,0,0,c3b4ee10,e38bbef0,c071c2b4,c9) at netbsd:cpu_reboot+0x1aa
 >                                                                                  
 >   sys_reboot(c3b2faa0,e38bbf68,e38bbf60,bbaf1000,c0e60a80,c0eb8e20,e38bbf68,0,0,0)
 >    at netbsd:sys_reboot+0x95
 >   syscall() at netbsd:syscall+0x83
 >   --- syscall (number 208) ---
 >   bba83d37:
 >   db{0}>
 >   
 >   
 >   
 >   I am in the process of tweaking this machine's custom kernel to enumerate
 >   only wm[01] to see if that will work around the issue.
 >   
 >   --
 >   |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 >   |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 >   | X  No HTML/proprietary data in email.   BSD just sits there and works!
 >   |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645
 >   
 > 


 -- 
 -----------------------------------------------
                 SAITOH Masanobu (msaitoh@execsw.org
                                  msaitoh@netbsd.org)

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
Date: Wed, 20 Aug 2014 23:46:15 -0500 (CDT)

 Enumerating only wm[01] works around the panic.

 The real problem appears to be the attachment of multiple "pchbN" devices.
 They appear to map the same PCI bus multiple times--especially "pchb2".
 The wm[23] devices share the same device/function as wm[01], but on the
 spurious "pci3" bus.  There is also a spurious attachment of "aac1" and
 "ppb1" also on "pci3" at the same device/function as their "aac0" and
 "ppb0" counterparts.  The "aac1" attach message is "can't find mem space".

 Looking at the 'dmesg' output more closely, a more comprehensive workaround
 would be to enumerate "pchb0" only.

 Probably a BIOS bug (or maybe a hardware bug/quirk).

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
Date: Thu, 21 Aug 2014 07:34:43 -0500 (CDT)

 On Wed, 20 Aug 2014, John D. Baker wrote:

 > Looking at the 'dmesg' output more closely, a more comprehensive
 > workaround would be to enumerate "pchb0" only.

 Eliding the wildcard "pchb*" match and nailing down only "pchb0"
 eliminates the phantom PCI busses and their asscociated phantom devices.

 The attachment of these additional "pchb" functions that overlay the
 previously-attached PCI busses appears to be the source of the problem.
 While I know there are some machines that legitimately use multiple
 PCI-Host Bridges, the problem machine is not one of them:

 000:00:0: ServerWorks CNB20-HE PCI Bridge (host bridge, revision 0x23)
 000:00:1: ServerWorks CNB20-HE PCI Bridge (host bridge, revision 0x01)
 000:00:2: ServerWorks CNB30-LE PCI Bridge (host bridge, revision 0x01)
 000:00:3: ServerWorks CNB30-LE PCI Bridge (host bridge, revision 0x01)

 The only legitimate pchb is bus 0, device 0, function 0.  The rest
 overlay the first and create phantom busses/devices.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49102 CVS commit: src/sys/dev/pci
Date: Sun, 24 Aug 2014 21:15:35 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Sun Aug 24 21:15:35 UTC 2014

 Modified Files:
 	src/sys/dev/pci: if_wm.c if_wmvar.h

 Log Message:
  Set the WM_F_ATTACHED flag if wm_attach() finished succesfully and check
 the flag in wm_detach(). It will avoid to panic in wm_detach().
 Fixes PR#49102.


 To generate a diff of this commit:
 cvs rdiff -u -r1.289 -r1.290 src/sys/dev/pci/if_wm.c
 cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/if_wmvar.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: msaitoh@NetBSD.org
State-Changed-When: Sun, 24 Aug 2014 21:21:37 +0000
State-Changed-Why:
Could you test with the latest -current?


From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
Date: Sun, 24 Aug 2014 21:20:20 -0500 (CDT)

 On Sun, 24 Aug 2014, msaitoh@NetBSD.org wrote:

 > Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
 > 
 > Synopsis: wm detach panic on shutdown or reboot
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: msaitoh@NetBSD.org
 > State-Changed-When: Sun, 24 Aug 2014 21:21:37 +0000
 > State-Changed-Why:
 > Could you test with the latest -current?

 It appears the problem is sucessfully circumvented.

 Secondary evidence suggests GENERIC kernel reboots cleanly (at least
 filesystems are unmounted) as 'dmesg' does not contain messages about
 replaying log on various filesystems.

 I will next have console access to the machine on 30 September 2014
 and can gather conclusive results then.  That is, unless I can get
 someone on-site to watch the console as I shut it down and report
 whether anything strange appears.

 The changes should be pulled up to NetBSD-7 and NetBSD-6.

 The real issue is the attachment of multiple PCI-Host Bridges that
 overlay the existing PCI bus with phantom busses causing duplicate enum-
 eration of already-attached devices.  That is out of scope for this PR.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: msaitoh@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
    jdbaker@mylinuxisp.com
Subject: re: kern/49102 (wm detach panic on shutdown or reboot)
Date: Mon, 25 Aug 2014 12:31:37 +1000

 FWIW, the console boot log should be present in /var/run/rc.log.

 at least on netbsd-6 and beyond..


 .mrg.

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49102 (wm detach panic on shutdown or reboot)
Date: Mon, 25 Aug 2014 11:08:25 -0500 (CDT)

 On Sun, 24 Aug 2014, John D. Baker wrote:

 > I will next have console access to the machine on 30 September 2014
 > and can gather conclusive results then.  That is, unless I can get
 > someone on-site to watch the console as I shut it down and report
 > whether anything strange appears.

 I managed to get the nominal physical custodian of the problem machine
 to hook up a monitor and keyboard after which I halted the machine (with
 "ddb.onpanic=1" just in case).

 The machine cleanly detached all devices--including the phantom PCI
 busses--and halted normally.

 (It didn't respond to the USB keyboard at that point, but that may have
 been a BIOS setup issue--which I thought I'd fixed.  At least it was safe
 to power-cycle it.)

 > The changes should be pulled up to NetBSD-7 and NetBSD-6.

 ...after which I'll consider the issue closed.  I'll file a separate PR
 about the extraneous PCI-Host Bridge attachment.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49102 CVS commit: [netbsd-7] src/sys/dev/pci
Date: Fri, 29 Aug 2014 11:37:52 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Fri Aug 29 11:37:51 UTC 2014

 Modified Files:
 	src/sys/dev/pci [netbsd-7]: if_wm.c if_wmvar.h

 Log Message:
 Pull up following revision(s) (requested by msaitoh in ticket #61):
 	sys/dev/pci/if_wm.c: revision 1.290
 	sys/dev/pci/if_wmvar.h: revision 1.20
 Set the WM_F_ATTACHED flag if wm_attach() finished succesfully and check
 the flag in wm_detach(). It will avoid to panic in wm_detach().
 Fixes PR#49102.


 To generate a diff of this commit:
 cvs rdiff -u -r1.289 -r1.289.2.1 src/sys/dev/pci/if_wm.c
 cvs rdiff -u -r1.19 -r1.19.2.1 src/sys/dev/pci/if_wmvar.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed
State-Changed-By: msaitoh@NetBSD.org
State-Changed-When: Mon, 01 Sep 2014 05:41:51 +0000
State-Changed-Why:
The problem that wm_detach() paniced if wm_attach() falied was fixed.
Thanks.


From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49102 CVS commit: [netbsd-6] src/sys/dev/pci
Date: Thu, 30 Apr 2015 19:53:28 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Thu Apr 30 19:53:28 UTC 2015

 Modified Files:
 	src/sys/dev/pci [netbsd-6]: if_wm.c if_wmvar.h pcidevs

 Log Message:
 Pull up following revision(s) (requested by msaitoh in ticket #1296):
 	sys/dev/pci/pcidevs: revision 1.1195 via patch
 	sys/dev/pci/if_wm.c: revisions 1.290, 1.304 via patch
 	sys/dev/pci/if_wmvar.h: revision 1.20 via patch
 - Set the WM_F_ATTACHED flag if wm_attach() finished succesfully and
   check the flag in wm_detach(). It will avoid to panic in wm_detach().
   Fixes PR#49102.
 - Support DH89xxCC device.
 - Add extra delay for 82580 and newer devices except DH89XXCC SGMII device.
   Same as FreeBSD.


 To generate a diff of this commit:
 cvs rdiff -u -r1.227.2.17 -r1.227.2.18 src/sys/dev/pci/if_wm.c
 cvs rdiff -u -r1.12.10.5 -r1.12.10.6 src/sys/dev/pci/if_wmvar.h
 cvs rdiff -u -r1.1102.2.17 -r1.1102.2.18 src/sys/dev/pci/pcidevs

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49102 CVS commit: [netbsd-5] src/sys/dev/pci
Date: Thu, 30 Apr 2015 20:00:27 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Thu Apr 30 20:00:27 UTC 2015

 Modified Files:
 	src/sys/dev/pci [netbsd-5]: if_wm.c if_wmreg.h if_wmvar.h pcidevs

 Log Message:
 Pull up following revision(s) (requested by msaitoh in ticket #1962):
 	sys/dev/pci/if_wm.c: revisions 1.259-1.266, 1.269, 1.271, 1.273-1.274, 1.277-1.278, 1.282, 1.284-1.285, 1.287, 1.290, 1.294, 1.297-1.298, 1.300-1.301, 1.304-1.307, 1.310, 1.312-1.314, 1.316 via patch
 	sys/dev/pci/if_wmreg.c: revisions 1.54-1.57, 1.59-1.60, 1.62, 1.64-1.66 via patch
 	sys/dev/pci/if_wmvar.c: revisions 1.17, 1.20-1.21 via patch
 	sys/dev/pci/pcidevs: revisions 1.1172, 1.1195, 1.1201 via patch
 - Fix "MDIC write error" bug for 82574 and 82583. For those chips, the
   semaphore must be released after chip reset. Found and tested by
   Mark Davies.
 - Fix BMC related bugs.
 - Fix yet another NVM bank detect problem in wm(4). Use bank 0 if the detect
   function failed. It's the same as FreeBSD. Observed and tested with
   Asus P8P67 Deluxe motherboard and tested by jnemeth.
 - Add support for I354 DH89xxCC and some new I218 devices.
 - Fix definition of CTRL_GIO_M_DIS bit.
 - Insert completion barrier between register write and delay().
 - Bump max TX DMA size to avoid pathological condition with TSO. From dyoung.
 - Fix semaphore related bugs.
 - Call wm_set_pcie_completion_timeout() on I350, I354, I210 and I211, too.
   Same as FreeBSD and OpenBSD.
 - Drop PHPM_GO_LINK_D bit in WMREG_PHPM on some chips. From FreeBSD.
 -  Fix fiber link problem (PR#44776 and PR#30880).
 - WM_T_82545 is not 1000base-SX but 1000base-LX. Same as FreeBSD.
 - Set the WM_F_ATTACHED flag if wm_attach() finished succesfully and check
   the flag in wm_detach(). It will avoid to panic in wm_detach().
   Fixes PR#49102.
 - It's not required to print "failed to detect NVM bank" with
   aprint_error_dev(). Use DPRINTF(). Same as {Free,Open}BSD.
 - Fix a bug that the offset of alt MAC address is wrongly calculated to 0
   when alt MAC address function is really used. This bug does not appear
   as real bug if the same MAC address is written in the default location
   and alt MAC address's location.
 - Initialize some hardware bits for 8257[1234], 82583, 80003, ICH* and PCH*.
   Some of them are workaround code. From other *BSDs, Linux and documents.
 - Fix a bug that wm_sgmii_writereg() function doesn't pass the "val" argument
   to the I2CCMD register. Reported by Bernard Merindol in PR#49789.
 - Delete 82580ER related code. It was from FreeBSD and was removed
   in r203049.
 - Remove extra debug message.
 - Remove unused variable.
 - Remove a duplicated error message.
 - Cleanup comments.
 - Fix debug message.


 To generate a diff of this commit:
 cvs rdiff -u -r1.162.4.20 -r1.162.4.21 src/sys/dev/pci/if_wm.c
 cvs rdiff -u -r1.24.20.8 -r1.24.20.9 src/sys/dev/pci/if_wmreg.h
 cvs rdiff -u -r1.2.46.6 -r1.2.46.7 src/sys/dev/pci/if_wmvar.h
 cvs rdiff -u -r1.962.4.19 -r1.962.4.20 src/sys/dev/pci/pcidevs

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.