From patchwork Fri Nov 9 23:16:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 10676687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9418B14E2 for ; Fri, 9 Nov 2018 23:17:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85EDB2F174 for ; Fri, 9 Nov 2018 23:17:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 782702F187; Fri, 9 Nov 2018 23:17:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 13FAB2F174 for ; Fri, 9 Nov 2018 23:17:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=PC8gL/NCl/ApEbeI+0/9BoUVtnEEj9V5PXdX7o1465A=; b=rUH4zFIeCXMMLZ nWGD7ZIgzf/bhPe4N8RiG9UDRuNttW96Kce+qJXuMvtN/BnZgu6pJm915ZrDiybwyevz7SYV9K7uj 60BFoyh3/JHqL1S2hLFcdky+kQxeIpaPl+/8gBaCOKf6NvfNEshlJ1ocBYY2X4UfCw1iAM6atc6+n cssQPCIzgR290z3Bw5bF+JJWixsAj9itMYcTz60dQDtxPb2ibxltp9F/033UD3G1+0U4CLa3PnINk Kln6hS0mi0ABScqATpDfF+usD8UGiu1SyWCbtUv53ZhRRWs1lGiKe3EXJ1T5J2WOaxR3xP7x8/jJ5 fjleQi9ORttlES///iIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLG27-0002eu-DI; Fri, 09 Nov 2018 23:17:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLG24-0002eo-WF for ath10k@bombadil.infradead.org; Fri, 09 Nov 2018 23:17:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5fWp6yKygUa+YMluymO8HM8j6g5GswMklnU8TdSRfA8=; b=BxHHV/i4JHBpyuES1n69vtqd2t BD0hvYNw0vwVVcMmpEuAdYOp2pYXGd4SrGdJSeyhcoiIBRu1uJEWhbPLPQq14I/aJSt3p+wP0lVkU yBrdQqeI5TL0N3UEJCbnfXamgKJe4HmVLNYMrLgCjeIXH7qFdG/JNECN1T4kcRFYgHGgs1MSSuQaw d2q/Deg9dUx9IEgTesx2lKFgfoiNvxJGQ8mPBXKuCFdqxoltRFQ8KDkLOTaKYM3FrK8HYqKq0YyHY xYrA04P/NZjdpEDoxL3Laa6CVyzM9JGz9ndPHhjXiqMiUxZTO80td6MaA2CTrtSUSAh8kB19oGLcu 5rrelCsA==; Received: from smtp.codeaurora.org ([198.145.29.96]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gLG20-0000ih-2t for ath10k@lists.infradead.org; Fri, 09 Nov 2018 23:17:43 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2C1B560AD8; Fri, 9 Nov 2018 23:17:25 +0000 (UTC) Received: from smtp.codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: rmanohar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5CA0C602BC; Fri, 9 Nov 2018 23:17:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5CA0C602BC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=pass (p=none dis=none) header.from=qti.qualcomm.com Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=rmanohar@qti.qualcomm.com Received: by smtp.codeaurora.org (sSMTP sendmail emulation); Fri, 09 Nov 2018 15:17:22 -0800 From: Rajkumar Manoharan To: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [PATCH v2 0/6] Move TXQ scheduling and airtime fairness into mac80211 Date: Fri, 9 Nov 2018 15:16:55 -0800 Message-Id: <1541805421-27309-1-git-send-email-rmanohar@qti.qualcomm.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181109_231740_410500_07ECC848 X-CRM114-Status: GOOD ( 12.06 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: make-wifi-fast@lists.bufferbloat.net, Rajkumar Manoharan Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Here is the consolidated series of mac80211, ath9k and ath10k changes for moving TXQ scheduling and airtime fairness into mac80211 and support airtime fairness. Three main APIs are defined for TXQ scheduling. - ieee80211_next_txq - ieee80211_return_txq - ieee80211_txq_may_transmit and two APIs for synchronization when the driver wants to iterate through all TXQs. - ieee80211_txq_schedule_start - ieee80211_txq_schedule_end The earlier discussions: https://patchwork.kernel.org/project/linux-wireless/list/?series=&submitter=&state=*&q=TXQ+scheduling&archive=both&delegate= -Rajkumar v2: - replaced driver specific airtime default by multiplier - fixed tab intent - fixed author and commit log Kan Yan (1): ath10k: reporting estimated tx airtime for fairness Toke Høiland-Jørgensen (5): mac80211: Add TXQ scheduling API cfg80211: Add airtime statistics and settings mac80211: Add airtime accounting and scheduling to TXQs ath9k: Switch to mac80211 TXQ scheduling and airtime APIs ath10k: migrate to mac80211 txq scheduling drivers/net/wireless/ath/ath10k/core.c | 2 - drivers/net/wireless/ath/ath10k/core.h | 8 +- drivers/net/wireless/ath/ath10k/htc.h | 1 - drivers/net/wireless/ath/ath10k/htt_rx.c | 9 ++ drivers/net/wireless/ath/ath10k/mac.c | 155 +++++++++++------- drivers/net/wireless/ath/ath10k/txrx.c | 4 + drivers/net/wireless/ath/ath9k/ath9k.h | 14 -- drivers/net/wireless/ath/ath9k/debug.c | 3 - drivers/net/wireless/ath/ath9k/debug.h | 8 - drivers/net/wireless/ath/ath9k/debug_sta.c | 70 --------- drivers/net/wireless/ath/ath9k/init.c | 3 +- drivers/net/wireless/ath/ath9k/recv.c | 9 +- drivers/net/wireless/ath/ath9k/xmit.c | 244 +++++++++-------------------- include/net/cfg80211.h | 10 +- include/net/mac80211.h | 121 +++++++++++++- include/uapi/linux/nl80211.h | 15 ++ net/mac80211/agg-tx.c | 2 +- net/mac80211/cfg.c | 3 + net/mac80211/debugfs.c | 3 + net/mac80211/debugfs_sta.c | 50 +++++- net/mac80211/driver-ops.h | 9 ++ net/mac80211/ieee80211_i.h | 11 ++ net/mac80211/main.c | 9 ++ net/mac80211/sta_info.c | 46 +++++- net/mac80211/sta_info.h | 13 ++ net/mac80211/status.c | 6 + net/mac80211/tx.c | 140 ++++++++++++++++- net/wireless/nl80211.c | 28 ++++ 28 files changed, 640 insertions(+), 356 deletions(-)