From owner-freebsd-mobile@FreeBSD.ORG Sun Sep 28 00:06:48 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 192571065688; Sun, 28 Sep 2008 00:06:48 +0000 (UTC) (envelope-from frank@exit.com) Received: from tinker.exit.com (tinker.exit.com [IPv6:2001:470:80f4:0:2e0:81ff:fe2b:acbc]) by mx1.freebsd.org (Postfix) with ESMTP id E1C958FC16; Sun, 28 Sep 2008 00:06:47 +0000 (UTC) (envelope-from frank@exit.com) Received: from jill.exit.com (jill.exit.com [IPv6:2001:470:80f4:0:2e0:81ff:fe33:7e9a]) by tinker.exit.com (8.14.2/8.14.2) with ESMTP id m8S041Bi062714; Sat, 27 Sep 2008 17:04:01 -0700 (PDT) (envelope-from frank@exit.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=exit.com; s=tinker; t=1222560241; bh=dhkoX5joeEGphcUinArZI3JrKQW5g8/Vdid/uBy3oN8=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:Date:Message-Id:Mime-Version; b=GCgix1zG Of4vN5fN/omtVvmi8jwpQARIkZCLrrMmhG8A+fP4eXCK0yX0JVT9A049bxcgNhnkkH7 Ef2Uzbfj5DWeh87qkgaVHhnUQ+N3L6lgxn16wzGLU82ZTtwwy5W0GppWwq9+m5JKrgj LwqUiqlpElmH64l113wwYeE5kHSeA= Received: from jill.exit.com (localhost [127.0.0.1]) by jill.exit.com (8.14.2/8.14.2) with ESMTP id m8S06kEq090386; Sat, 27 Sep 2008 17:06:46 -0700 (PDT) (envelope-from frank@exit.com) Received: (from frank@localhost) by jill.exit.com (8.14.2/8.14.2/Submit) id m8S06kIH090385; Sat, 27 Sep 2008 17:06:46 -0700 (PDT) (envelope-from frank@exit.com) X-Authentication-Warning: jill.exit.com: frank set sender to frank@exit.com using -f From: Frank Mayhar To: Sam Leffler In-Reply-To: <48DBB3EF.3060909@freebsd.org> References: <1222317948.1740.10.camel@jill.exit.com> <48DBB3EF.3060909@freebsd.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Exit Consulting Date: Sat, 27 Sep 2008 17:06:46 -0700 Message-Id: <1222560406.89800.10.camel@jill.exit.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port X-Virus-Scanned: ClamAV 0.93.3/8346/Sat Sep 27 00:08:52 2008 on tinker.exit.com X-Virus-Status: Clean Cc: freebsd-mobile Subject: Re: Atheros wireless problems. X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: frank@exit.com List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 00:06:48 -0000 On Thu, 2008-09-25 at 08:53 -0700, Sam Leffler wrote: > Frank Mayhar wrote: > > So I obtained a D-Link DWL-AG660 cardbus card, which has a 5213 (I > > believe) Atheros chipset in it; it's an a/b/g card. This is to use > > while the chipset embedded in my laptop isn't supported. It came today, > > I installed it tonight and, well, problems. > The status codes look bogus. In 0.10.5.10 there is a code path through > reset where status is not set if the chip is not brought out of low > power mode. Why this might happen is beyond me (could be a cardbus > problem) but if you initialize status to a known value before the hal > calls that are failing this might confirm that as the problem. I've > fixed the hal fwiw. That's definitely not the problem, it seems. I modified the driver to zero 'status' in each of the routines that emit the message. When I ran it today, it emitted the 'device timeout' and 'unable to reset hardware' messages: Sep 27 14:33:59 auton kernel: ath0: device timeout Sep 27 14:33:59 auton kernel: ath0: ath_reset: unable to reset hardware; hal status 19600117 Sep 27 14:34:21 auton kernel: ath0: device timeout Sep 27 14:34:21 auton kernel: ath0: ath_reset: unable to reset hardware; hal status 19600117 The only difference was that this time the status was always 19600117. A verbose boot, btw, gets this: Sep 27 14:38:43 auton kernel: ath0: mem 0xf2110000-0xf211ffff irq 17 at device 0.0 on cardbus0 Sep 27 14:38:43 auton kernel: ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xf2110000 Sep 27 14:38:43 auton kernel: cbb0: Opening memory: Sep 27 14:38:43 auton kernel: cbb0: Normal: 0xf2110000-0xf211ffff Sep 27 14:38:43 auton kernel: ath0: [MPSAFE] Sep 27 14:38:43 auton kernel: ath0: [ITHREAD] Sep 27 14:38:43 auton kernel: ath0: hal channel 2412/a0 -> 1 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2412/c0 -> 1 maxpow 36 minpow -2 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2417/a0 -> 2 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2417/c0 -> 2 maxpow 36 minpow -2 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2422/a0 -> 3 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2422/c0 -> 3 maxpow 36 minpow -2 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2427/a0 -> 4 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2427/c0 -> 4 maxpow 36 minpow -2 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2432/a0 -> 5 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2432/c0 -> 5 maxpow 36 minpow -2 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2437/a0 -> 6 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2437/c0 -> 6 maxpow 36 minpow -2 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2437/d0 -> 6 maxpow 32 minpow -2 maxreg 20 Sep 27 14:38:43 auton kernel: ath0: hal channel 2442/a0 -> 7 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2442/c0 -> 7 maxpow 36 minpow -1 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2447/a0 -> 8 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2447/c0 -> 8 maxpow 36 minpow -1 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2452/a0 -> 9 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2452/c0 -> 9 maxpow 36 minpow -1 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2457/a0 -> 10 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2457/c0 -> 10 maxpow 36 minpow -1 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2462/a0 -> 11 maxpow 36 minpow -3 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 2462/c0 -> 11 maxpow 36 minpow -1 maxreg 27 Sep 27 14:38:43 auton kernel: ath0: hal channel 5180/140 -> 36 maxpow 34 minpow -8 maxreg 17 Sep 27 14:38:43 auton kernel: ath0: hal channel 5200/140 -> 40 maxpow 34 minpow -8 maxreg 17 Sep 27 14:38:43 auton kernel: ath0: hal channel 5200/150 -> 40 maxpow 32 minpow -8 maxreg 17 Sep 27 14:38:43 auton kernel: ath0: hal channel 5210/2150 -> 42 maxpow 32 minpow -7 maxreg 17 Sep 27 14:38:43 auton kernel: ath0: hal channel 5220/140 -> 44 maxpow 34 minpow -7 maxreg 17 Sep 27 14:38:43 auton kernel: ath0: hal channel 5240/140 -> 48 maxpow 34 minpow -7 maxreg 17 Sep 27 14:38:43 auton kernel: ath0: hal channel 5240/150 -> 48 maxpow 32 minpow -7 maxreg 17 Sep 27 14:38:43 auton kernel: ath0: hal channel 5250/2150 -> 50 maxpow 32 minpow -7 maxreg 23 Sep 27 14:38:43 auton kernel: ath0: hal channel 5260/140 -> 52 maxpow 34 minpow -7 maxreg 23 Sep 27 14:38:43 auton kernel: ath0: hal channel 5280/140 -> 56 maxpow 34 minpow -6 maxreg 23 Sep 27 14:38:43 auton kernel: ath0: hal channel 5280/150 -> 56 maxpow 32 minpow -6 maxreg 23 Sep 27 14:38:43 auton kernel: ath0: hal channel 5290/2150 -> 58 maxpow 32 minpow -6 maxreg 23 Sep 27 14:38:43 auton kernel: ath0: hal channel 5300/140 -> 60 maxpow 34 minpow -6 maxreg 23 Sep 27 14:38:43 auton kernel: ath0: hal channel 5320/140 -> 64 maxpow 34 minpow -5 maxreg 23 Sep 27 14:38:43 auton kernel: ath0: hal channel 5745/140 -> 149 maxpow 34 minpow 10 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5760/2150 -> 152 maxpow 32 minpow 10 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5765/140 -> 153 maxpow 34 minpow 11 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5765/150 -> 153 maxpow 32 minpow 11 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5785/140 -> 157 maxpow 34 minpow 11 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5800/2150 -> 160 maxpow 32 minpow 12 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5805/140 -> 161 maxpow 34 minpow 12 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5805/150 -> 161 maxpow 32 minpow 12 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: hal channel 5825/140 -> 165 maxpow 34 minpow 13 maxreg 30 Sep 27 14:38:43 auton kernel: ath0: WARNING: using obsoleted if_watchdog interface Sep 27 14:38:43 auton kernel: ath0: bpf attached Sep 27 14:38:43 auton kernel: ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps36Mbps 48Mbps 54Mbps Sep 27 14:38:43 auton kernel: ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps Sep 27 14:38:43 auton kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Sep 27 14:38:43 auton kernel: ath0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Sep 27 14:38:43 auton kernel: ath0: sturboA rates: Sep 27 14:38:43 auton kernel: ath0: mac 5.9 phy 4.3 radio 3.6 Sep 27 14:38:43 auton kernel: ath0: Use hw queue 1 for WME_AC_BE traffic Sep 27 14:38:43 auton kernel: ath0: Use hw queue 0 for WME_AC_BK traffic Sep 27 14:38:43 auton kernel: ath0: Use hw queue 2 for WME_AC_VI traffic Sep 27 14:38:43 auton kernel: ath0: Use hw queue 3 for WME_AC_VO traffic Sep 27 14:38:43 auton kernel: ath0: Use hw queue 8 for CAB traffic Sep 27 14:38:43 auton kernel: ath0: Use hw queue 9 for beacons Sep 27 14:38:52 auton kernel: ath0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xf2110000 Anything else I might try? -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/ http://www.zazzle.com/fmayhar*