OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
scsi_done() called twice with gdt driver in 4.7

From: Federico Giannici (giannicineomedia.it)
Date: Sun Aug 08 2010 - 11:05:14 CDT


Hi.
We are upgrading all our PCs from 4.4 or 4.5 to 4.7.
No problem at all with the first PCs, but we found a problem with a PC
which have a gdt SCSI driver: every time we shutdown the machine, just
after the usual "syncing disks... done", it crashes because "scsi_done()
called twice"!

No crash data is saved on the disk so here are the photos of the crash
and the "trace" and "ps" output:

http://www.neomedia.it/tmp/crash-47-a.jpg
http://www.neomedia.it/tmp/crash-47-b.jpg

Below is the dmesg of that machine.
As you can see it's an amd64 with the official 4.7 GENERIC kernel.
Tried a MP GENERIC kernel too, but with the same results.
Previously there was no problem with the 4.4 version of the OS.

Is it a known problem?
Is there something I can do to fix it?

Thanks.

OpenBSD 4.7 (GENERIC) #112: Wed Mar 17 20:43:49 MDT 2010
     deraadtamd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1072365568 (1022MB)
avail mem = 1032409088 (984MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 0xf0530 (68 entries)
bios0: vendor American Megatrends Inc. version "1017.002" date 11/14/2005
bios0: ASUSTeK Computer Inc. A8V Deluxe
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC OEMB
acpi0: wakeup devices PCI0(S4) PS2K(S4) PS2M(S4) UAR2(S4) UAR1(S4)
AC97(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) EHCI(S4) PWRB(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 Processor 3500+, 2203.24 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 113 detected and fixed
cpu0: AMD erratum 89 present, BIOS upgrade may be required
cpu0: apic clock running at 200MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 3, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "VIA K8HTB Host" rev 0x00
agp at pchb0 not configured
pchb1 at pci0 dev 0 function 1 "VIA K8HTB Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8HTB Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8HTB Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8HTB Host" rev 0x00
pchb5 at pci0 dev 0 function 7 "VIA K8HTB Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon VE" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at radeondrm0
"VIA VT6306 FireWire" rev 0x80 at pci0 dev 7 function 0 not configured
skc0 at pci0 dev 10 function 0 "Marvell Yukon 88E8001/8003/8010" rev
0x13, Yukon Lite (0x9): apic 1 int 17 (irq 10)
sk0 at skc0 port A: address 00:11:d8:8d:9f:c8
eephy0 at sk0 phy 0: 88E1011 Gigabit PHY, rev. 5
gdt0 at pci0 dev 13 function 0 "Intel GDT RAID" rev 0x00: apic 1 int 18
(irq 5) dpmem eff00000 2-bus 1 cache device
gdt0: ver 222, cache on, strategy 2, writeback on, blksz 32
gdt0: raw feat 1 cache feat 101
scsibus0 at gdt0: 35 targets
sd0 at scsibus0 targ 0 lun 0: <ICP, Host drive #00, > SCSI2 0/direct fixed
sd0: 139941MB, 512 bytes/sec, 286599600 sec total
scsibus1 at gdt0: 16 targets, initiator 7
scsibus2 at gdt0: 16 targets, initiator 7
pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA
pciide0: using apic 1 int 20 (irq 10) for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 configured to compatibility, channel 1 configured to compatibility
pciide1: channel 0 disabled (no drives)
atapiscsi0 at pciide1 channel 1 drive 1
scsibus3 at atapiscsi0: 2 targets
cd0 at scsibus3 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8163B, 0L23> ATAPI
5/cdrom removable
cd0(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: apic 1 int
21 (irq 11)
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: apic 1 int
21 (irq 11)
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: apic 1 int
21 (irq 10)
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: apic 1 int
21 (irq 10)
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: apic 1 int 21
(irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
lm1 at iic0 addr 0x2f: W83791SD
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM ECC PC3200CL3.0
spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM ECC PC3200CL3.0
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x60: apic 1 int
22 (irq 5)
ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
audio0 at auvia0
pchb6 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "VIA UHCI root hub" rev 1.00/1.00 addr 1
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: W83627THF rev 0x84
lm2 at wbsio0 port 0x290/8: W83627THF
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
root on sd0a swap on sd0b dump on sd0b

--
___________________________________________________
     __
    |- giannicineomedia.it
    |ederico Giannici http://www.neomedia.it
___________________________________________________