Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp438201ybn; Wed, 2 Oct 2019 00:08:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyibDjXHJk4ebdl1NGz3D1Hf0WyrcKSY2wi9alXZ4kangwFwo/fKqc8rOPm5h2f9ZWRqZHU X-Received: by 2002:a17:906:2ccc:: with SMTP id r12mr1728714ejr.219.1570000138030; Wed, 02 Oct 2019 00:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570000138; cv=none; d=google.com; s=arc-20160816; b=SsI1+MgclO+8d031l+gEvhjkkBW52DoEBMd36LjoiQyDEvSD4c71fAUq+O7uK8P2T7 Dq5Tx01G+hLAs92QuvFOp9wCblnQvvaPSxlerVmgpbrZm7Bmnm/ZBr+hb8ZZofgjlOIv cnaA0m7nbJvIDUWqtJqul6sIWvMAyzRyA9eZJ7tRy8Bo2VRirfompZgt5+KolN60BJXS 33bF2VlwvDGB5mETdWoajOmWAYM1Km1IJoiBfhsrvSNjtN48wIQItVjc1GZpEcTG2Nie qokP3acRnGH+1rwfF6z/uT0pMiD/hdCMud/0dQ011nqS/3ioD66fKA4Yu4kLeodd3fzz ms/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:authenticated-by; bh=gK1IqFuf45v7qDd/amNyixohTjN1OYbpXTxZMZagdXE=; b=WAdl1DibmHf/avNwxqfFo7avGWtpN81zZ2yYvhdxQeNTJMRcKipNcThMjzrr1car0g qdUkDBDP2C+IkZ14LgSEKawp08AEPz0JQ9zq8qapPQVur1wDuq9RmwJsYWraRsDoTjp6 prCoHxT/kAb9xIkk4enmQe1RrDvGWfUs8QuEI2b5HxXCM7G5iZoB/Em7F8zxX6DCn5X5 UftU2DheRTTdqRWay65BplSJ06GBwj2VfkdZAw3D36Oy860OiGe50pqRmi/bKbIn3xxv DGvsIXpyHPVt8QOAX+QOpwjJipVzZ8mryVjeOhAU1gGfS9hvZgsM6QJYXgeQOa7JV3ZN NBnQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f31si11915005ede.253.2019.10.02.00.08.33; Wed, 02 Oct 2019 00:08:57 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726543AbfJBGfm (ORCPT + 99 others); Wed, 2 Oct 2019 02:35:42 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:57688 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbfJBGfl (ORCPT ); Wed, 2 Oct 2019 02:35:41 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x926ZYFj013038, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x926ZYFj013038 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 2 Oct 2019 14:35:34 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Wed, 2 Oct 2019 14:35:33 +0800 From: To: CC: , Subject: [PATCH 00/14] rtw88: add software TX queue support Date: Wed, 2 Oct 2019 14:35:17 +0800 Message-ID: <20191002063531.18135-1-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang This adds support for software TX queue that is provided by mac80211 stack. Also can take advantage of AMSDU, by letting it to aggregate the MSDUs in the TX queue. With software TX queue, driver can handle the rate control mechanism, by set/check the current state of the TX queues. If driver is going to use software TX queue, it is better to also add ieee80211_ops::flush for better control of either software/hardware queues. This can help mac80211 to flush the queues whenever it wants to. And TX queues should follow the EDCA params, add ieee80211_ops::conf_tx to setup the parameters accordingly. There's also some fixes for the driver. One can check in the log to see what the fixes for. The most important fix is ("rtw88: fix beaconing mode rsvd_page memory violation issue"). Because there's kernel memory violation that could generate protection fault, when user wants to start beaconing modes such as AP. Chin-Yen Lee (1): rtw88: check firmware leave lps successfully Ping-Ke Shih (4): rtw88: Don't set RX_FLAG_DECRYPTED if packet has no encryption rtw88: use struct rtw_fw_hdr to access firmware header rtw88: fix NSS of hw_cap rtw88: fix error handling when setup efuse info Tzu-En Huang (1): rtw88: report tx rate to mac80211 stack Yan-Hsuan Chuang (8): rtw88: allows to set RTS in TX descriptor rtw88: add driver TX queue support rtw88: take over rate control from mac80211 rtw88: add TX-AMSDU support rtw88: flush hardware tx queues rtw88: fix beaconing mode rsvd_page memory violation issue rtw88: configure TX queue EDCA parameters rtw88: raise firmware version debug level drivers/net/wireless/realtek/rtw88/fw.c | 149 ++++++++++++++++- drivers/net/wireless/realtek/rtw88/fw.h | 51 ++++-- drivers/net/wireless/realtek/rtw88/mac.c | 131 ++++++++++++--- drivers/net/wireless/realtek/rtw88/mac.h | 1 + drivers/net/wireless/realtek/rtw88/mac80211.c | 154 +++++++++++++++++- drivers/net/wireless/realtek/rtw88/main.c | 70 +++++++- drivers/net/wireless/realtek/rtw88/main.h | 50 +++++- drivers/net/wireless/realtek/rtw88/ps.c | 29 ++++ drivers/net/wireless/realtek/rtw88/ps.h | 2 + drivers/net/wireless/realtek/rtw88/reg.h | 5 + drivers/net/wireless/realtek/rtw88/rtw8822b.c | 3 +- drivers/net/wireless/realtek/rtw88/rtw8822c.c | 7 +- drivers/net/wireless/realtek/rtw88/rx.c | 22 +-- drivers/net/wireless/realtek/rtw88/rx.h | 11 ++ drivers/net/wireless/realtek/rtw88/tx.c | 133 +++++++++++++++ drivers/net/wireless/realtek/rtw88/tx.h | 8 + drivers/net/wireless/realtek/rtw88/util.c | 27 +++ 17 files changed, 767 insertions(+), 86 deletions(-) -- 2.17.1