Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2314500pxb; Fri, 5 Feb 2021 14:49:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwERukSAq4ruZ+MBbNMpn+bLIaTvh5wpbO8Ti1onqoYnize3TO992FBLcR3xgesvtCpBpGF X-Received: by 2002:a05:6402:d1:: with SMTP id i17mr5717670edu.85.1612565393058; Fri, 05 Feb 2021 14:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612565393; cv=none; d=google.com; s=arc-20160816; b=zrTpXvPu8jY9nHxAYe0ZFgXepJji0G7GzdSR9VkAKzvsbIMOs6317xt3ozt1na+lxu iDqPYZycPB24aoPyk8ZO+15LmYBendbLttxId5aO8pbVQwSXGzvxwTh9ZRnlPavTvghr AeYWcYFxlU56w+OdKvcCwjGETvvTupBo/WOQYLzyr83miG2h2QePP+o6VNo0fV2uP26G I3umzU6ArT9/QcgiYtASbW4YVpxAO9H6LWkpwCHwIIsfd278+qz3Gengb2D3UAlSAupf vwH4W+sAC8w0nw2idNQfxW3JU6qQIoyypIPbkMK1elN9hyuRe0Y72CbHJ7wS/ZBeZA18 5wRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:from; bh=RvBwI+49LAN74Ii0yI+SrPhQVilZC6hMMpz/fCUdPOE=; b=NOyEiEjT3YsylWP7Imy5xkIM/L+RWCUwaL5eWWGs/HFLGPjta8zJKrAnXcQ06Bv30K Qlg6Jz09BfqpeF/Bp1Nugn69e1SFSrwaAbpxaTZiouoc1fCyFVx6TwdnDYJTiEZQFPVO PFbKVvk/R43At6vsFBvc+eR7fjnJYpGgmRi3U5mMI7fpmiMK2JlwjvmmBWTtcOx9TRC3 vOaB9trIP/zVD3ZXl+wE5loEs0YN0K31PrgglInxNca/UUXMsRv8GO3WKjSRH2JAfxUu 89bVJbaEVLITDnuAIJfJvRrYRap8oMj4BowYZcD70FXZiueQp3a9A1ytuJlGg0oG1tGN MR4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=Oaiu280J; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si5865444ejj.130.2021.02.05.14.49.30; Fri, 05 Feb 2021 14:49:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=Oaiu280J; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233350AbhBEWsr (ORCPT + 99 others); Fri, 5 Feb 2021 17:48:47 -0500 Received: from mail.toke.dk ([45.145.95.4]:51631 "EHLO mail.toke.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229729AbhBENaZ (ORCPT ); Fri, 5 Feb 2021 08:30:25 -0500 From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1612531761; bh=dmsbQlJ0XheT/EofpoyzXPiARJ/fSUNhNxNGar8huVs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Oaiu280JaBF6yYQgA0lDT/mkVsk7l59DQGSfIV2yss0+9ccBduhvodiSKWTEI764f h2hyss/+dpbNwM9scbmxpAq+HrHEcvQMszRynTXCONz7JUx57eOMGTB7hRe6fVFJND WKB8dT51ZlcyP1HXCx7S3WqxZRx/6tiGtDUX9dEIXSuvM3E+43418KJQ4S6SGEe2in G6UTxKTfIj6LszNqmikdE31QXNzWf7pb2cFrAsao7iRMQU8xZ783RVErRCU8s8QlF7 +t4hx0LNu+7/CLlivdmLe65U/wjc/6dXUODpDFpG/c+WSkeqbvLx0kEp99X3+TnWIP CDhgAHjRbQ5rQ== To: Ryder Lee Cc: Felix Fietkau , Lorenzo Bianconi , Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, Ryder Lee Subject: Re: [PATCH] mac80211: only schedule TXQ when reasonable airtime reporting In-Reply-To: References: Date: Fri, 05 Feb 2021 14:29:19 +0100 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <878s82ve1c.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Ryder Lee writes: > For some drivers and hardware may report faulty airtime, which ends up > with excessive hold time (~0.9s on mt7915 multiclent tests) impacting > system performance. > > Although issue has been fixed in driver, but it make sense to select txqi > depends on a reasonable airtime reporting to prevent such a case from > happening again. I think I see what you're trying to do with the patch, but this commit message makes no sense. What, exactly, was the error you were seeing that this is supposed to fix? > Tested-by: Jiao Bo > Tested-by: Sujuan Chen > Signed-off-by: Ryder Lee > --- > net/mac80211/tx.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c > index 6422da6690f7..0b8a8c3600f4 100644 > --- a/net/mac80211/tx.c > +++ b/net/mac80211/tx.c > @@ -3770,6 +3770,10 @@ struct ieee80211_txq *ieee80211_next_txq(struct ieee80211_hw *hw, u8 ac) > sta->airtime_weight; > > if (deficit < 0 || !aql_check) { > + if (txqi->schedule_round == local->schedule_round[ac]) > + goto out; > + > + txqi->schedule_round = local->schedule_round[ac]; I think this change may be worth making anyway, but for a different reason: Without it, a station that fails aql_check will keep getting recycled through the list, advancing its deficit. Which could actually be the reason AQL breaks airtime fairness; did you observe any difference in fairness with this change? -Toke