From owner-freebsd-acpi@FreeBSD.ORG Sat Dec 19 16:34:42 2009 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 31E1A1065670 for ; Sat, 19 Dec 2009 16:34:42 +0000 (UTC) (envelope-from cengztr@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id AD70F8FC15 for ; Sat, 19 Dec 2009 16:34:41 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 19so1409474fgg.13 for ; Sat, 19 Dec 2009 08:34:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=4qBJBGWjVKJyDy1wVFqcPKn2bRi8N7Vy1P70QPSM11M=; b=wyrv5b3aZKCptkhFtR14o0MR5Ibv7dy/ltpnwkQH6MfP6fe2Gqciq/Cd9uPlsLY5x7 RaoM0+gDy83uxRXqxW9S51V/sIBTt2c905ZFaR4/NtdWP6XgSaIRVo+yXQqFLCjvtrp4 SSUWvQyqEcn19OYeNNKazzFshHVEFVhPNWCfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=j4UnT86dHEYj7q/GU77qceNi+9sAzX/mf/yhiAOmi4GyrTS1eebPpdp90LRu0In6x9 0EUGxhmLzoZVkbRXCHqTIVd5LDKSSG3g5PiMeJLHzaOaFhtWwH2D1ZSUDc/Mva6/Wsq/ w+vl2RMEtStwqP8pEeL3WdBPTxz8mnv+6wwNU= MIME-Version: 1.0 Received: by 10.86.88.20 with SMTP id l20mr6822295fgb.14.1261236866595; Sat, 19 Dec 2009 07:34:26 -0800 (PST) Date: Sat, 19 Dec 2009 16:34:26 +0100 Message-ID: <7fd903a60912190734p9d78c2btebaebad70fa5b3c6@mail.gmail.com> From: Cengiz Tas To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: atheros wireless adapter in freebsd 8 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: Sat, 19 Dec 2009 16:34:42 -0000 hi ... i'm am using linux since 1994. the last few years i used archlinux although i allways thought about giving freebsd a try. so i did when freebsd 8 was released. unfortunately i can' get my atheros wireless adapter working in freebsd due to acpi problems i guess. in linux it's working fine. the wireless adapter is part of a fujitsu siemens u9200 notebook. some linux outputs: lspci -v ---------- 06:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 04) Subsystem: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01) Flags: bus master, fast devsel, latency 0, IRQ 18 Memory at fa000000 (64-bit, non-prefetchable) [size=64K] Capabilities: [40] Power Management version 2 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [60] Express Legacy Endpoint, MSI 00 Capabilities: [90] MSI-X: Enable- Count=1 Masked- Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel Kernel driver in use: ath5k Kernel modules: ath5k dmesg | grep -i ath --------------------------- ath5k 0000:06:00.0: enabling device (0104 -> 0106) ath5k 0000:06:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 ath5k 0000:06:00.0: setting latency timer to 64 ath5k 0000:06:00.0: registered as 'phy0' ath: EEPROM regdomain: 0x30 ath: EEPROM indicates we should expect a direct regpair map ath: Country alpha2 being used: AM ath: Regpair used: 0x30 ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70) i have read the very well written freebsd handbook and especially the acpi part. but the hints didn't help me getting my wireless adapter working. here are the necessary outputs from freebsd: pciconf -lv --------------- ath0@pci0:4:0:0: class=0x020000 card=0x3067168c chip=0x001c168c rev=0x04 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'HDAUDIOFUNC_01&VEN_1095&DEV_1392&SUBSYS_10280242&REV_1000 (USBVID_147E&PID_20165&B71A446&0&1)' class = network subclass = ethernet dmesg | grep -a ath ---------------------------- ath0: at device 0.0 on pci4 pcib2: ath0 requested unsupported memory range 0-0xffffffff (decoding 0-0, 0-0) ath0: 0x10000 bytes of rid 0x10 res 3 failed (0, 0xffffffff). ath0: cannot map register space device_attach: ath0 attach returned 6 sysctl hw.aci ------------------- hw.acpi.supported_sleep_state: S3 S4 S5 hw.acpi.power_button_state: S5 hw.acpi.sleep_button_state: S3 hw.acpi.lid_switch_state: NONE hw.acpi.standby_state: NONE hw.acpi.suspend_state: S3 hw.acpi.sleep_delay: 1 hw.acpi.s4bios: 0 hw.acpi.verbose: 1 hw.acpi.disable_on_reboot: 0 hw.acpi.handle_reboot: 0 hw.acpi.reset_video: 0 hw.acpi.acline: 1 hw.acpi.battery.life: 100 hw.acpi.battery.time: -1 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 26.8C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: -1 hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 127.0C hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: -1 hw.acpi.thermal.tz0._TC2: -1 hw.acpi.thermal.tz0._TSP: -1 hw.acpi.thermal.tz1.temperature: 48.0C hw.acpi.thermal.tz1.active: -1 hw.acpi.thermal.tz1.passive_cooling: 1 hw.acpi.thermal.tz1.thermal_flags: 0 hw.acpi.thermal.tz1._PSV: 95.0C hw.acpi.thermal.tz1._HOT: -1 hw.acpi.thermal.tz1._CRT: 127.0C hw.acpi.thermal.tz1._ACx: 95.0C 55.0C -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz1._TC1: 0 hw.acpi.thermal.tz1._TC2: 10 hw.acpi.thermal.tz1._TSP: 2 hw.acpi.cpu.cx_lowest: C1 adding hw.acpi.osname="Windows 2001", "Window 2006" or "Linux" to loader.conf doesn't change anything. kenv confirmed the parameter's new value after reboot. sysctl doesn't get this information. if necessary i could upload my asl dump. is there any site i could use for dmesg respectively asl dump files? cheers, cengiz