From owner-freebsd-hardware@FreeBSD.ORG Wed Jun 27 19:39:30 2007 Return-Path: X-Original-To: freebsd-hardware@freebsd.org Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F29416A400 for ; Wed, 27 Jun 2007 19:39:30 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id DDB3913C46A for ; Wed, 27 Jun 2007 19:39:29 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by postfix1-g20.free.fr (Postfix) with ESMTP id 5FB9B146E3FD for ; Wed, 27 Jun 2007 21:16:52 +0200 (CEST) Received: from [192.168.0.4] (boleskine.patpro.net [82.235.12.223]) by smtp1-g19.free.fr (Postfix) with ESMTP id ED39C1AB3C0 for ; Wed, 27 Jun 2007 21:16:50 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <7D3EA7E7-CF83-4385-A8FC-611B886CC7E3@patpro.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-hardware@freebsd.org From: Patrick Proniewski Date: Wed, 27 Jun 2007 21:16:49 +0200 X-Mailer: Apple Mail (2.752.2) Subject: hardware/driver incompatibility ? X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2007 19:39:30 -0000 Hello, Since the end of 2006, I'm running a FreeBSD 6.x on this box: - TYAN Tiger i7520SD motherboard - 2 Intel Xeon LV Sossaman 1,66 GHz - 2 Western Digital WD2500YS hard drives - 1GB RAM Two weeks ago, I've added a DLink DWL-G520 Wifi PCI card (ath chipset), and turned this FreeBSD box into a wifi access point. Then, the PC started to crash from time to time, always when I'm not at home. Today, I've had the 2nd crash. Symptom: the PC crashes and shows an "invalid partition" message when I try to reboot it. The first time, after playing around with the restore tools of the install CD, I've erased the HD, reinstalled, then try to boot... only to read on the screen the infamous "invalid partition" message. I've taken a look into the BIOS, changing boot sequence, saving, re-changing, re-saving. The next reboot was an happy ending. Then I've spent 1 day to restore my various files/ settings/softwares. Today, I was a little bit more lucky, when I came back, the PC was stuck, and the screen read: ad4: FAILURE - device detached subdisk4: detached g_vfs_done():ad4s1f[WRITE(offset=84513456128, length=16384)]error = 6 ad4: det_avcfhse_dd g_vfs_done():ad4s1f... g_vfs_done():ad4s1a... ... ad4 is my boot HD (the other one, ad6, is a backup drive, non-bootable) I've rebooted, discovering ad4 was nowhere to be found (boot sequence was slow, and the BIOS eventually disabled the first HD). I've rebooted again, to enter the bios: first disk still missing shutdown, unplug the 1st HD, reboot, shutdown, plug the 1st HD, reboot -> victory. FreeBSD booted fine, and fsck did its job. Now the box is up & running. No problem so far. I've removed the Wifi PCI card, and removed wifi related settings in rc.conf and loader.conf, just in case. So my question is: is there any known incompatibility between ath related kernel modules and any of my existing hardware, or has my HD suddenly decided to die ? Is there any way I could test my HD to detect/prevent failure ? Any lead/idea is welcome, thanks patpro -- atheros related dmesg lines: ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath0: mem 0xd8120000-0xd812ffff irq 21 at device 5.0 on pci6 ath0: Ethernet address: 00:19:5b:ca:31:3a ath0: mac 7.9 phy 4.5 radio 5.6 current /boot/loader.conf: (wifi commented out after today's fix) cpufreq_load = "YES" #if_ath_load="YES" #wlan_wep_load="YES" #wlan_tkip_load="YES" #wlan_ccmp_load="YES" #wlan_xauth_load="YES" #wlan_acl_load="YES" current kldstat: Id Refs Address Size Name 1 8 0xc0400000 3ae6d4 kernel 2 1 0xc07af000 a9d4 cpufreq.ko 3 1 0xc07ba000 59e80 acpi.ko 4 1 0xc5155000 2000 pflog.ko 5 1 0xc515f000 2a000 pf.ko 6 1 0xc52d3000 2000 green_saver.ko current dmesg: Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE-p5 #0: Sat Jun 16 15:51:22 CEST 2007 root@xxxxxxxxxxxxx:/usr/obj/usr/src/sys/PATPRO-20061208 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 000 @ 1.66GHz (1666.79-MHz 686- class CPU) Origin = "GenuineIntel" Id = 0x6e8 Stepping = 8 Features=0xbfebfbff Features2=0xc1a9,> AMD Features=0x100000 Cores per package: 2 real memory = 1072824320 (1023 MB) avail memory = 1040695296 (992 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 cpu2: on acpi0 est2: on cpu2 p4tcc2: on cpu2 cpu3: on acpi0 est3: on cpu3 p4tcc3: on cpu3 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 1.0 (no driver attached) pcib1: irq 16 at device 2.0 on pci0 pci1: on pcib1 pcib2: irq 16 at device 4.0 on pci0 pci2: on pcib2 pcib3: irq 16 at device 5.0 on pci0 pci3: on pcib3 em0: port 0x2000-0x201f mem 0xd8020000-0xd803ffff,0xd8000000-0xd801ffff irq 16 at device 0.0 on pc i3 em0: Ethernet address: 00:e0:81:42:e3:aa em1: port 0x2020-0x203f mem 0xd8060000-0xd807ffff,0xd8040000-0xd805ffff irq 17 at device 0.1 on pc i3 em1: Ethernet address: 00:e0:81:42:e3:ab pcib4: irq 16 at device 6.0 on pci0 pci4: on pcib4 pcib5: at device 28.0 on pci0 pci5: on pcib5 uhci0: port 0x1400-0x141f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1420-0x143f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: at device 29.4 (no driver attached) pci0: at device 29.5 (no driver attached) ehci0: mem 0xd8402400-0xd84027ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 2 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 4 ports with 4 removable, self powered pcib6: at device 30.0 on pci0 pci6: on pcib6 fxp0: port 0x3400-0x343f mem 0xd8130000-0xd8130fff,0xd8100000-0xd811ffff irq 16 at device 0.0 on pci6 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:e0:81:42:e3:69 pci6: at device 12.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1460-0x146f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0xf4a8-0xf4af, 0xf49c-0xf49f,0xf4a0-0xf4a7,0xf498-0xf49b,0xf470-0xf47f irq 18 at device 31.2 on pci0 ata2: on atapci1 ata3: on atapci1 ichsmb0: port 0x1440-0x145f irq 17 at device 31.3 on pci0 ichsmb0: [GIANT-LOCKED] smbus0: on ichsmb0 smb0: on smbus0 acpi_button0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc8fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec acd0: CDROM at ata1-master PIO4 ad4: 239372MB at ata2-master SATA150 ad6: 239372MB at ata3-master SATA150 SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #3 Launched! Trying to mount root from ufs:/dev/ad4s1a