linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hughd@google.com>
To: Damian Tometzki <damian@riscv-rocks.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	 miriam.rachel.korenblit@intel.com,
	linux-wireless@vger.kernel.org,  linux-kernel@vger.kernel.org
Subject: Re: wlwifi AX201: WARN_ON in iwl_mvm_mld_mac_ctxt_cmd_common repeated UMAC FW crashes on 6.16-rc2
Date: Sun, 22 Jun 2025 17:00:04 -0700 (PDT)	[thread overview]
Message-ID: <e179da27-feb6-36fe-0a3b-bc24fb00b62d@google.com> (raw)
In-Reply-To: <CAL=B37mqrHOzEQzPX3=6S5XaUZexYRUXNBgUuGsiX6+4iHWO8g@mail.gmail.com>

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

On Sun, 22 Jun 2025, Damian Tometzki wrote:
> On Sun, Jun 22, 2025 at 6:30 PM Damian Tometzki <damian@riscv-rocks.de> wrote:
> >
> > Hi Miri,
> > Hi all,
> >
> > with v6.16-rc2 I consistently hit a Wi-Fi firmware crash on a
> > Lenovo ThinkPad X1 Carbon Gen 9.
> >
> > Hardware / FW
> > -------------
> >  * NIC  : Intel Wi-Fi 6 AX201 160 MHz (PCI ID a0f0:0070, rev 0x351)
> >  * FW   : 77.864baa2e.0 QuZ-a0-hr-b0-77.ucode (auto-loaded)
> >  * BIOS : N32ET96W (1.72)
> >  * Platform: 20XWCTO1WW
> >
> > Kernel: 6.16.0-rc2 #440 PREEMPT(lazy)
> >
> > Symptoms
> > --------
> > Immediately after NetworkManager (or plain `ip link set wlp0s20f3 up`)
> > the driver warns:
> >
> >     WARNING at drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c:37
> >     iwl_mvm_mld_mac_ctxt_cmd_common+0x175/0x1d0
> >
> > The firmware then aborts:
> >
> >     FW error in SYNC CMD MAC_CONFIG_CMD
> >     NMI_INTERRUPT_UMAC_FATAL
> >     ADVANCED_SYSASSERT 0x20103126
> >     Microcode SW error detected. Restarting 0x0.
> >
> > The cycle repeats every few seconds; the interface never becomes usable.
> > Full dmesg attached.
> >
> > --
> > VG
> > Demian Tometzki
> 
> Hi together,
> 
> I identified commit 83f3ac2848b46e3e5af5d06b5f176c as the cause of the issue.
> After reverting it, the system is working again.
> 
> Best regards
> Damian

I have a similar Lenovo X1 Carbon Gen 9: saw no problem on rc1 or rc2,
but vey much this problem on today's 6.16-rc3.

Patch from Miri's reply (attachment without context so I'm replying
to this not that) inlined below, works nicely for me: thank you.
I've removed Change-Id and Organization tags.

Hugh

From: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Date: Sun, 22 Jun 2025 23:42:04 +0300
Subject: [PATCH] wifi: iwlwifi: mvm: assume '1' as the default mac_config_cmd
 version

Unfortunately, FWs of some devices don't have the version of the
iwl_mac_config_cmd defined in the TLVs. We send 0 as the 'def argument
to  iwl_fw_lookup_cmd_ver, so for such FWs, the return value will be 0,
leading to a warning, and to not sending the command.

Fix this by assuming that the default version is 1.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c
index 3c255ae916c8..48ab6a2a98cc 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mld-mac.c
@@ -32,7 +32,7 @@ static void iwl_mvm_mld_mac_ctxt_cmd_common(struct iwl_mvm *mvm,
 	unsigned int link_id;
 	int cmd_ver = iwl_fw_lookup_cmd_ver(mvm->fw,
 					    WIDE_ID(MAC_CONF_GROUP,
-						    MAC_CONFIG_CMD), 0);
+						    MAC_CONFIG_CMD), 1);
 
 	if (WARN_ON(cmd_ver < 1 || cmd_ver > 3))
 		return;
-- 
2.34.1

  parent reply	other threads:[~2025-06-23  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <aFgvmhSbup2BnUHu@fedora>
2025-06-22 19:45 ` wlwifi AX201: WARN_ON in iwl_mvm_mld_mac_ctxt_cmd_common repeated UMAC FW crashes on 6.16-rc2 Damian Tometzki
2025-06-22 20:52   ` Korenblit, Miriam Rachel
2025-06-23  0:00   ` Hugh Dickins [this message]
2025-06-23  4:00     ` Damian Tometzki
2025-06-22 16:30 Damian Tometzki

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=e179da27-feb6-36fe-0a3b-bc24fb00b62d@google.com \
    --to=hughd@google.com \
    --cc=damian@riscv-rocks.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=miriam.rachel.korenblit@intel.com \
    --cc=torvalds@linux-foundation.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).