Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3957156ybc; Thu, 14 Nov 2019 18:10:08 -0800 (PST) X-Google-Smtp-Source: APXvYqw1X9pT29/g4NIHL14A7k2QCVLdbPYBvYIft7+BfMbRZFAZV67m1hWMQOk4DkuxCfIxW+He X-Received: by 2002:a17:906:3e90:: with SMTP id a16mr10163075ejj.265.1573783807973; Thu, 14 Nov 2019 18:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573783807; cv=none; d=google.com; s=arc-20160816; b=tYRL9BGvYRJXzKupvSiRL4gNVjMZQJEcXm9t9EPFpqen9FVGewBjl2QlD3GfldH8LH YZzDIsdnZ/NA08kr2KWZxGUj58TQkmutr/3IRg7EZ0qUbX0Cn1wQoY34tD67eb4AghFf 46IA90ULfQDnyPrFBnY36STTqU9eKFsNyDuYCELI1T2XTggwsF4NxR9ACjZQ9BR/YbgB Q/19sFuDhrct0y0OwfhNYJvsxdadU+pXfrE+US6olAHQKPFmeWYhKse6sjMR0EkZ9UED HBmGbBgRHElqP1OOv/nkLmhcAgX4LFOm7Tiuq5XZOhay0oFotrX/7EUOdLtgNFjPeeux 0s9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WtJNvvQTM57vQy9ybmYv61sRHptoEawBLzqO01pOMCs=; b=i7aoPAomBqTmp+tRuaLowEjT7sUol9TF+L6xW7F3152y9yJPLcJdkTe2G+uwlCHEGL GE0cyF2B6BLwRT4cEWME17pnsMxorQIyAOgnl5Caf/wQWVj+Z38yMTY1N8bbOYUEIUAt 0vFm6jZjxaQ5CTblqA3YPKPlYGwN0xQii3KYwq9grtzPKMqwO7KDkdKdZTksOhPkywXc NKkXg4fmVamXM6rzMwz9gRBZL6Z9tBmygfo986BAqN2Jh0DFe9NqWrbAwhlJmIzyXn1F UnTZaJ2IuzAT7xH+17e7r7TRuhW1aGhO7BzJR+Dxpz73MftHh1DiUK04zwXRPkNfx50I 5bow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IFoecrc8; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si1862733ejc.136.2019.11.14.18.09.41; Thu, 14 Nov 2019 18:10:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IFoecrc8; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727254AbfKOCHW (ORCPT + 99 others); Thu, 14 Nov 2019 21:07:22 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:43552 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727208AbfKOCHV (ORCPT ); Thu, 14 Nov 2019 21:07:21 -0500 Received: by mail-il1-f196.google.com with SMTP id r9so7702337ilq.10 for ; Thu, 14 Nov 2019 18:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WtJNvvQTM57vQy9ybmYv61sRHptoEawBLzqO01pOMCs=; b=IFoecrc8m8fphAQaN/F5RyjAqWGCR4PfqvdyIL3FNL+mdRFg7pn5uvyk8pbrpBdrpp vPmA6k1laEJWcEib3xyXQvchHZntOVfj/CbBzD4AMURCirGAA+XI+/oCJJUloSqtxlaI xXKPdM2RVrKKGaYvyt+26v7rHQ6mbcr5kzsd4/E22p/LQhfJC0XQdrB5Qc12MpjzEY9r uLItm6wEk/v7EW+eB7odlNAjJmfOFpvZejRd3pX0XZYMgQbbuk+Jonn62M+B1Y4+tflP C/5ZW5W0OzTF7AYid7vTZESa2BAlyt1FmX//gZNCQ4BJ+2oJlwbU7OmPknjEe3EKsDML gkbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WtJNvvQTM57vQy9ybmYv61sRHptoEawBLzqO01pOMCs=; b=r51ZnZcH9D6lrTeS4NkIn15489SY0KQw34ThStlM2PBZGk/RQGhchwgZk6jKWTcNIQ EpzsJ53bVv8cNBIie+woh+fPzUKPRVPvCC1ayxtMdkPW+oU/9BfGJd7sStjZ6RTRZA5D 8cQ7NWCinRqWxKjywhLWWXB/2iqkO34oH2n0QZ0h4qT64FPFH+AzXe693pX3IiFrKL+2 JtN8MnAPlCtKSLI4zlFOCnsn4brXBGj8qnKt2SYNqUC2USfHrCXYeFnJXzISZ7pwq0SD bHvcKTk8o8Seh8o+iDPiMfn257Eg1WeHu8PjzzPy2+HR6XbH5fBaEeKYkgLRNu2mJTWg ssPA== X-Gm-Message-State: APjAAAVEVLRV6WhppVAUr6w5yCbVBzBUB2TP7gj3DtCF+UxgfjqumqiQ 4LwLAKpsuT4+ZMIShZR9PXUg4l8t8+PB/piKbRw= X-Received: by 2002:a92:c8:: with SMTP id 191mr14057710ila.287.1573783640343; Thu, 14 Nov 2019 18:07:20 -0800 (PST) MIME-Version: 1.0 References: <20191115014846.126007-1-kyan@google.com> In-Reply-To: From: Dave Taht Date: Thu, 14 Nov 2019 18:07:09 -0800 Message-ID: Subject: Re: [Make-wifi-fast] [PATCH v8 0/2] Implement Airtime-based Queue Limit (AQL) To: Kan Yan Cc: Johannes Berg , Rajkumar Manoharan , Kevin Hayes , Make-Wifi-fast , linux-wireless , Yibo Zhao , John Crispin , Lorenzo Bianconi , Felix Fietkau Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, Nov 14, 2019 at 6:04 PM Kan Yan wrote: > > I have tested it with Toke's patch "[PATCH v6 4/4] mac80211: Use > Airtime-based Queue Limits (AQL) on packet dequeue", but didn't > include it here, as it is self contained and Toke has plan to update > it. > > The platform (QCA9984) used in my test I do keep hoping for pretty pictures. Got any? :-P > doesn't support 802.11ax, so I > was not able to test the HE mode support added in v7 update of "Import > airtime calculation code from mt76" from Toke. Is there an ax QCAXXXX platform, m.2 card, or mini-pci card worth testing at this point? How are they handling mu-mimo? I have a round of tests scheduled for intel's ax200 chips, soon. Not sure what, if any, of this new work might apply. > On Thu, Nov 14, 2019 at 5:48 PM Kan Yan wrote: > > > > This patch series port the Airtime Queue Limits concept from the out-of= -tree > > ath10k implementation[0] to mac80211. This version takes my patch to do= the > > throttling in mac80211, and replaces the driver API with the mechanism = from > > Toke's series, which instead calculated the expected airtime at dequeue= time > > inside mac80211, storing it in the SKB cb field. > > > > This version has been tested on QCA9984 platform. > > > > [0] https://chromium-review.googlesource.com/c/chromiumos/third_party/k= ernel/+/1703105/7 > > > > Changelog: > > > > v8: > > - Includes Toke's v7 version of "mac80211: Import airtime calculation= code from mt76" > > - Don't clobber sta's customized queue limit when configuring the def= ault via debugfs > > - Fix a racing condition when reset aql_tx_pending. > > > > v7: > > - Fix aql_total_pending_airtime underflow due to insufficient locking= . > > > > v6: > > - Fix sta lookup in ieee80211_report_used_skb(). > > - Move call to ieee80211_sta_update_pending_airtime() to a bit later = in > > __ieee80211_tx_status() > > v5: > > - Add missing export of ieee80211_calc_rx_airtime() and make > > ieee80211_calc_tx_airtime_rate() static (kbuildbot). > > - Use skb_get_queue_mapping() to get the AC from the skb. > > - Take basic rate configuration for the BSS into account when calcula= ting > > multicast rate. > > v4: > > - Fix calculation that clamps the maximum airtime to fit into 10 bits > > - Incorporate Rich Brown's nits for the commit message in Kan's patch > > - Add fewer local variables to ieee80211_tx_dequeue() > > v3: > > - Move the tx_time_est field so it's shared with ack_frame_id, and us= e units > > of 4us for the value stored in it. > > - Move the addition of the Ethernet header size into ieee80211_calc_e= xpected_tx_airtime() > > v2: > > - Integrate Kan's approach to airtime throttling. > > - Hopefully fix the cb struct alignment on big-endian architectures. > > > > > > > > Kan Yan (1): > > mac80211: Implement Airtime-based Queue Limit (AQL) > > > > Toke H=C3=B8iland-J=C3=B8rgensen (1): > > mac80211: Import airtime calculation code from mt76 > > > > include/net/cfg80211.h | 7 + > > include/net/mac80211.h | 41 +++ > > net/mac80211/Makefile | 3 +- > > net/mac80211/airtime.c | 597 +++++++++++++++++++++++++++++++++++++ > > net/mac80211/debugfs.c | 85 ++++++ > > net/mac80211/debugfs_sta.c | 43 ++- > > net/mac80211/ieee80211_i.h | 8 + > > net/mac80211/main.c | 10 +- > > net/mac80211/sta_info.c | 38 +++ > > net/mac80211/sta_info.h | 8 + > > net/mac80211/tx.c | 47 ++- > > 11 files changed, 872 insertions(+), 15 deletions(-) > > create mode 100644 net/mac80211/airtime.c > > > > -- > > 2.24.0.rc1.363.gb1bccd3e3d-goog > > > _______________________________________________ > Make-wifi-fast mailing list > Make-wifi-fast@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/make-wifi-fast --=20 Dave T=C3=A4ht CTO, TekLibre, LLC http://www.teklibre.com Tel: 1-831-205-9740