From owner-freebsd-acpi@FreeBSD.ORG Thu Nov 8 12:43:15 2007 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB4E616A419 for ; Thu, 8 Nov 2007 12:43:15 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id 6984C13C481 for ; Thu, 8 Nov 2007 12:43:15 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by postfix2-g20.free.fr (Postfix) with ESMTP id F2AC91E62E71 for ; Thu, 8 Nov 2007 11:14:20 +0100 (CET) Received: from smtp1-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp1-g19.free.fr (Postfix) with ESMTP id AC1661AB2E2 for ; Thu, 8 Nov 2007 13:15:06 +0100 (CET) Received: from boleskine.patpro.net (boleskine.patpro.net [82.235.12.223]) by smtp1-g19.free.fr (Postfix) with ESMTP id 7527A1AB2DA for ; Thu, 8 Nov 2007 13:15:06 +0100 (CET) Received: from [192.168.0.2] (unknown [192.168.0.2]) by boleskine.patpro.net (Postfix) with ESMTP id 1A7CB1CC27 for ; Thu, 8 Nov 2007 14:11:19 +0100 (CET) Message-Id: From: Patrick Proniewski To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Thu, 8 Nov 2007 13:15:05 +0100 X-Mailer: Apple Mail (2.912) Subject: possible incompatibility between ACPI and a wireless PCI card X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 12:43:16 -0000 Hello, The problem below was first exposed to freebsd-hardware, but no solution was found. It was suggested it might be related to ACPI. I have a strange problem with a x86 freeBSD 6.x install: - TYAN Tiger i7520SD motherboard - BIOS up to date. - 2 Intel Xeon LV Sossaman 1,66 GHz - 2 Western Digital WD2500YS hard drives (scanned, tested, no problem so far) - 1GB RAM 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 (ie. when the wifi network is supposed to be idle). The interval between 2 crashes can be up to 2 weeks. Symptom: the PC crashes and shows an "invalid partition" message when I try to reboot it. The first time, I've spent 1 day to reinstall and restore my various files/settings/softwares. The second time, 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. 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 ad4, reboot, shutdown, plug ad4 back, 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. I've tried to disable ACPI by setting 'hint.acpi.0.disabled="1"' in / boot/device.hints , but FreeBSD won't boot. Any help would be greatly appreciated. regards, 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 0xc512b000 2000 pflog.ko 5 1 0xc5137000 2a000 pf.ko 6 1 0xc531f000 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-p7 #0: Thu Aug 2 12:02:59 CEST 2007 root@boleskine.patpro.net:/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 < FPU ,VME ,DE ,PSE ,TSC ,MSR ,PAE ,MCE ,CX8 ,APIC ,SEP ,MTRR ,PGE ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> 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 pci3 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 pci3 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 #3 Launched! SMP: AP CPU #2 Launched! Trying to mount root from ufs:/dev/ad4s1a