All of lore.kernel.org
 help / color / mirror / Atom feed
* iwlwifi Backport Request
@ 2021-12-28  0:59 Kevin Anderson
  2021-12-28  6:46 ` Coelho, Luciano
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Anderson @ 2021-12-28  0:59 UTC (permalink / raw)
  To: gregkh, luciano.coelho, johannes, stable, ilan.peer, johannes.berg

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

Hello,

I wanted to see if I could have two patches backported to 5.15 stable
that concern Intel iwlwifi AX2XX stability.

The patches are attached to the kernel bugzilla that can be found
here: https://bugzilla.kernel.org/show_bug.cgi?id=214549. I've also
attached them to this email.

The patches fix an issue with the Intel AX210 that I have where it can
cause a firmware reset when the device is under load causing
performance to drop to around ~500Kb/s till the interface is
restarted. This reset is easy to reproduce during normal use such as
streaming videos and is problematic for devices such as laptops that
primarily use wifi for connectivity.

The mac80211 change is currently in the 5.16 RC and the scan timeout
is in netdev-next and is supposed to be scheduled for 5.17 from what I
can tell.

I believe that the patches meet the requirements of the -stable tree
as it makes the adapter for many users including myself difficult to
use reliably.

If this is the incorrect venue for this please let me know.

Thanks,
Kevin Anderson

[-- Attachment #2: 0001-mac80211-mark-TX-during-stop-for-TX-in-in_reconfig.patch --]
[-- Type: text/x-patch, Size: 1396 bytes --]

From eee0d59654fc5bb3727ac4364101a604e322b313 Mon Sep 17 00:00:00 2001
From: Johannes Berg <johannes.berg@intel.com>
Date: Mon, 12 Jul 2021 17:53:03 +0200
Subject: [PATCH] mac80211: mark TX-during-stop for TX in in_reconfig

Mark TXQs as having seen transmit while they were stopped if
we bail out of drv_wake_tx_queue() due to reconfig, so that
the queue wake after this will make them catch up. This is
particularly necessary for when TXQs are used for management
packets since those TXQs won't see a lot of traffic that'd
make them catch up later.

Cc: stable@vger.kernel.org
Fixes: 4856bfd23098 ("mac80211: do not call driver wake_tx_queue op during reconfig")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 net/mac80211/driver-ops.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 604ca59937f0..d98a05061986 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -1201,8 +1201,11 @@ static inline void drv_wake_tx_queue(struct ieee80211_local *local,
 {
 	struct ieee80211_sub_if_data *sdata = vif_to_sdata(txq->txq.vif);
 
-	if (local->in_reconfig)
+	/* In reconfig don't transmit now, but mark for waking later */
+	if (local->in_reconfig) {
+		set_bit(IEEE80211_TXQ_STOP_NETIF_TX, &txq->flags);
 		return;
+	}
 
 	if (!check_sdata_in_driver(sdata))
 		return;
-- 
2.17.1


[-- Attachment #3: 0001-iwlwifi-mvm-Increase-the-scan-timeout-guard-to-30-se.patch --]
[-- Type: text/x-patch, Size: 1385 bytes --]

From fa9f057b7ba73e9da0dbd0abf2b0266742471e9c Mon Sep 17 00:00:00 2001
From: Ilan Peer <ilan.peer@intel.com>
Date: Mon, 29 Nov 2021 11:13:31 +0200
Subject: [PATCH] iwlwifi: mvm: Increase the scan timeout guard to 30 seconds

With the introduction of 6GHz channels the scan guard timeout should
be adjusted to account for the following extreme case:

- All 6GHz channels are scanned passively: 58 channels.
- The scan is fragmented with the following parameters: 3 fragments,
  95 TUs suspend time, 44 TUs maximal out of channel time.

The above would result with scan time of more than 24 seconds. Thus,
set the timeout to 30 seconds.

type=bugfix
ticket=jira:WIFI-157075
fixes=unknown

Change-Id: I346fa2e1d79220a6770496e773c6f87a2ad9e6c4
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c
index ee3aff8bf7c2..3853222911d9 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c
@@ -2478,7 +2478,7 @@ static int iwl_mvm_check_running_scans(struct iwl_mvm *mvm, int type)
 	return -EIO;
 }
 
-#define SCAN_TIMEOUT 20000
+#define SCAN_TIMEOUT 30000
 
 void iwl_mvm_scan_timeout_wk(struct work_struct *work)
 {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: iwlwifi Backport Request
  2021-12-28  0:59 iwlwifi Backport Request Kevin Anderson
@ 2021-12-28  6:46 ` Coelho, Luciano
  2021-12-28 22:12   ` Kevin Anderson
  0 siblings, 1 reply; 5+ messages in thread
From: Coelho, Luciano @ 2021-12-28  6:46 UTC (permalink / raw)
  To: andersonkw2, gregkh, johannes, stable, Berg, Johannes, Peer, Ilan

On Mon, 2021-12-27 at 19:59 -0500, Kevin Anderson wrote:
> Hello,

Hi Kevin,


> I wanted to see if I could have two patches backported to 5.15 stable
> that concern Intel iwlwifi AX2XX stability.
> 
> The patches are attached to the kernel bugzilla that can be found
> here: https://bugzilla.kernel.org/show_bug.cgi?id=214549. I've also
> attached them to this email.
> 
> The patches fix an issue with the Intel AX210 that I have where it can
> cause a firmware reset when the device is under load causing
> performance to drop to around ~500Kb/s till the interface is
> restarted. This reset is easy to reproduce during normal use such as
> streaming videos and is problematic for devices such as laptops that
> primarily use wifi for connectivity.
> 
> The mac80211 change is currently in the 5.16 RC and the scan timeout
> is in netdev-next and is supposed to be scheduled for 5.17 from what I
> can tell.
> 
> I believe that the patches meet the requirements of the -stable tree
> as it makes the adapter for many users including myself difficult to
> use reliably.
> 
> If this is the incorrect venue for this please let me know.

You can send the patches directly yourself, but not as attachments and
with with the following tag added:

commit <SHA1 of the commit in Linus' tree> upstream.

You can find more info on how to do it here:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst


Thanks for your help!

--
Cheers,
Luca.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iwlwifi Backport Request
  2021-12-28  6:46 ` Coelho, Luciano
@ 2021-12-28 22:12   ` Kevin Anderson
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Anderson @ 2021-12-28 22:12 UTC (permalink / raw)
  To: Coelho, Luciano; +Cc: gregkh, johannes, stable, Berg, Johannes, Peer, Ilan

Hi Luca,

Thank you for the guidance!

- Kevin

On Tue, Dec 28, 2021 at 1:46 AM Coelho, Luciano
<luciano.coelho@intel.com> wrote:
>
> On Mon, 2021-12-27 at 19:59 -0500, Kevin Anderson wrote:
> > Hello,
>
> Hi Kevin,
>
>
> > I wanted to see if I could have two patches backported to 5.15 stable
> > that concern Intel iwlwifi AX2XX stability.
> >
> > The patches are attached to the kernel bugzilla that can be found
> > here: https://bugzilla.kernel.org/show_bug.cgi?id=214549. I've also
> > attached them to this email.
> >
> > The patches fix an issue with the Intel AX210 that I have where it can
> > cause a firmware reset when the device is under load causing
> > performance to drop to around ~500Kb/s till the interface is
> > restarted. This reset is easy to reproduce during normal use such as
> > streaming videos and is problematic for devices such as laptops that
> > primarily use wifi for connectivity.
> >
> > The mac80211 change is currently in the 5.16 RC and the scan timeout
> > is in netdev-next and is supposed to be scheduled for 5.17 from what I
> > can tell.
> >
> > I believe that the patches meet the requirements of the -stable tree
> > as it makes the adapter for many users including myself difficult to
> > use reliably.
> >
> > If this is the incorrect venue for this please let me know.
>
> You can send the patches directly yourself, but not as attachments and
> with with the following tag added:
>
> commit <SHA1 of the commit in Linus' tree> upstream.
>
> You can find more info on how to do it here:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst
>
>
> Thanks for your help!
>
> --
> Cheers,
> Luca.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iwlwifi Backport Request
  2021-12-28 16:37 Thomas Backlund
@ 2021-12-28 22:10 ` Kevin Anderson
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Anderson @ 2021-12-28 22:10 UTC (permalink / raw)
  To: Thomas Backlund
  Cc: gregkh, Luciano Coelho, johannes, stable, ilan.peer, johannes.berg

On Tue, Dec 28, 2021 at 11:37 AM Thomas Backlund <tmb@tmb.nu> wrote:
>
> Den 2021-12-28 kl. 02:59, skrev Kevin Anderson:
> > Hello,
> >
> > I wanted to see if I could have two patches backported to 5.15 stable
> > that concern Intel iwlwifi AX2XX stability.
> >
> > The patches are attached to the kernel bugzilla that can be found
> > here: https://bugzilla.kernel.org/show_bug.cgi?id=214549. I've also
> > attached them to this email.
> >
> > The patches fix an issue with the Intel AX210 that I have where it can
> > cause a firmware reset when the device is under load causing
> > performance to drop to around ~500Kb/s till the interface is
> > restarted. This reset is easy to reproduce during normal use such as
> > streaming videos and is problematic for devices such as laptops that
> > primarily use wifi for connectivity.
> >
> > The mac80211 change is currently in the 5.16 RC and the scan timeout
> > is in netdev-next and is supposed to be scheduled for 5.17 from what I
> > can tell.
> >  > I believe that the patches meet the requirements of the -stable tree
> > as it makes the adapter for many users including myself difficult to
> > use reliably.
> >
>
> The mac80211 change was/is marked for stable@ and is already in 5.15.11
>
>
> the scan timeout is only in a -next tree (as you already noted),
> so it cant land in 5.15 stable until it is also in linus tree...
>
>
> --
> Thomas
>

Hi Thomas,

Thank you. I missed the fact that the mac80211 change was already
tagged for stable. I will keep an eye for the other change to land in
linus' tree and submit it for stable if it isn't submitted by the
maintainer.

- Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iwlwifi Backport Request
@ 2021-12-28 16:37 Thomas Backlund
  2021-12-28 22:10 ` Kevin Anderson
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Backlund @ 2021-12-28 16:37 UTC (permalink / raw)
  To: Kevin Anderson, gregkh, luciano.coelho, johannes, stable,
	ilan.peer, johannes.berg

Den 2021-12-28 kl. 02:59, skrev Kevin Anderson:
> Hello,
>
> I wanted to see if I could have two patches backported to 5.15 stable
> that concern Intel iwlwifi AX2XX stability.
>
> The patches are attached to the kernel bugzilla that can be found
> here: https://bugzilla.kernel.org/show_bug.cgi?id=214549. I've also
> attached them to this email.
>
> The patches fix an issue with the Intel AX210 that I have where it can
> cause a firmware reset when the device is under load causing
> performance to drop to around ~500Kb/s till the interface is
> restarted. This reset is easy to reproduce during normal use such as
> streaming videos and is problematic for devices such as laptops that
> primarily use wifi for connectivity.
>
> The mac80211 change is currently in the 5.16 RC and the scan timeout
> is in netdev-next and is supposed to be scheduled for 5.17 from what I
> can tell.
>  > I believe that the patches meet the requirements of the -stable tree
> as it makes the adapter for many users including myself difficult to
> use reliably.
>

The mac80211 change was/is marked for stable@ and is already in 5.15.11


the scan timeout is only in a -next tree (as you already noted),
so it cant land in 5.15 stable until it is also in linus tree...


--
Thomas


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-28 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28  0:59 iwlwifi Backport Request Kevin Anderson
2021-12-28  6:46 ` Coelho, Luciano
2021-12-28 22:12   ` Kevin Anderson
2021-12-28 16:37 Thomas Backlund
2021-12-28 22:10 ` Kevin Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.