From owner-freebsd-wireless@FreeBSD.ORG Sat Dec 3 16:22:52 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C7EC106564A for ; Sat, 3 Dec 2011 16:22:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC688FC08 for ; Sat, 3 Dec 2011 16:22:51 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so4842933vcb.13 for ; Sat, 03 Dec 2011 08:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2tQ/+fdIOcuXcAKPedPYvgS5bdwz+yi4vOPass1Ll+Q=; b=Cx2J1qyDoZwZqb/QQ2K4fxJhez7AM8Dlju9ERX4mprwFxO96azTHznlwQN0QLqjSVe JQolpZflD3PuoUFB/MjZrdMG26Smy/sLJk/Ec0+1jqV6SOf7ZVeJ2UEmPiLW7mC4WxDA DcHwXhwU26JKxMNlqVKW4JLl7p8DnfL/GPErU= MIME-Version: 1.0 Received: by 10.220.228.200 with SMTP id jf8mr314137vcb.105.1322929371462; Sat, 03 Dec 2011 08:22:51 -0800 (PST) Received: by 10.52.109.10 with HTTP; Sat, 3 Dec 2011 08:22:51 -0800 (PST) In-Reply-To: <4EDA4BBA.6010203@entel.upc.edu> References: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu> <4ECFCDAB.1080407@entel.upc.edu> <4ED3B4D1.3020701@entel.upc.edu> <4EDA4BBA.6010203@entel.upc.edu> Date: Sun, 4 Dec 2011 00:22:51 +0800 Message-ID: From: Adrian Chadd To: =?ISO-8859-1?Q?Gustau_P=E9rez?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Big delays between an AR5416 AP and its clients X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 16:22:52 -0000 2011/12/4 Gustau P=E9rez : > =A0 I see nothing particular in my dmesg with wlandebug enabled. I see th= e > AR5416 complaining about a beacon off-channel for a MAC I don't know abou= t. > I also see the iphone's MAC going power save with a message like this: > > =A0 =A0 =A0 =A0 =A0 =A0 power save mode on, 2 sta's in ps mode Well, it _is_ doing power saving, which I expected. This doesn't at all correlate with the periodicity of the issue? > =A0I also see all of those messages with a pre r227364 kernel, so I would= say > they are harmless and not related to the issue. *nod* I'm just looking if they correlate timewise with the growing latency.= . > =A0However, I see these the following entries in my dmesg when using r227= 364: > > =A0 =A0 =A0 =A0Dec =A03 16:46:27 harkserver kernel: Timeout while waiting= for nf > =A0 =A0 =A0 =A0to load: AR_PHY_AGC_CONTROL=3D0x41d1a > =A0 =A0 =A0 =A0Dec =A03 16:46:27 harkserver kernel: Timeout while waiting= for nf > =A0 =A0 =A0 =A0to load: AR_PHY_AGC_CONTROL=3D0x41d1a > > =A0 =A0 =A0 =A0Dec =A03 16:18:27 harkserver kernel: ar5416PerCalibrationN= : NF > > =A0 =A0 =A0 =A0calibration didn't finish; delaying CCA > =A0 =A0 =A0 =A0Dec =A03 16:18:27 harkserver kernel: ar5416PerCalibrationN= : NF > > =A0 =A0 =A0 =A0calibration didn't finish; delaying CCA > > =A0I don't see those messages with a previous revision because they appea= r to > be part of r227364. Those problems appear from time to time, could they a= nd > the latency increase be related? That could be related. If the device thinks the air is constantly busy (or it's spending a lot of time trying to TX) then it may fail NF calibration. I just wonder what I've changed which may be causing the NIC to behave this= way. What's interesting (!) is that I have seen similar reports with ath9k in Linux. I wonder if part of the 11n work (that ath9k has also borrowed) has the same broken behaviour on the AR5416. Can you please file all of this in the PR? I'll have finished moving by December 15 so I can start trying to replicate this issue and help you debug it. Thanks, Adrian