| Message ID | 20250612061619.22094-1-michael@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCXK73FY3AFRBO7BVHBAMGQE3GXAVAQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com
[209.85.128.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 297793F0F4
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 12 Jun 2025 08:16:29 +0200 (CEST)
Received: by mail-wm1-f71.google.com with SMTP id
5b1f17b1804b1-451dda846a0sf3769255e9.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 11 Jun 2025 23:16:29 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1749708988; cv=pass;
d=google.com; s=arc-20240605;
b=Y8XL4D4W4y5d++3ZvJpJqX3QfD/Q1DvFfQ+6Jvql4XZW2DkXSnDm5BKAiSyP8cT69R
GSX6XH8kjIkjNusA37wM63tTZkGNIVF+C2fBxJX/NziO4MyQwS5oxJgZRQWPhSyrRZBd
69Re5jBmbVVocE7aRzIrA6Hebggean5J+qEclV03qUNAFqVWH+owVaD4RRe8hv+lak8N
PiSGjdCJKw7kL95ecf0dsZvJ0OhcAgCI1marO5zL6G8qI4xVhEcq1eA53sU2Jb37xkc7
trFNvr45wOSgPEtP/divuuMNtJTnO1QnAJLfe86SgTJblsV4aw9PxXC4C9shZT+BSESp
dTsw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=pBrbbtdPxKoq3zLAyL4Ks+Q5ObF3PnQbsq6LTpgiQfA=;
fh=LxbklDxV6EfTLOQp3sXW4lLp6v109+iitM2SJOOQXAQ=;
b=VTBDzWlkL4bhgFkJhbw5biyos849eNmowgzMO/ENl9Kez1r83BzXfa1hW/M0Zv7QyF
XuaqCZfhntRiypdd/4eN87LOauEMrtp3K39bd19D+/zrREKBPAtJf5IwvNAvCsA1g9kr
w87arRhXCyyg8zikhyY0A4/Gb9L0IVlHSHRgCrvLe7ypFu/cd67xh8ltlBDevylqhl/i
HsL/H8bQqOFXuiOgAVhVKkOggg2BGHUtGILK8PLNGSjfvtmjPIa5QmOwMcv2FhRmkUIV
GVrAi9zbl8IDr9jYgcbxxA3zKxxqAvN2Uz3Uroy30hnFjbvWH9q4p3ACHwyKhs9CHtTe
a5sA==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="kvoxZNM/";
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1749708988; x=1750313788;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:message-id:date:subject:cc:to:from
:from:to:cc:subject:date:message-id:reply-to;
bh=pBrbbtdPxKoq3zLAyL4Ks+Q5ObF3PnQbsq6LTpgiQfA=;
b=DH7I4A/SkAETLg7AoFBSv0+YIV/iKxxETc5CZj89BFvfUArkIMQIJiV/qanqrevqFt
IhAuMvBONuYTFeNpUUsktBiaHDq8Q+zWlZVGQlUWx3XgWFOlj74PLIDPTikepHCmaAGv
o97paRyw4jkXselnbR6n+GEZe9dTC+lfucOIo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1749708988; x=1750313788;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=pBrbbtdPxKoq3zLAyL4Ks+Q5ObF3PnQbsq6LTpgiQfA=;
b=RREDDDdEkqb6cFKrMm4p+FsxyKgYfnIDAtH8sS1laPiFFoaOcwYsJY0kG37mPgvlZP
3NC7pfEDYYlt8tg3KoV4ie1WE254Iz/txvevgN1HIhEJ+GeVKVNYyeoWfdpt3Xwid+sX
ygS3XLCOAxaiwrM8Szg8uz5a/zSWi++olJ5I9u+b0av49J4oawKhbsG0SUrnGM5J2xU8
qkCJil0fwIpwDMgpwz/BfoaY2bT8lvshfKR2nlMZfmHWTgvgHth+xxopjou7tZBWMKAf
lF0g2Qhuii51hGQ3iZOHr3CYj7REhx0wN7nvWrV4KOlFFlh8tcJbV9pOUCV+FPhV4njo
5JnQ==
X-Forwarded-Encrypted: i=2;
AJvYcCUKbA4XfvhaNosMPAtYpR+wRGUrEu61dQAjKXpc30BvSXZQFKEpYsaUzFXLJW+iZuo8Age9XjMEPxmWlLkC@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yw4FanHCa268NurJW5v6dBW0TQFoa59e9npJTgATqPNK5Be5UWs
zOkYVrhfhrnfeZMerBl6g5RjgKXNjYLEhezDfRBxYZGlXSRKI7ejLbka00QWchffobjaGQ==
X-Google-Smtp-Source:
AGHT+IEr2KOvZpnJTy5k6i6jHoehDdGjaUXpmmn2XMGm3PH571sxZdKt2yOSZdeNbwK4n3C/atGstA==
X-Received: by 2002:a05:600c:8115:b0:453:745:8534 with SMTP id
5b1f17b1804b1-4532d2db38fmr15243395e9.12.1749708988219;
Wed, 11 Jun 2025 23:16:28 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h=AZMbMZdkkCk5VMtb8OY+kJDv8lXzOQQgPCqZFa6gdZcKTpRtpQ==
Received: by 2002:a05:6000:420a:b0:3a3:7675:909 with SMTP id
ffacd0b85a97d-3a560191bacls251507f8f.2.-pod-prod-07-eu; Wed, 11 Jun 2025
23:16:26 -0700 (PDT)
X-Received: by 2002:a05:6000:250f:b0:3a4:fbd9:58e6 with SMTP id
ffacd0b85a97d-3a5614dbab3mr1280490f8f.50.1749708985813;
Wed, 11 Jun 2025 23:16:25 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1749708985; cv=none;
d=google.com; s=arc-20240605;
b=FCTQtD9bFNV8mGD7hLJ8k6l9TYneQR79SwDXxS1le6fdRYLnWeecGjXuV2DIN/1CNx
ZqCnJOcBsCXUWhWOGBOscZCf/8T7YfQW/MWkVK64j0qbiRoIG0Ed/PFRLPXBcyylg/3x
3XJJfy6KGeYozYjivhJg/xmZ8FTSwU0deh5FowZOBemhMEcCItzNV+mW+W65givHZP0K
V8Knl5c7DWdiVPnG9w108M62ifqmMdSCt+EELjfdA/bnvJrmoMqbaSWMl8gpw3Efte0b
vSUk8H6IASryBKunoiVwq3HgWvy/MlYMdmJKTP/gHvuCFToEBp7NTV37np0fClOVvPIV
0GMw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=ScgjUpaPfHbqDIMCPtaXg6Ano9ZrKG6mzFmgIhysYwY=;
fh=tIqdSX2ipxHwkyYkfYL5FzWDmbrOvABUsZEN976iRqY=;
b=by/GPkXDl6mOKHBPtKkAPeD7x6e5wQYXYz/hhGuEs/uALqQnTJzDLa6vS5/tzGsswi
fL/8dh9KTVqC2nGBpw54xrm9uT16+yIHmd7/Qn+tDMhtjELFSjrkyCzkIOldCNK54pUT
XGYkE4CVc/L6k+pw0HrSN0eNsv/z1p6utFswdQoslPu1f/8ZQqGTZwfytDxVrIVMJ5j3
6Ydpc80wGqxbBI3sF72T/xckCR5s5QldbPPJn7fYCaOtyd0Yfj9boM+aD3WapPFe8Y6e
+3hG6+frMy87KKzvnvquH8g0+6S6KLqxOSGLOJoihwFylJqNmY6cPsLBCSb4m3VIdz+N
X1NQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b="kvoxZNM/";
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-4532da48584sor2827685e9.5.2025.06.11.23.16.25
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Wed, 11 Jun 2025 23:16:25 -0700 (PDT)
Received-SPF: pass (google.com: domain of michael@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Gm-Gg: ASbGncs6e4Cu9urmv7H6P/G3wc2iPJDucjxdh4BhLq/XAZ3xHnw4z3dGRQ7G/jJUvml
mFFXSnC7DMmYvMvLmXjpe6emq2qaN3m0Jo9B3D8KPuwBfD7fFhOgLEvyuGuZRWJjmoBjWO6pwmH
p7MEWdq4tNzx6qDKIRG8d2sxC4JNZy/b0m5Pl3ksyG9tAkGqyR716a3hXd4n1aj2Px2OycmRKef
mTa7QiU6iv5v4lY0aSmE21PD5XFluibQKDXJz7Bh0zW2c3dx+uBr+g3kt9hMxo2ryWlgQBjY+rD
DuBznNj3YU5yOSKR8f0Hk7KoNQdMlMRIwcjrPf+XlJyNR+9m59y5ijz/QJnE8FeKNh2VAHzoWn2
NSsI/tZguCyGv6g==
X-Received: by 2002:a05:600c:37c5:b0:442:faa3:fadb with SMTP id
5b1f17b1804b1-4532d2bd72dmr12505585e9.2.1749708985332;
Wed, 11 Jun 2025 23:16:25 -0700 (PDT)
Received: from localhost.localdomain
([2001:b07:6467:4426:b34c:fa23:a49e:c18c])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-4531fe840a3sm53716255e9.0.2025.06.11.23.16.23
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 11 Jun 2025 23:16:24 -0700 (PDT)
From: Michael Trimarchi <michael@amarulasolutions.com>
To: Jeff Johnson <jjohnson@kernel.org>
Cc: linux-amarula@amarulasolutions.com,
Michael Trimarchi <michael@amarulasolutions.com>,
ath11k@lists.infradead.org,
linux-kernel@vger.kernel.org,
linux-wireless@vger.kernel.org
Subject: [RFC PATCH] wifi: ath11k: Prevent sending WMI commands to firmware
during firmware crash
Date: Thu, 12 Jun 2025 08:16:15 +0200
Message-ID: <20250612061619.22094-1-michael@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
MIME-Version: 1.0
X-Original-Sender: michael@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b="kvoxZNM/";
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
|
| Related |
show
|
diff --git a/drivers/net/wireless/ath/ath11k/mhi.c b/drivers/net/wireless/ath/ath11k/mhi.c index acd76e9392d31..af7ff4fc794de 100644 --- a/drivers/net/wireless/ath/ath11k/mhi.c +++ b/drivers/net/wireless/ath/ath11k/mhi.c @@ -286,8 +286,11 @@ static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, break; } - if (!(test_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags))) + if (!(test_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags))) { + set_bit(ATH11K_FLAG_CRASH_FLUSH, &ab->dev_flags); + set_bit(ATH11K_FLAG_RECOVERY, &ab->dev_flags); queue_work(ab->workqueue_aux, &ab->reset_work); + } break; default:
Set the ATH11K_FLAG_CRASH_FLUSH and ATH11K_FLAG_RECOVERY flags when the host driver receives the firmware crash notification from MHI. This prevents sending WMI commands to the firmware during recovery. We want to prevent the laptop from freezing or becoming extremely slow when its firmware repeatedly crashes while attempting to connect to a known Wi-Fi network. This often happens with routers that intermittently fail to reconnect until the access point is reset. While this solution doesn't fix the underlying router issue, it would allow the laptop to select a different Wi-Fi network and significant performance degradation during the recovery process. [75795.712161] ath11k_pci 0000:02:00.0: firmware crashed: MHI_CB_EE_RDDM [75797.738073] ath11k_pci 0000:02:00.0: wmi command 262145 timeout [75797.738090] ath11k_pci 0000:02:00.0: Failed to send WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID [75797.738101] ath11k_pci 0000:02:00.0: failed to set vdev 0 OBSS PD parameters: -11 [75800.746321] ath11k_pci 0000:02:00.0: wmi command 20488 timeout [75800.746344] ath11k_pci 0000:02:00.0: failed to send WMI_VDEV_SET_PARAM_CMDID [75800.746358] ath11k_pci 0000:02:00.0: failed to set vdev 0 dtim policy: -11 [75803.754345] ath11k_pci 0000:02:00.0: wmi command 237571 timeout [75803.754360] ath11k_pci 0000:02:00.0: failed to send WMI_11D_SCAN_STOP_CMDID: -11 [75803.754371] ath11k_pci 0000:02:00.0: failed to stopt 11d scan vdev 0 ret: -11 [75806.762259] ath11k_pci 0000:02:00.0: wmi command 28684 timeout [75806.762281] ath11k_pci 0000:02:00.0: Failed to send WMI_BSS_COLOR_CHANGE_ENABLE_CMDID [75806.762294] ath11k_pci 0000:02:00.0: failed to enable bss color change on vdev 0: -11 [75809.770916] ath11k_pci 0000:02:00.0: wmi command 172035 timeout [75809.770930] ath11k_pci 0000:02:00.0: Failed to send WMI_OBSS_COLOR_COLLISION_DET_CONFIG_CMDID [75809.770938] ath11k_pci 0000:02:00.0: failed to set bss color collision on vdev 0: -11 [75809.770966] wlp2s0: associated [75809.771051] wlp2s0: deauthenticating from a0:95:7f:45:e8:47 by local choice (Reason: 3=DEAUTH_LEAVING) [75809.782908] ieee80211 phy0: Hardware restart was requested [75809.782932] ath11k_pci 0000:02:00.0: failed to lookup peer a0:95:7f:45:e8:47 on vdev 0 [75812.842136] ath11k_pci 0000:02:00.0: wmi command 20488 timeout [75812.842153] ath11k_pci 0000:02:00.0: failed to send WMI_VDEV_SET_PARAM_CMDID [75812.842164] ath11k_pci 0000:02:00.0: Failed to set CTS prot for VDEV: 0 [75815.850227] ath11k_pci 0000:02:00.0: wmi command 20488 timeout Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> --- drivers/net/wireless/ath/ath11k/mhi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)