Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4450283pxb; Wed, 20 Apr 2022 03:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytPf9XRbUoo4VGClw0vupr6c5ZB9OrZf17QFp0TWzB2ebbltdXCMFmX56MygSQfHPjJMuF X-Received: by 2002:a17:907:629c:b0:6e1:6ad:5dd8 with SMTP id nd28-20020a170907629c00b006e106ad5dd8mr17043263ejc.641.1650450950609; Wed, 20 Apr 2022 03:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650450950; cv=none; d=google.com; s=arc-20160816; b=xHNd3GF0bw0wbrSktgCU4kUuUzBhO+bAsSe/EzEy3CfdzOwWh3y4L2lbQvWTtu8rc2 HNtznAM7i8ngdKdh26OhhE5B6fDPVH6fElMsb0tDJ/d/XTEs5DotlPu+MdAAuupnfA94 UZjIjWir8fqI9VAmVSFk8W+LPTz95AUHeihUPANi3iqI8tt4ZqlMu7SN40jDK4u2ywGJ JXbr6ixnGR7szuD4ABRdNFIurBu2qn7DgaCXJ3fmj4XKKYZwFXPs9d5byh15pN7r6TT5 eYQ+TFLBUFc+16FcnAikXfzU9bLC+FzAnAMnS7vnvQQDtzfu9a4PmXSpYIu716CfSnZE L55w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :from; bh=sgyTYPkoU5GFvjo1l4/iQpjf8bs/p/oL5PdzXmlTjao=; b=tUNMOgyKW3mmf4eLAx73jOilkv9m9LHEvK7A5g7dSfm5lorxAeHYyhtssp+mm3Xrsd F4CurCfe7KU9pMYPY7kfAwxKz6uATXYMnXJHSzYBUP7G5addaRcFRSv5xR3q04H9uUvB wXdgXMSH/FnhHEBw9s9yPjy+jB5k/otQ7b1CbxPexIes0HIpjn4b4JznnzijI7oPCgz0 3WpcN7o5yk7aOi4wsj93d9Y/bhqslGgyqoRTToFGkt/rulRSR9fFfaMz9xy1pstwVklP ekiXnvT4Mt1po+OZjzYxXl1sTZT2O1+kRJvOrbdaGM2qCK59vJonJ2bxao2lFJqWTVlB uLBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=JfMtHmG0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g7-20020a056402424700b0041d78c5d503si1255810edb.514.2022.04.20.03.35.33; Wed, 20 Apr 2022 03:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@toke.dk header.s=20161023 header.b=JfMtHmG0; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=toke.dk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377331AbiDTJwI (ORCPT + 66 others); Wed, 20 Apr 2022 05:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350547AbiDTJwH (ORCPT ); Wed, 20 Apr 2022 05:52:07 -0400 Received: from mail.toke.dk (mail.toke.dk [45.145.95.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A98E38781 for ; Wed, 20 Apr 2022 02:49:20 -0700 (PDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1650448159; bh=uWh15eKgUDnDFx4SW9NadA0nfRIrzB86LhvimqtPQWo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=JfMtHmG06UVG6rXXSstXKFy0WWkbJzPopBju+EfIXe31B877IvMJcHrHaMvK4Rd15 5sNHdu88kURykUOoLioIBXE000FJ95w7XiZ7T9sP0RzVCZHP7nR9yJDd+UA8XY1PSI RPx++6ms6nsKzg7xsCYAG0E391uU3+Q1MNuCA046Xwmus8g/SVIgrj4IE+8K3B79kC gXXwoYz6nWMRIxVA/VcbRdfYlJydBtBwl/kQJGjKasSzicRmWfHd1xpHg8zJ5li1/9 FtoyXjFi67ckhaIY3416uWbVj2Tyi99RzzzEwHTLAw/lqbh6eUCtMByu1cT1fKsFul nM4Pz9edf54cA== To: "Grumbach, Emmanuel" , "Coelho, Luciano" Cc: "linux-wireless@vger.kernel.org" , "Greenman, Gregory" , "Stern, Avraham" Subject: Re: iwlwifi devices disappear after suspend on kernel 5.17 In-Reply-To: References: <87czhe39p6.fsf@toke.dk> <1f6188ee5c88ac78a4aadcf169b4b1cc857a84d8.camel@intel.com> <87mtghs3y2.fsf@toke.dk> <94b98b712b86690dd5ae19df0cc608b8193be1f3.camel@intel.com> <877d7kn62t.fsf@toke.dk> Date: Wed, 20 Apr 2022 11:49:17 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87o80whyoy.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org "Grumbach, Emmanuel" writes: > On Tue, 2022-04-19 at 22:58 +0200, Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> "Grumbach, Emmanuel" writes: >>=20 >> > On Tue, 2022-04-19 at 20:46 +0300, Grumbach, Emmanuel wrote: >> > > On Tue, 2022-04-19 at 13:33 +0200, Toke H=C3=B8iland-J=C3=B8rgensen = wrote: >> > > > "Grumbach, Emmanuel" writes: >> > > >=20 >> > > > > On Tue, 2022-04-19 at 09:41 +0300, Grumbach, Emmanuel wrote: >> > > > > > Hi Toke, >> > > > > >=20 >> > > > > > On Tue, 2022-04-19 at 06:24 +0000, Coelho, Luciano wrote: >> > > > > > > On Mon, 2022-04-18 at 13:36 +0200, Toke H=C3=B8iland-J=C3=B8= rgensen wrote: >> > > > > > > > Hi Luca >> > > > > > >=20 >> > > > > > > Hi Toke, >> > > > > > >=20 >> > > > > > > > I've started seeing issues with my iwlwifi interface going= away after >> > > > > > > > suspend. I get errors like these in dmesg: >> > > > > > > >=20 >> > > > > > > > [104393.142264] wlan0: deauthenticating from 4c:60:de:ea:b= 8:58 by local choice >> > > > > > > > (Reason: >> > > > > > > > 3=3DDEAUTH_LEAVING) >> > > > > > > > [104393.347775] iwlmei 0000:00:16.0-13280904-7792-4fcb-a1a= a-5e70cbb1e865: Couldn't >> > > > > > > > get >> > > > > > > > ACK >> > > > > > > > from >> > > > > > > > CSME on HOST_GOES_DOWN message >> > > > > > > > [104393.347876] iwlmei 0000:00:16.0-13280904-7792-4fcb-a1a= a-5e70cbb1e865: failed to >> > > > > > > > send >> > > > > > > > the >> > > > > > > > SAP_ME_MSG_CHECK_SHARED_AREA message -19 >> > > > > > > >=20 >> > > > > > > > And when the host comes back up, there is no connectivity.= Restarting >> > > > > > > > iwd fixes the problem. >> > > > > > > >=20 >> > > > > > > > This is on a 5.17.3 kernel (Arch Linux distribution kernel= ), and lspci >> > > > > > > > says the WiFi device is an "Intel Corporation Wi-Fi 6 AX20= 1". >> > > > > > > >=20 >> > > > > > > > Any ideas? :) >> > > > > > >=20 >> > > > > > > This seems to be related to iwlmei, so I added Emmanuel to t= he thread. >> > > > > > >=20 >> > > > > >=20 >> > > > > > Can we have the full dmesg output? >> > > > > > What NIC / platform do you have? >> > > > > > Do you have AMT configured in the BIOS? >> > > > > > Did you enable wireless operation in AMT? >> > > > >=20 >> > > > > Ah - this is AX201, ok, but I still need the platform and theful= l dmesg :-) >> > > >=20 >> > > > It's a Lenovo ThinkPad X1 Carbon Gen 9, model 20XXS3HC26; AMT is s= et to >> > > > "Disabled" in the BIOS. I rebooted and did a suspend/wake cycle af= ter >> > > > connecting to the WiFi network, which produced the dmesg below. >> > >=20 >> > > Thanks. >> > > This is a Skylake platform and we didn't have a handshake with CSME = which is not enabled. We >> > > are >> > > missing a check before we shut down iwlmei. >> >=20 >> > Hm... no, that seems to be 11th generation... so TigerLake? >> > But still, the fix below seems relevant. >>=20 >> Hmm, tried the patch and the message is still there (as is the bug)... >> The error code is different now, though: >>=20 >> [=C2=A0=C2=A0 65.773731] wlan0: deauthenticating from 4c:60:de:ea:b8:5a = by local choice (Reason: >> 3=3DDEAUTH_LEAVING) >> [=C2=A0=C2=A0 65.973767] iwlmei 0000:00:16.0-13280904-7792-4fcb-a1aa-5e7= 0cbb1e865: Couldn't get ACK from >> CSME on HOST_GOES_DOWN message >> [=C2=A0=C2=A0 65.973845] iwlmei 0000:00:16.0-13280904-7792-4fcb-a1aa-5e7= 0cbb1e865: failed to send the >> SAP_ME_MSG_CHECK_SHARED_AREA message -14 >>=20 > > So you do get a SAP connection. Weird. > Checking with the CSME guys. > Can you get dynamic debug prints for iwlmei module? > Best would be tracing with -e iwlmei_sap_cmd Sure! Recorded these while doing a suspend-restore, then restarting iwd: kworker/u16:34-34555 [004] 46452.506238: iwlmei_sap_cmd: sap_cmd Tx= : type 1010 len 8 seq 11 kworker/u16:34-34555 [004] 46452.506243: iwlmei_me_msg: ME message= : Tx: type 3 seq 8 kworker/u16:34-34555 [004] 46452.559407: iwlmei_sap_cmd: sap_cmd Tx= : type 1001 len 4 seq 12 kworker/u16:14-33311 [004] 46452.573077: iwlmei_sap_cmd: sap_cmd Tx= : type 1006 len 0 seq 13 kworker/u16:14-33311 [004] 46452.573078: iwlmei_me_msg: ME message= : Tx: type 3 seq 10 kworker/4:0-34305 [004] 46452.706737: iwlmei_me_msg: ME message= : Tx: type 3 seq 11 kworker/u16:8-34462 [000] 46457.939453: iwlmei_me_msg: ME message= : Tx: type 1 seq 1 kworker/4:2-32196 [004] 46457.940910: iwlmei_me_msg: ME message= : Rx: type 2 seq 81 kworker/4:2-32196 [004] 46457.940912: iwlmei_sap_cmd: sap_cmd Tx= : type 1013 len 0 seq 1 kworker/4:2-32196 [004] 46457.940913: iwlmei_me_msg: ME message= : Tx: type 3 seq 2 kworker/4:2-32196 [004] 46457.942056: iwlmei_me_msg: ME message= : Rx: type 3 seq 82 kworker/4:2-32196 [004] 46457.942060: iwlmei_sap_cmd: sap_cmd Rx= : type 502 len 4 seq 1 kworker/4:2-32196 [004] 46458.042205: iwlmei_me_msg: ME message= : Rx: type 3 seq 83 kworker/4:2-32196 [004] 46458.042208: iwlmei_sap_cmd: sap_cmd Rx= : type 500 len 1896 seq 2 kworker/4:2-32196 [004] 46458.042209: iwlmei_sap_cmd: sap_cmd Rx= : type 512 len 64 seq 3 kworker/4:2-32196 [004] 46458.042214: iwlmei_sap_cmd: sap_cmd Rx= : type 502 len 4 seq 4 iwd-35396 [003] 46467.085642: iwlmei_sap_cmd: sap_cmd Tx= : type 1008 len 8 seq 2 iwd-35396 [003] 46467.085645: iwlmei_me_msg: ME message= : Tx: type 3 seq 3 iwd-35396 [003] 46467.102818: iwlmei_sap_cmd: sap_cmd Tx= : type 1008 len 8 seq 3 iwd-35396 [003] 46467.103369: iwlmei_sap_cmd: sap_cmd Tx= : type 1016 len 20 seq 4 iwd-35396 [003] 46467.103842: iwlmei_sap_cmd: sap_cmd Tx= : type 1001 len 4 seq 5 iwd-35396 [003] 46467.104689: iwlmei_sap_cmd: sap_cmd Tx= : type 1002 len 12 seq 6 The dmesg log looked like this (back to -19 in the error): [46452.483343] wlan0: deauthenticating from 4c:60:de:ea:b8:5a by local choi= ce (Reason: 3=3DDEAUTH_LEAVING) [46452.689465] iwlmei 0000:00:16.0-13280904-7792-4fcb-a1aa-5e70cbb1e865: Co= uldn't get ACK from CSME on HOST_GOES_DOWN message [46452.689567] iwlmei 0000:00:16.0-13280904-7792-4fcb-a1aa-5e70cbb1e865: fa= iled to send the SAP_ME_MSG_CHECK_SHARED_AREA message -19 > I might also need dynamic debgug prints from the mei bus driver but that = will be for later. > Thanks for reporting and providing the data! You're welcome! Thanks for looking into it :) -Toke