From patchwork Tue Jan 22 14:20:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= X-Patchwork-Id: 10775541 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 03F77139A for ; Tue, 22 Jan 2019 14:21:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E75FD2ABC6 for ; Tue, 22 Jan 2019 14:21:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D42442AC0F; Tue, 22 Jan 2019 14:21:20 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 88E162A9A9 for ; Tue, 22 Jan 2019 14:21:20 +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=xe0eJn4nOKUkpdv19k3kAljbPMWfT2Acf0uN8NjBnnM=; b=m49yrahaMu4a4M q8FX1PyfI1m4dBAUdaZ6aAOTVguEIu/sCnrXF0dPMVSh/IlW/l+SAiMIKU5kNDID+2C+vnUPqKA71 yl/6g8lwDofnXjdClK3lV/EpXqhC4WnQfCDWA2uVICZb4/UYO0VuimRbBvvKdUTCoq1XSKaElde6K RQKY6uj+12C9QeQwT1gFPMCc37yK1gcZU9zEGN4CiEOPg33wMBBd/FfZct71RMn2VPPo7evzOHg+M coMP9BaFE+V53tcuAX6FCsIc2OlKB/c/0oederA0ZaCOdwCllGjLsSky38PZSo2DRZrxUWpGKt+lE D234Gl15+1AUb80gHPFA==; 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 1glwvW-0004qo-6o; Tue, 22 Jan 2019 14:21:18 +0000 Received: from mail-ed1-f67.google.com ([209.85.208.67]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1glwvS-0004qS-Jb for ath10k@lists.infradead.org; Tue, 22 Jan 2019 14:21:16 +0000 Received: by mail-ed1-f67.google.com with SMTP id p6so19492639eds.0 for ; Tue, 22 Jan 2019 06:21:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bjkmQPAuLyx/OjBzqxICP15YyBMZHw2bg5N5CtLnEFk=; b=BxChuIWP6xULBS7vp0ZFMtO8j/jcwuR6pAy8i1b5SWBgdU6CQ/k5ogIiGkN5BM8K2s R/uEJc52ju/jaV4lVGhFiPqw02wBUoLDW5Dh/vR4i9r0TJ05sls5vCFWNLqiLoH/7urH rAgJ6k0LeyRLbOIXKMypYIgBzCt/giSQKkSHNJ6K0/DVSPeYVjYRCv6S53hbHJdRAlrs bAXARgf0gGqqIf/lC/d1aNF7VDb+iFZXT8Nt4jRNke8R8b3Z9X6G2RKF1uWdYvfz2H7K eYFdD13z0PFl6lLxmkk0uvcZhyq80ZViS76kpGc8D68TGNUaSQuIesnzkDkKuMOqT2+1 TTKQ== X-Gm-Message-State: AJcUukfT7W4AE9+DNV9wQSfuYU50ZUvQ6+XWQ2kldtcBpcrk7FXr9mDV BQE/FxFtqr3MpY9ULhE42prb2A== X-Google-Smtp-Source: ALg8bN4RjEEDlqTjTJ2dG1HTjEDaWAr9w2BgWT/S7xXQoor7/mxqGfy3xlBSnfeYu9eU58Z3gjkZxg== X-Received: by 2002:a17:906:b303:: with SMTP id n3-v6mr28736188ejz.34.1548166872545; Tue, 22 Jan 2019 06:21:12 -0800 (PST) Received: from tohojo-x1-rh.localdomain (borgediget.toke.dk. [85.204.121.218]) by smtp.gmail.com with ESMTPSA id k32sm9850741edb.42.2019.01.22.06.21.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Jan 2019 06:21:11 -0800 (PST) Received: by tohojo-x1-rh.localdomain (Postfix, from userid 1000) id 332F51833C1; Tue, 22 Jan 2019 15:21:10 +0100 (CET) From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: linux-wireless@vger.kernel.org Subject: [PATCH v6 0/4] Switch ath9k and ath10k to mac80211 airtime framework Date: Tue, 22 Jan 2019 15:20:15 +0100 Message-Id: <20190122142019.21417-1-toke@redhat.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190122_062114_647936_89ABBDB2 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. 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, =?utf-8?q?Toke_H=C3=B8iland-J?= =?utf-8?q?=C3=B8rgensen?= , ath10k@lists.infradead.org, Rajkumar Manoharan Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This is an updated resend of the driver part of the previous patch set that moves airtime fairness scheduling into mac80211 and enables it for ath10k as well. This version is just a refresh of the driver code, along with a small fix for the issue I noticed yesterday where ath9k was calling ieee80211_return_txq() without proper logging. Kan Yan (1): ath10k: reporting estimated tx airtime for fairness Toke Høiland-Jørgensen (3): mac80211: Expose ieee80211_schedule_txq() function 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/mac80211.h | 13 ++ net/mac80211/driver-ops.h | 4 +- net/mac80211/tx.c | 13 ++ 16 files changed, 217 insertions(+), 343 deletions(-)