From owner-freebsd-current@FreeBSD.ORG Mon Jun 18 13:35:12 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F324716A41F for ; Mon, 18 Jun 2007 13:35:11 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from munchkin.clue.co.za (munchkin.clue.co.za [66.219.59.160]) by mx1.freebsd.org (Postfix) with ESMTP id BCBDC13C45A for ; Mon, 18 Jun 2007 13:35:11 +0000 (UTC) (envelope-from ianf@clue.co.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=20070313; d=clue.co.za; h=Received:Received:Received:To:cc:From:Subject:In-Reply-To:X-Attribution:Date:Message-Id; b=f2JDtmD/rDpnygSso5WViYoKQ7xjTeV6EpOA0i3U9WWNddm2PwcS2lseJ33Dv/hnHPb9azPKuL1rvr2vbNhTgK2QBK8/7eyakJ1k5+Ys4JpfDx1vBwP4nrg2DvXPnKy2Q9VT+SAM6pnENRXh5xoWvkBKMUecjpSDiVGkB8jmS8PvrHK2kagGUTPAFzrIaiz3jVYY69R2Nq3tMsgXvnk8RI/uanSFevz+LEb7aignE18/VSnwlvGuRoXFFcekk65v; Received: from uucp by munchkin.clue.co.za with local (Exim 4.66) (envelope-from ) id 1I0HNv-0004c4-6V; Mon, 18 Jun 2007 13:35:11 +0000 Received: from atlas.clue.co.za ([10.0.0.18] helo=clue.co.za) by urchin.clue.co.za with esmtpa (Exim 4.66) (envelope-from ) id 1I0HNV-0003vJ-Li; Mon, 18 Jun 2007 13:34:45 +0000 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1I0HNU-0000YQ-Rg; Mon, 18 Jun 2007 15:34:44 +0200 To: Rui Paulo From: Ian FREISLICH In-Reply-To: Message from Rui Paulo of "Sun, 17 Jun 2007 18:42:38 +0100." <86d4zupje9.wl%rpaulo@fnop.net> X-Attribution: BOFH Date: Mon, 18 Jun 2007 15:34:44 +0200 Message-Id: Cc: freebsd-current@FreeBSD.org Subject: Re: ath(4) problems after sam_wifi merge X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 13:35:12 -0000 Rui Paulo wrote: > Hi, > I'm having some problems with ath after the sam_wifi branch merge. > Basically I have all the necessary modules loaded, but scanning is not > working well. > > % kldstat | egrep wlan\|ath > 2 1 0xc097a000 12450 if_ath.ko > 3 3 0xc098d000 2ec38 ath_hal.ko > 4 8 0xc09bc000 2b65c wlan.ko > 5 2 0xc09e8000 43e8 ath_rate.ko > 20 1 0xc0af7000 4480 wlan_tkip.ko > 21 1 0xc0afc000 2fec wlan_wep.ko > 22 1 0xc0aff000 7100 wlan_ccmp.ko > 23 1 0xc0b07000 1920 wlan_scan_ap.ko > 24 1 0xc0b09000 552c wlan_scan_sta.ko > > Is anything missing? > > My card is: > ath0: mem 0x90100000-0x9010ffff irq 17 at device 0.0 on p ci2 > ath0: [ITHREAD] > ath0: using obsoleted if_watchdog interface > ath0: mac 10.3 phy 6.1 radio 10.2 > > ath0: flags=8802 metric 0 mtu 1500 > ether 00:17:f2:44:ba:50 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 1 (2412 Mhz 11g) > authmode OPEN privacy OFF txpowmax 34 bmiss 7 scanvalid 60 bgscan > bgscanintvl 300 bgscanidle 250 roam:rssi11g 14 roam:rate11g 5 > protmode CTS burst bintval 100 This is basically a mee too. My hardware is the same as Rui's: ath0@pci3:0:0: class=0x020000 card=0x0086106b chip=0x001c168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5006 family 802.11abg Wireless NIC' class = network subclass = ethernet cap 01[40] = powerspec 2 supports D0 D3 current D0 cap 05[50] = MSI supports 1 message cap 10[60] = PCI-Express 1 legacy endpoint cap 11[90] = MSI-X supports 1 message in map 0x10 ath0: flags=8843 metric 0 mtu 1500 ether 00:17:f2:50:66:16 inet 10.0.0.18 netmask 0xffffff00 broadcast 10.0.0.255 media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/24Mbps) status: associated ssid cluelan channel 13 (2472 Mhz 11g) bssid 00:11:50:0b:c5:a6 authmode WPA privacy ON deftxkey UNDEF TKIP 3:128-bit txpowmax 35 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 14 roam:rate11g 5 protmode CTS burst roaming MANUAL bintval 100 In a MacBook Pro. After recent wireless commits the interface has become somewhat unstable. I'm using WPA with wpa_supplicant. Interestingly, it's more stable at home than at work. The symptoms I see are that even though the interface has an IP address and there is a default route, after some time of inactivity I'll start seeing "no route to host" error messages even though it thinks it's still associated with the AP. It's normally fixed by 'kldunload if_ath'. devd or something reloads the driver and everything starts working again. However, sometimes I get the following panic: Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x188 fault code = supervisor read, page not present instruction pointer = 0x20:0xc04bbada stack pointer = 0x28:0xe7c2d9d4 frame pointer = 0x28:0xe7c2d9ec code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 3134 (wpa_supplicant) trap number = 12 panic: page fault cpuid = 1 ath0: detached Uptime: 4h18m13s Physical memory: 2024 MB Dumping 181 MB: 166 150 134 118 102 86 70 (CTRL-C to abort) 54 38 22 6 #0 doadump () at pcpu.h:195 #1 0xc04c7172 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0xc04c742d in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:563 #3 0xc060eb8a in trap_fatal (frame=0xe7c2d994, eva=Variable "eva" is not availa ble. ) at /usr/src/sys/i386/i386/trap.c:870 #4 0xc060f45b in trap (frame=0xe7c2d994) at /usr/src/sys/i386/i386/trap.c:276 #5 0xc05f6d4b in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #6 0xc04bbada in _mtx_lock_sleep (m=0xc4e4190c, tid=3312072704, opts=0, file=0xc57369c4
, line=2217) at /usr/src/sys/kern/kern_mutex.c:361 #7 0xc04bbcfc in _mtx_lock_flags (m=0xc4e4190c, opts=0, file=0xc57369c4
, line=2217) at /usr/src/sys/kern/kern_mutex.c:187 #8 0xc572d7ca in ?? () #9 0xc4e4190c in ?? () #10 0x00000000 in ?? () #11 0xc57369c4 in ?? () #12 0x000008a9 in ?? () #13 0xe7c2da34 in ?? () #14 0xc076f249 in ?? () #15 0xc571622c in ?? () #16 0xc4e41800 in ?? () #17 0xc5007000 in ?? () ---Type to continue, or q to quit--- #18 0xe7c2db20 in ?? () #19 0xc0778e75 in ?? () #20 0xc571622c in ?? () #21 0xc57174a0 in ?? () #22 0x00000007 in ?? () #23 0x00000001 in ?? () #24 0xc56a3800 in ?? () #25 0xe7c2da5c in ?? () #26 0xc04e214b in choosethread () at kern_switch.c:147 Previous frame inner to this frame (corrupt stack?) Ian -- Ian Freislich