From: Ping-Ke Shih <pkshih@realtek.com>
To: <kvalo@kernel.org>
Cc: <linux-wireless@vger.kernel.org>
Subject: [PATCH 00/14] rtw89: 8852c: extend PCI code to support 8852ce and add 8852c chip_ops
Date: Thu, 21 Apr 2022 20:08:49 +0800 [thread overview]
Message-ID: <20220421120903.73715-1-pkshih@realtek.com> (raw)
The PCI code of 8852CE is different from 8852AE. The IMR/ISR addresses are
different, and 8852CE has a special low power mode that uses another set
of addresses. To handle the special mode, we add a special interrupt
threadfn to handle packets, because regular NAPI poll function does many
things that can't access at this mode.
Another special handle is RPP (TX skb completion) prior to TX BD (TX ring
completion). In low mode power, it can be possible, so we extend the code
to handle this case as well as normal mode.
Patch 3/14 is to optimize count of reading IO, and patch 8/14 is to resolve
some warnings happened on 8852ce, because PCI ring registers are power-off
after running power-off function. These registers on 8852ae aren't
power-off.
Patches 9/14-14/14 are to add chip ops of 8852c as description of the
patches individually.
Ping-Ke Shih (14):
rtw89: pci: add variant IMR/ISR and configure functions
rtw89: pci: add variant RPWM/CPWM to enter low power mode
rtw89: pci: reclaim TX BD only if it really need
rtw89: pci: does RX in interrupt threadfn if low power mode
rtw89: ser: re-enable interrupt in threadfn if under_recovery
rtw89: ps: access TX/RX rings via another registers in low power mode
rtw89: pci: allow to process RPP prior to TX BD
rtw89: don't flush hci queues and send h2c if power is off
rtw89: add RF H2C to notify firmware
rtw89: 8852c: configure default BB TX/RX path
rtw89: 8852c: implement chip_ops related to TX power
rtw89: 8852c: implement chip_ops::get_thermal
rtw89: 8852c: fill freq and band of RX status by PPDU report
rtw89: 8852c: add chip_ops related to BTC
drivers/net/wireless/realtek/rtw89/core.c | 10 +
drivers/net/wireless/realtek/rtw89/core.h | 34 +
drivers/net/wireless/realtek/rtw89/fw.c | 39 +
drivers/net/wireless/realtek/rtw89/fw.h | 12 +
drivers/net/wireless/realtek/rtw89/mac.c | 6 +-
drivers/net/wireless/realtek/rtw89/pci.c | 339 ++++++--
drivers/net/wireless/realtek/rtw89/pci.h | 144 ++++
drivers/net/wireless/realtek/rtw89/phy.c | 1 +
drivers/net/wireless/realtek/rtw89/ps.c | 34 +-
drivers/net/wireless/realtek/rtw89/reg.h | 83 +-
drivers/net/wireless/realtek/rtw89/rtw8852a.c | 2 +
.../net/wireless/realtek/rtw89/rtw8852ae.c | 8 +
drivers/net/wireless/realtek/rtw89/rtw8852c.c | 766 ++++++++++++++++++
drivers/net/wireless/realtek/rtw89/rtw8852c.h | 1 +
.../net/wireless/realtek/rtw89/rtw8852ce.c | 16 +
15 files changed, 1438 insertions(+), 57 deletions(-)
--
2.25.1
next reply other threads:[~2022-04-21 12:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 12:08 Ping-Ke Shih [this message]
2022-04-21 12:08 ` [PATCH 01/14] rtw89: pci: add variant IMR/ISR and configure functions Ping-Ke Shih
2022-04-24 11:31 ` Kalle Valo
2022-04-21 12:08 ` [PATCH 02/14] rtw89: pci: add variant RPWM/CPWM to enter low power mode Ping-Ke Shih
2022-04-21 12:08 ` [PATCH 03/14] rtw89: pci: reclaim TX BD only if it really need Ping-Ke Shih
2022-04-21 12:08 ` [PATCH 04/14] rtw89: pci: does RX in interrupt threadfn if low power mode Ping-Ke Shih
2022-04-23 12:32 ` Kalle Valo
2022-04-23 12:37 ` Kalle Valo
2022-04-24 2:58 ` Pkshih
2022-04-24 4:15 ` Kalle Valo
2022-04-21 12:08 ` [PATCH 05/14] rtw89: ser: re-enable interrupt in threadfn if under_recovery Ping-Ke Shih
2022-04-21 12:08 ` [PATCH 06/14] rtw89: ps: access TX/RX rings via another registers in low power mode Ping-Ke Shih
2022-04-21 12:08 ` [PATCH 07/14] rtw89: pci: allow to process RPP prior to TX BD Ping-Ke Shih
2022-04-21 12:08 ` [PATCH 08/14] rtw89: don't flush hci queues and send h2c if power is off Ping-Ke Shih
2022-04-21 12:08 ` [PATCH 09/14] rtw89: add RF H2C to notify firmware Ping-Ke Shih
2022-04-21 12:08 ` [PATCH 10/14] rtw89: 8852c: configure default BB TX/RX path Ping-Ke Shih
2022-04-21 12:09 ` [PATCH 11/14] rtw89: 8852c: implement chip_ops related to TX power Ping-Ke Shih
2022-04-21 12:09 ` [PATCH 12/14] rtw89: 8852c: implement chip_ops::get_thermal Ping-Ke Shih
2022-04-21 12:09 ` [PATCH 13/14] rtw89: 8852c: fill freq and band of RX status by PPDU report Ping-Ke Shih
2022-04-21 12:09 ` [PATCH 14/14] rtw89: 8852c: add chip_ops related to BTC Ping-Ke Shih
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220421120903.73715-1-pkshih@realtek.com \
--to=pkshih@realtek.com \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).