From owner-freebsd-stable@FreeBSD.ORG Wed Dec 21 17:05:33 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EEE116A41F for ; Wed, 21 Dec 2005 17:05:33 +0000 (GMT) (envelope-from kjetil.svenheim@gmail.com) Received: from pat.uio.no (pat.uio.no [129.240.130.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB9D543D49 for ; Wed, 21 Dec 2005 17:05:32 +0000 (GMT) (envelope-from kjetil.svenheim@gmail.com) Received: from mail-mx2.uio.no ([129.240.10.30]) by pat.uio.no with esmtp (Exim 4.43) id 1Ep7P9-0001I0-5K; Wed, 21 Dec 2005 18:05:31 +0100 Received: from grn-dhcp321.studby.uio.no ([129.240.113.71] helo=[10.0.0.2]) by mail-mx2.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.43) id 1Ep7P1-0001Qw-1G; Wed, 21 Dec 2005 18:05:23 +0100 Message-ID: <43A98B51.5000809@gmail.com> Date: Wed, 21 Dec 2005 18:05:21 +0100 From: Kjetil Svenheim User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-UiO-Spam-info: not spam, SpamAssassin (score=-0.316, required 12, autolearn=disabled, AWL -0.32) Subject: Kernel panic in FreeBSD 6.0 with Samsung SP2504C SATA harddrive X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2005 17:05:33 -0000 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 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: 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 AMD Features=0xe2500800,LM,3DNow+,3DNow> real memory = 1073676288 (1023 MB) avail memory = 1041780736 (993 MB) ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: 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: irq 3 on acpi0 pci_link1: on acpi0 pci_link2: irq 11 on acpi0 pci_link3: on acpi0 pci_link4: on acpi0 pci_link5: on acpi0 pci_link6: on acpi0 pci_link7: irq 3 on acpi0 pci_link8: irq 5 on acpi0 pci_link9: on acpi0 pci_link10: on acpi0 pci_link11: on acpi0 pci_link12: on acpi0 pci_link13: irq 5 on acpi0 pci_link14: irq 11 on acpi0 pci_link15: on acpi0 pci_link16: irq 16 on acpi0 pci_link17: irq 17 on acpi0 pci_link18: irq 18 on acpi0 pci_link19: irq 19 on acpi0 pci_link20: irq 16 on acpi0 pci_link21: irq 0 on acpi0 pci_link22: irq 0 on acpi0 pci_link23: irq 0 on acpi0 pci_link24: irq 0 on acpi0 pci_link25: irq 0 on acpi0 pci_link26: irq 0 on acpi0 pci_link27: irq 0 on acpi0 pci_link28: irq 0 on acpi0 pci_link29: irq 0 on acpi0 pci_link30: irq 0 on acpi0 pci_link31: 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: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: 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: 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: 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: 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: at device 4.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem 0xd0202000-0xd0202fff irq 21 at device 7.0 on pci0 ata2: on atapci1 ata3: on atapci1 atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem 0xd0201000-0xd0201fff irq 22 at device 8.0 on pci0 ata4: on atapci2 ata5: on atapci2 pcib1: 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: on pcib1 ral0: 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: at device 7.0 (no driver attached) pci5: at device 7.1 (no driver attached) nve0: port 0xb000-0xb007 mem 0xd0200000-0xd0200fff irq 23 at device 10.0 on pci0 nve0: Ethernet address 00:11:d8:de:d2:65 miibus0: on nve0 ukphy0: 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: at device 11.0 on pci0 pci4: on pcib2 pcib3: at device 12.0 on pci0 pci3: on pcib3 pcib4: at device 13.0 on pci0 pci2: on pcib4 pcib5: at device 14.0 on pci0 pci1: on pcib5 pci1: at device 0.0 (no driver attached) acpi_tz0: on acpi0 fdc0: 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: 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: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff,0xd0000-0xd3fff on isa0 sc0: 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: 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 at ata0-master UDMA100 acd0: DVDR at ata1-master UDMA33 ad8: 190782MB 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