Kjetil Svenheim
2005-Dec-21 09:05 UTC
Kernel panic in FreeBSD 6.0 with Samsung SP2504C SATA harddrive
Hello everyone! The other day I installed FreeBSD 6.0 on my AMD64 3200+ computer with an Asus A8N-E motherboard. The system has 1 IDE drive and 2 SATA drives. Installation went normally and everything looked fine, but at boot I got a kernel panic: ---------------------------------------------------------------- ad10: 238475MB <SAMSUNG SP2504C VT100-33> at ata5-master SATA150 Fatal trap 18: integer divide fault while in kernel mode instruction pointer = 0x20:0xc08100c3 stack pointer = 0x28:0xc0c20b60 frame pointer = 0x28:0xc0c20be8 code segment = base 0x0, limit 0xffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) trap number = 18 panic: integer device fault ---------------------------------------------------------------- After some testing I found that the problem was related specifically to that hard drive, I swapped controllers etc, but no change. If I removed that drive, FreeBSD would boot normally. I first tried on the AMD64 release, and after that I installed the i386 release, but there was no difference. (The included kernel panic message is from the i386 release). But fear not, I found a workaround! Turns out that if I change access mode on the hard drive in my bios from "Auto" to "Large", it boots fine. But just thought you should know about the issue :) I'll also include a dmesg of a normal boot of the system with the hard drive disconnected, I didnt discover the workaround until more recently: ----------------------------------------------------------------------------- Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC ACPI APIC Table: <Nvidia AWRDACPI> Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3200+ (2010.31-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x10ff0 Stepping = 0 Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> AMD Features=0xe2500800<SYSCALL,NX,MMX+,<b25>,LM,3DNow+,3DNow> real memory = 1073676288 (1023 MB) avail memory = 1041780736 (993 MB) ioapic0 <Version 1.1> irqs 0-23 on motherboard npx0: [FAST] npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <Nvidia AWRDACPI> on motherboard acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi0: Power Button (fixed) acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR pci_link0: <ACPI PCI Link LNK1> irq 3 on acpi0 pci_link1: <ACPI PCI Link LNK2> on acpi0 pci_link2: <ACPI PCI Link LNK3> irq 11 on acpi0 pci_link3: <ACPI PCI Link LNK4> on acpi0 pci_link4: <ACPI PCI Link LNK5> on acpi0 pci_link5: <ACPI PCI Link LUBA> on acpi0 pci_link6: <ACPI PCI Link LUBB> on acpi0 pci_link7: <ACPI PCI Link LMAC> irq 3 on acpi0 pci_link8: <ACPI PCI Link LACI> irq 5 on acpi0 pci_link9: <ACPI PCI Link LMCI> on acpi0 pci_link10: <ACPI PCI Link LSMB> on acpi0 pci_link11: <ACPI PCI Link LUB2> on acpi0 pci_link12: <ACPI PCI Link LIDE> on acpi0 pci_link13: <ACPI PCI Link LSID> irq 5 on acpi0 pci_link14: <ACPI PCI Link LFID> irq 11 on acpi0 pci_link15: <ACPI PCI Link LPCA> on acpi0 pci_link16: <ACPI PCI Link APC1> irq 16 on acpi0 pci_link17: <ACPI PCI Link APC2> irq 17 on acpi0 pci_link18: <ACPI PCI Link APC3> irq 18 on acpi0 pci_link19: <ACPI PCI Link APC4> irq 19 on acpi0 pci_link20: <ACPI PCI Link APC5> irq 16 on acpi0 pci_link21: <ACPI PCI Link APCF> irq 0 on acpi0 pci_link22: <ACPI PCI Link APCG> irq 0 on acpi0 pci_link23: <ACPI PCI Link APCH> irq 0 on acpi0 pci_link24: <ACPI PCI Link APCJ> irq 0 on acpi0 pci_link25: <ACPI PCI Link APCK> irq 0 on acpi0 pci_link26: <ACPI PCI Link APCS> irq 0 on acpi0 pci_link27: <ACPI PCI Link APCL> irq 0 on acpi0 pci_link28: <ACPI PCI Link APCZ> irq 0 on acpi0 pci_link29: <ACPI PCI Link APSI> irq 0 on acpi0 pci_link30: <ACPI PCI Link APSJ> irq 0 on acpi0 pci_link31: <ACPI PCI Link APCP> irq 0 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: <ACPI CPU> on acpi0 acpi_throttle0: <ACPI CPU Throttling> on cpu0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pci0: <memory> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 1.0 on pci0 isa0: <ISA bus> on isab0 pci0: <serial bus, SMBus> at device 1.1 (no driver attached) ohci0: <OHCI (generic) USB controller> mem 0xd0204000-0xd0204fff at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: <OHCI (generic) USB controller> on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 10 ports with 10 removable, self powered ehci0: <EHCI (generic) USB 2.0 controller> mem 0xd0205000-0xd02050ff at device 2.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 4 ports each: usb0 usb1: <EHCI (generic) USB 2.0 controller> on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 10 ports with 10 removable, self powered pci0: <multimedia, audio> at device 4.0 (no driver attached) atapci0: <nVidia nForce4 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 atapci1: <nVidia nForce4 SATA150 controller> port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem 0xd0202000-0xd0202fff irq 21 at device 7.0 on pci0 ata2: <ATA channel 0> on atapci1 ata3: <ATA channel 1> on atapci1 atapci2: <nVidia nForce4 SATA150 controller> port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem 0xd0201000-0xd0201fff irq 22 at device 8.0 on pci0 ata4: <ATA channel 0> on atapci2 ata5: <ATA channel 1> on atapci2 pcib1: <ACPI PCI-PCI bridge> at device 9.0 on pci0 pci_link17: BIOS IRQ 21 for 0.7.INTA is invalid pci_link18: BIOS IRQ 22 for 0.8.INTA is invalid pci_link18: BIOS IRQ 23 for 0.10.INTA is invalid pci5: <ACPI PCI bus> on pcib1 ral0: <Ralink Technology RT2500> mem 0xd0000000-0xd0001fff irq 16 at device 6.0 on pci5 ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525 ral0: Ethernet address: 00:08:a1:85:59:fb pci5: <multimedia, video> at device 7.0 (no driver attached) pci5: <multimedia> at device 7.1 (no driver attached) nve0: <NVIDIA nForce MCP9 Networking Adapter> port 0xb000-0xb007 mem 0xd0200000-0xd0200fff irq 23 at device 10.0 on pci0 nve0: Ethernet address 00:11:d8:de:d2:65 miibus0: <MII bus> on nve0 ukphy0: <Generic IEEE 802.3u media interface> on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto nve0: Ethernet address: 00:11:d8:de:d2:65 nve0: [GIANT-LOCKED] pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0 pci4: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> at device 12.0 on pci0 pci3: <ACPI PCI bus> on pcib3 pcib4: <ACPI PCI-PCI bridge> at device 13.0 on pci0 pci2: <ACPI PCI bus> on pcib4 pcib5: <ACPI PCI-PCI bridge> at device 14.0 on pci0 pci1: <ACPI PCI bus> on pcib5 pci1: <display, VGA> at device 0.0 (no driver attached) acpi_tz0: <Thermal Zone> on acpi0 fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xcefff,0xd0000-0xd3fff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/18.00, addr 2, iclass 3/1 ums0: 6 buttons and Z dir. ukbd0: Compaq Compaq Internet Keyboard, rev 1.10/1.00, addr 3, iclass 3/1 kbd1 at ukbd0 uhid0: Compaq Compaq Internet Keyboard, rev 1.10/1.00, addr 3, iclass 3/1 uhid0: no report descriptor device_attach: uhid0 attach returned 6 uhid0: Formosa Industrial Computin Formosa RC102-809 USB Remot, rev 1.10/1.02, addr 4, iclass 3/1 Timecounter "TSC" frequency 2010313782 Hz quality 800 Timecounters tick every 1.000 msec ad0: 190782MB <Seagate ST3200822A 3.01> at ata0-master UDMA100 acd0: DVDR <NEC DVD RW ND-3540A/1.01> at ata1-master UDMA33 ad8: 190782MB <Seagate ST3200822AS 3.01> at ata4-master SATA150 Trying to mount root from ufs:/dev/ad0s1a nve0: device timeout (6) nve0: link state changed to DOWN nve0: link state changed to UP nve0: device timeout (6) nve0: link state changed to DOWN nve0: link state changed to UP nve0: device timeout (6) nve0: link state changed to DOWN nve0: link state changed to UP ------------------------------------------------------------------------------ Thanks, Kjetil Svenheim