From: Greg KH <gregkh@linuxfoundation.org>
To: Ping-Ke Shih <pkshih@realtek.com>
Cc: stable@vger.kernel.org
Subject: Re: [PATCH 6.3.y] wifi: rtw89: correct PS calculation for SUPPORTS_DYNAMIC_PS
Date: Mon, 12 Jun 2023 12:01:05 +0200 [thread overview]
Message-ID: <2023061255-disband-regally-b86e@gregkh> (raw)
In-Reply-To: <20230612024049.10456-1-pkshih@realtek.com>
On Mon, Jun 12, 2023 at 10:40:49AM +0800, Ping-Ke Shih wrote:
> This driver relies on IEEE80211_CONF_PS of hw->conf.flags to turn off PS or
> turn on dynamic PS controlled by driver and firmware. Though this would be
> incorrect, it did work before because the flag is always recalculated until
> the commit 28977e790b5d ("wifi: mac80211: skip powersave recalc if driver SUPPORTS_DYNAMIC_PS")
> is introduced by kernel 5.20 to skip to recalculate IEEE80211_CONF_PS
> of hw->conf.flags if driver sets SUPPORTS_DYNAMIC_PS.
>
> Correct this by doing recalculation while BSS_CHANGED_PS is changed and
> interface is added or removed. For now, it is allowed to enter PS only if
> single one station vif is working, and it could possible to have PS per
> vif after firmware can support it. Without this fix, driver doesn't
> enter PS anymore that causes higher power consumption.
>
> Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
> Cc: stable@vger.kernel.org # 6.1+
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
> Signed-off-by: Kalle Valo <kvalo@kernel.org>
> Link: https://lore.kernel.org/r/20230527082939.11206-3-pkshih@realtek.com
> (cherry picked from commit 26a125f550a3bf86ac91d38752f4d446426dfe1c)
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
> ---
> drivers/net/wireless/realtek/rtw89/mac80211.c | 16 +++++-------
> drivers/net/wireless/realtek/rtw89/ps.c | 26 +++++++++++++++++++
> drivers/net/wireless/realtek/rtw89/ps.h | 1 +
> 3 files changed, 34 insertions(+), 9 deletions(-)
All backports now queued up, thanks.
greg k-h
prev parent reply other threads:[~2023-06-12 10:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-11 12:13 FAILED: patch "[PATCH] wifi: rtw89: correct PS calculation for SUPPORTS_DYNAMIC_PS" failed to apply to 6.3-stable tree gregkh
2023-06-12 2:40 ` [PATCH 6.3.y] wifi: rtw89: correct PS calculation for SUPPORTS_DYNAMIC_PS Ping-Ke Shih
2023-06-12 10:01 ` Greg KH [this message]
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=2023061255-disband-regally-b86e@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=pkshih@realtek.com \
--cc=stable@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