From owner-freebsd-wireless@FreeBSD.ORG Thu May 16 14:20:00 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3C1A6837; Thu, 16 May 2013 14:20:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id A52B7A8C; Thu, 16 May 2013 14:19:59 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id p57so1306792wes.4 for ; Thu, 16 May 2013 07:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5E6S2NN3T4iDC3xZtk2ocHgXQiA2XaObelHPRDlopZc=; b=F1wHFnh7+DL4GW0HCfc9h6fR0AlQXGeJqAjcx1PRn69fXCHsqurWlPXtdT9Luyj3QK OB+fy5Dx+XvQZUyqGfQu7+YGHZRWcVqQkPPTS+iS9Va5x6RKJUgerXkhQm6/h3ADPpjL 2xx0YZUnalTKDp/GdtP/fEV3jwfhfSMRbClgluTvamLZCPkwg5M2hqAW4/nw9L2gZnDY 8aDJSyp1mQCdVEpnleH8Qknz8x5+lXO7ayTXaOXeHyxAVdzsHVUyi4e2i4aKndUn4HWr DpeXDPowTutao4zCDRaszWKnCW6X/s6BZQpYTo2z/wfAQzDhqR2YW2726xfmWdwhiBrx iOnw== MIME-Version: 1.0 X-Received: by 10.180.187.234 with SMTP id fv10mr25257382wic.29.1368713998776; Thu, 16 May 2013 07:19:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.58.138 with HTTP; Thu, 16 May 2013 07:19:58 -0700 (PDT) In-Reply-To: <57577088.20130516130950@serebryakov.spb.ru> References: <57577088.20130516130950@serebryakov.spb.ru> Date: Thu, 16 May 2013 07:19:58 -0700 X-Google-Sender-Auth: VoudTDpHCzxXbPYHgvhrZeoE8XA Message-ID: Subject: Re: [rft] improved hostap powersave / ps-poll support is now in HEAD From: Adrian Chadd To: Lev Serebryakov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 16 May 2013 14:20:00 -0000 Hi! Those TIM messages and PSPOLL messages are expected. They're the power save state change.s Since your laptop on battery is likely trying ot save as much power as possible, this isn't surprising. can you give me the logging info when TX stalls? I'd like to see what the state of the TX queues are. Thanks! Adrian On 16 May 2013 02:09, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 15 =D0=BC=D0=B0=D1=8F 2013 =D0=B3., 22:34:26: > > AC> I've just committed my first pass of improved power save and ps-poll > AC> support in AP mode to -HEAD. > AC> There's a bunch of corner cases I'm trying to solve but I'd rather > AC> this be in the driver now rather than later. > AC> So please, update to -HEAD and give this a whirl. Let me know if > AC> things are better, worse or the same. > r250675, my ususal test (300 mbit AP -> Client). > Looks good. First of all, it gives me stable 100-150Mbit, so it could > negotiate HT rates again without TCP :) > > > And it sustain for 600 seconds in this mode, which was impossible > before. > > There was several such messages: > > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_suspend: tid=3D0xfff= fff8000d82230, bar_wait=3D0, bar_tx=3D0, called > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_tx_ready: c4:85:08:3= f:9e:c2: tid=3D0xffffff8000d82230 (0), bar ready > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_tx: c4:85:08:3f:9e:c= 2: tid=3D0xffffff8000d82230, called > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_tx: c4:85:08:3f:9e:c= 2: tid=3D0xffffff8000d82230, new BAW left edge=3D676 > May 16 12:57:31 gateway kernel: ath0: ath_bar_response: c4:85:08:3f:9e:c2= : called; tap=3D0xffffff8000d7f3a0, atid=3D0xffffff8000d82230, txa_tid=3D0,= atid->tid=3D0, status=3D0, attempts=3D1 > May 16 12:57:31 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: c4:85:08:= 3f:9e:c2: tid=3D0xffffff8000d82230, called > > But no full stalls. > > I have dev.ath.0.debug=3D0x900000020 > > A lot of such messages in log when notebook is on battery (no such > messages when it is on AC power): > > May 16 12:51:12 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:12 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:12 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:18 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:18 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:18 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:18 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:20 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:20 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:20 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:20 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:21 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:21 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:21 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:21 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:31 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:31 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:31 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:31 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:32 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > May 16 12:51:32 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 12:51:32 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > May 16 12:51:32 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D0, an_pwrsave=3D0, disabling > May 16 12:51:34 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D1 > > And sometimes it shows: > > May 16 13:05:52 gateway kernel: ath0: ath_node_set_tim: c4:85:08:3f:9e:c2= : enable=3D1, enabling TIM > May 16 13:05:52 gateway kernel: ath0: ath_node_recv_pspoll: c4:85:08:3f:9= e:c2: leaking frame to TID 0 > May 16 13:05:52 gateway kernel: ath0: ath_tx_leak_count_update: c4:85:08:= 3f:9e:c2: leak count =3D 1, psq=3D1, swq=3D6, MORE=3D1 > May 16 13:05:52 gateway kernel: ath0: ath_node_recv_pspoll: c4:85:08:3f:9= e:c2: leaking frame to TID 0 > May 16 13:05:52 gateway kernel: ath0: ath_tx_leak_count_update: c4:85:08:= 3f:9e:c2: leak count =3D 1, psq=3D1, swq=3D8, MORE=3D1 > May 16 13:05:52 gateway kernel: ath0: ath_node_powersave: c4:85:08:3f:9e:= c2: enable=3D0 > > It is when traffic goes 100-150Mbit/s, with drops to 75-85 every > ~10th second. > > At second test, after ~300 seconds of test in battery mode it drops to = non-N speeds > and never recovered. > > -- > // Black Lion AKA Lev Serebryakov >