>Synopsis: Panic on shutdown (hardware raid)
>Category: kernel
>Environment:
System : OpenBSD 5.8
Details : OpenBSD 5.8 (GENERIC.MP) #0: Tue Nov 10 12:19:45 CET 2015
[email protected]:/binpatchng/work-binpatch58-i386/src/sys/arch/i386/compile/GENERIC.MP
Architecture: OpenBSD.i386
Machine : i386
>Description:
Whenever I want to shutdown/reboot this machine it panics.
It crashed when I wanted to reboot after finishing the update from 5.7
to 5.8 and still does the same with 5.8:
syncing disks... done
uvm_fault(0xdbecaea4, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at ahd_pause+0x2c: call *0x24(%eax)
ahd_pause(d6168000,c0,f58d3bac,d03bb915,d04f9766) at ahd_pause+0x2c
ahd_reset(d6168000,0,0,d0919880,d61379c0,d6149000,f58d3c0c,6,d6168000) at ahd_r
eset+0x26
ahd_shutdown(d6168000,6,0,1,80013000) at ahd_shutdown+0x36
ahd_activate(d6168000,6,0,0,0) at ahd_activate+0x30
config_suspend(d6168000,6,f58d3c7c,d0596582,0) at config_suspend+0x2f
config_activate_children(d605e900,6,f58d3cfc,2,d613d000) at config_activate_chi
ldren+0x45
pciactivate(d605e900,6,0,f077,0) at pciactivate+0x70
config_suspend(d605e900,6,0,d057461c,d613d000) at config_suspend+0x2f
config_activate_children(d605e880,6,0,da05c888,400) at config_activate_children
+0x45
config_suspend(d605e880,6,6,da05c6c8,5ef0fe60) at config_suspend+0x2f
ddb{0}> trace
ahd_pause(d6168000,c0,f58d3bac,d03bb915,d04f9766) at ahd_pause+0x2c
ahd_reset(d6168000,0,0,d0919880,d61379c0,d6149000,f58d3c0c,6,d6168000) at ahd_r
eset+0x26
ahd_shutdown(d6168000,6,0,1,80013000) at ahd_shutdown+0x36
ahd_activate(d6168000,6,0,0,0) at ahd_activate+0x30
config_suspend(d6168000,6,f58d3c7c,d0596582,0) at config_suspend+0x2f
config_activate_children(d605e900,6,f58d3cfc,2,d613d000) at config_activate_chi
ldren+0x45
pciactivate(d605e900,6,0,f077,0) at pciactivate+0x70
config_suspend(d605e900,6,0,d057461c,d613d000) at config_suspend+0x2f
config_activate_children(d605e880,6,0,da05c888,400) at config_activate_children
+0x45
config_suspend(d605e880,6,6,da05c6c8,5ef0fe60) at config_suspend+0x2f
config_activate_children(d605e400,6,0,6,f58d3df4) at config_activate_children+0
x45
pciactivate(d605e400,6,f58d3dfc,d0440385,0) at pciactivate+0x70
config_suspend(d605e400,6,f58d3e3c,d04407a4,0) at config_suspend+0x2f
config_activate_children(d6112080,6,f58d3e8c,d041c818,0) at config_activate_chi
ldren+0x45
config_suspend(d6112080,6,40,15,60c07df) at config_suspend+0x2f
config_suspend_all(6,d6139000,f58d3eec,d03af58a,f58d3ecc) at config_suspend_all
+0x67
boot(0,cf7c3868,0,0,1) at boot+0x3d
reboot(0,0,1000,dbecaea4,6f) at reboot+0x26
sys_reboot(dbe6ed14,f58d3f60,f58d3f80,d05693ba,dbe6ed14) at sys_reboot+0x66
syscall() at syscall+0x329
--- syscall (number 881461460) ---
0x7:
ddb{0}> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
* 3574 1 3574 0 7 0x3 reboot
8672 0 0 0 2 0x14200 zerothread
23171 0 0 0 3 0x14200 aiodoned aiodoned
18383 0 0 0 3 0x14200 syncer update
6717 0 0 0 3 0x14200 cleaner cleaner
3565 0 0 0 3 0x14200 reaper reaper
12806 0 0 0 3 0x14200 pgdaemon pagedaemon
10307 0 0 0 3 0x14200 bored crypto
24954 0 0 0 3 0x14200 pftm pfpurge
13966 0 0 0 3 0x14200 usbtsk usbtask
28828 0 0 0 3 0x14200 usbatsk usbatsk
14426 0 0 0 3 0x14200 bored sensors
30275 0 0 0 3 0x40014200 acpi0 acpi0
9544 0 0 0 7 0x40014200 idle3
16603 0 0 0 7 0x40014200 idle2
29267 0 0 0 7 0x40014200 idle1
11537 0 0 0 3 0x14200 bored softnet
26778 0 0 0 3 0x14200 bored systqmp
16024 0 0 0 3 0x14200 bored systq
23284 0 0 0 3 0x40014200 idle0
9066 0 0 0 3 0x14200 kmalloc kmthread
1 0 1 0 3 0x82 wait init
0 -1 0 0 3 0x10200 scheduler swapper
ddb{0}> show registers
ds 0x10
es 0x10
fs 0x20
gs 0
edi 0xd6168000 end+0x5516b78
esi 0xd6168000 end+0x5516b78
ebp 0xf58d3b6c
ebx 0xd6168000 end+0x5516b78
edx 0
ecx 0xd0b2c138 timeout_mutex
eax 0
eip 0xd021bc6c ahd_pause+0x2c
cs 0x8
eflags 0x10286
esp 0xf58d3b44
ss 0x10
ahd_pause+0x2c: call *0x24(%eax)
>Fix:
dmesg:
OpenBSD 5.8 (GENERIC.MP) #0: Tue Nov 10 12:19:45 CET 2015
[email protected]:/binpatchng/work-binpatch58-i386/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(TM) MP CPU 2.70GHz ("GenuineIntel" 686-class) 2.70 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
real mem = 4227284992 (4031MB)
avail mem = 4130017280 (3938MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 08/24/05, BIOS32 rev. 0 @ 0xfd830, SMBIOS rev. 2.31 @
0xefc60 (74 entries)
bios0: vendor FSC version "4.06 Rev. 1.12.1411" date 08/24/2005
bios0: FUJITSU SIEMENS PRIMERGY RX600
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S5
acpi0: tables DSDT FACP SPCR SPCR APIC BOOT
acpi0: wakeup devices PCI0(S1) USB0(S1) PCI1(S1) PCI2(S1) PCI3(S1) PCI4(S1)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(TM) MP CPU 2.70GHz ("GenuineIntel" 686-class) 2.70 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
cpu2 at mainbus0: apid 3 (application processor)
cpu2: Intel(R) Xeon(TM) MP CPU 2.70GHz ("GenuineIntel" 686-class) 2.70 GHz
cpu2:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
cpu3 at mainbus0: apid 1 (application processor)
cpu3: Intel(R) Xeon(TM) MP CPU 2.70GHz ("GenuineIntel" 686-class) 2.70 GHz
cpu3:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,CNXT-ID,xTPR,PERF
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 11, 16 pins
ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 11, 16 pins
ioapic2 at mainbus0: apid 6 pa 0xfec02000, version 11, 16 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PCI1)
acpiprt2 at acpi0: bus 2 (PCI2)
acpiprt3 at acpi0: bus 3 (PCI3)
acpiprt4 at acpi0: bus 4 (PCI4)
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
acpicpu2 at acpi0: C1(@1 halt!)
acpicpu3 at acpi0: C1(@1 halt!)
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x2600 0xdc000/0x4000!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20-HE Host" rev 0x33
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20-HE Host" rev 0x00
pci1 at pchb1 bus 1
bge0 at pci1 dev 6 function 0 "Broadcom BCM5704C" rev 0x03, BCM5704 A3
(0x2003): apic 6 int 4, address 00:30:05:71:15:1e
brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge1 at pci1 dev 6 function 1 "Broadcom BCM5704C" rev 0x03, BCM5704 A3
(0x2003): apic 6 int 5, address 00:30:05:71:15:1f
brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
pchb2 at pci0 dev 0 function 2 "ServerWorks CNB20-HE Host" rev 0x00
pci2 at pchb2 bus 3
ami0 at pci2 dev 1 function 0 "Symbios Logic MegaRAID" rev 0x01: apic 5 int 2
ami0: LSI 518, 64b/lhc, FW 1F42, BIOS vG302, 128MB RAM
ami0: 2 channels, 0 FC loops, 1 logical drives
scsibus1 at ami0: 40 targets
sd0 at scsibus1 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
sd0: 559200MB, 512 bytes/sector, 1145241600 sectors
scsibus2 at ami0: 16 targets
safte0 at scsibus2 targ 8 lun 0: <SDR, GEM318, 0> SCSI2 3/processor fixed
scsibus3 at ami0: 16 targets
safte1 at scsibus3 targ 8 lun 0: <SDR, GEM318, 0> SCSI2 3/processor fixed
ahd0 at pci2 dev 2 function 0 "Adaptec AIC-7902 U320" rev 0x03ahd0: unable to
map registers
ahd1 at pci2 dev 2 function 1 "Adaptec AIC-7902 U320" rev 0x03ahd1: unable to
map registers
vendor "Siemens", unknown product 0x007b (class undefined unknown subclass
0x00, rev 0x00) at pci0 dev 4 function 0 not configured
vendor "Siemens", unknown product 0x007c (class undefined unknown subclass
0x00, rev 0x00) at pci0 dev 4 function 1 not configured
vendor "Siemens", unknown product 0x007d (class undefined unknown subclass
0x00, rev 0x00) at pci0 dev 4 function 2 not configured
vga1 at pci0 dev 5 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
piixpm0 at pci0 dev 15 function 0 "ServerWorks CSB6" rev 0xa0: SMBus disabled
pciide0 at pci0 dev 15 function 1 "ServerWorks CSB6 RAID/IDE" rev 0xa0: DMA
atapiscsi0 at pciide0 channel 1 drive 0
scsibus4 at atapiscsi0: 2 targets
cd0 at scsibus4 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8082N, 0002> ATAPI 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 "ServerWorks CSB6 USB" rev 0x05: apic 4 int 9,
version 1.0, legacy support
pcib0 at pci0 dev 15 function 3 "ServerWorks GCLE-2 Host" rev 0x00
pchb3 at pci0 dev 16 function 0 "ServerWorks CIOB-X2 PCIX" rev 0x05
pchb4 at pci0 dev 16 function 2 "ServerWorks CIOB-X2 PCIX" rev 0x05
pci3 at pchb4 bus 2
pchb5 at pci0 dev 17 function 0 "ServerWorks CIOB-X2 PCIX" rev 0x05
pchb6 at pci0 dev 17 function 2 "ServerWorks CIOB-X2 PCIX" rev 0x05
pci4 at pchb6 bus 4
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "ServerWorks OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vscsi0 at root
scsibus5 at vscsi0: 256 targets
softraid0 at root
scsibus6 at softraid0: 256 targets
root on sd0a (1358336c97c12781.a) swap on sd0b dump on sd0b
usbdevs:
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000),
ServerWorks(0x1166), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered