Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6297493ioo; Thu, 2 Jun 2022 03:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW+TBna37y3G7l95FYWTMGXiK/IR0bMQ5QDB3/DVcaXpfu5Sy5EUL3WxfCVL53G+/KfK1v X-Received: by 2002:a05:6402:28a9:b0:42d:cde1:cf87 with SMTP id eg41-20020a05640228a900b0042dcde1cf87mr4687245edb.368.1654165812905; Thu, 02 Jun 2022 03:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654165812; cv=none; d=google.com; s=arc-20160816; b=wKQ6piBqT02BFf5DY/UZkdgMioyCSH2o5jKb2R7+Ozi7qcY7OpgVHPNRs3dpG19zK3 WfeRNcs93P1phKu/VA8P662Zkg/7YvJwe3QJvrLHJ/pDAmY4uwS5xkFUDsiv1dNXS4u3 hv/s15eHahmowfaCtnrxGbfByrbI2acHKdLLr7/IYwnHZL17UxHlCIiVeLczoK0G6MgS 30EwydWal+C1kIImtQrhnxsAlOUdT/z9gEgWVVAz5DdbaFjHtTG37jSxRrG1RXPSFAY1 UQl9EXyRJjCnpF8K8ohN7EcpzEEY3d5ld6mD+lB4C3TJvnLW8eGvX2B+IbZ2Jrd4yw2b rBYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to :reply-to:from:subject:message-id:dkim-signature; bh=mV7mkCUjOl6hMSevGR59+xlFQCqBQ4WwdymyF0opzUY=; b=0y0d/7hrqjWIo5vXsA6Nf7Ah2lVAVloih0r5exIPXGOY4Xuz2o8E443JIpn0JT6TaI rDEl32trNODiZuS3+XZ/MJQXM92GAiHyeV/HDp/Q3XZBE57VN5hApAZRvNleV4iDhdvR w7wrwPW3zZS1gl+fHGLslzBP8jBWRVKT/Yzs4OcEqRSdu0gQIMpknuuN+BurogbdvP3f +CN9C2L3a4oHkNhUkhhutVZ7vArNLCwb0XvgbFF0/uwX9FbHT/pM2WAJl/lf6qkaTQ2u NrBekjIBKHfTzUbd9nk3rEwPdtRfJrBFtLVN8lhsOoMLbKe0Z/gAYUCyZ1rrUM4XSqFN RBQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=TVJFhJK9; 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=NONE sp=NONE dis=NONE) header.from=pschenker.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a05640235c400b0042dd630895esi4830274edc.619.2022.06.02.03.29.52; Thu, 02 Jun 2022 03:30:12 -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=@pschenker.ch header.s=20220412 header.b=TVJFhJK9; 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=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232496AbiFBIoV (ORCPT + 67 others); Thu, 2 Jun 2022 04:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232276AbiFBIoT (ORCPT ); Thu, 2 Jun 2022 04:44:19 -0400 X-Greylist: delayed 86831 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 02 Jun 2022 01:44:18 PDT Received: from smtp-8faa.mail.infomaniak.ch (smtp-8faa.mail.infomaniak.ch [83.166.143.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48F32EBA94 for ; Thu, 2 Jun 2022 01:44:17 -0700 (PDT) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4LDKLl046yzMprjq; Thu, 2 Jun 2022 10:44:15 +0200 (CEST) Received: from [10.0.0.141] (unknown [31.10.206.125]) by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4LDKLk1DMszlk1FD; Thu, 2 Jun 2022 10:44:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1654159454; bh=mV7mkCUjOl6hMSevGR59+xlFQCqBQ4WwdymyF0opzUY=; h=Subject:From:Reply-To:To:Cc:Date:In-Reply-To:References:From; b=TVJFhJK9EsLdiqX+KhfpvkfTgssVCX73VGWmPkbBNWLdNRINdU7AzH0KLslewDaPE 0/OcSegpEggQ+NuLItKAQexi9dmhEjTtYaqWsf2yWmCCCWHigsxq3jh0KmXREU+xJC BCkuo08R2hje4EXErOkpDVna9rJTAIVc9SsHLJrw= Message-ID: <2c5a6bb34c67c9c15c393346e89bdb14ae6f3c44.camel@pschenker.ch> Subject: Re: [PATCH] Revert "mt76: mt7921: enable aspm by default" From: Philippe Schenker Reply-To: dev@pschenker.ch To: sean.wang@mediatek.com Cc: deren.wu@mediatek.com, kvalo@kernel.org, linux-wireless@vger.kernel.org, nbd@nbd.name, linux@leemhuis.info, davem@davemloft.net, kuba@kernel.org, lorenzo.bianconi83@gmail.com, matthias.bgg@gmail.com, pabeni@redhat.com, ryder.lee@mediatek.com, shayne.chen@mediatek.com, yn.chen@mediatek.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org Date: Thu, 02 Jun 2022 10:44:13 +0200 In-Reply-To: <1654122203-26090-1-git-send-email-sean.wang@mediatek.com> References: <1654122203-26090-1-git-send-email-sean.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Thu, 2022-06-02 at 06:23 +0800, sean.wang@mediatek.com wrote: > From: Sean Wang >=20 > > On Tue, 2022-04-12 at 19:06 +0800, Deren Wu wrote: > > > On Tue, 2022-04-12 at 12:37 +0300, Kalle Valo wrote: > > > > Philippe Schenker writes: > > > >=20 > > > > > This reverts commit bf3747ae2e25dda6a9e6c464a717c66118c588c8. > > > > >=20 > > > > > This commit introduces a regression on some systems where the > > > > > kernel is crashing in different locations after a reboot was > > > > > issued. > > > > >=20 > > > > > This issue was bisected on a Thinkpad P14s Gen2 (AMD) with > > > > > latest > > > > > firmware. > > > > >=20 > > > > > Link: > > > > > https://urldefense.com/v3/__https://lore.kernel.org/linux-wireles= s > > > > > /5077a953487275837e81bdf1808ded00b9676f9f.camel@pschenker.ch/_ > > > > > _;!! > > > > > CTRNKA9wMg0ARbw!09tjyaQlMci3fVI3yiNiDJKUW_qwNA_CbVhoAraeIX96B9 > > > > > 9Q14 > > > > > J4iDycWA9cq36Y$ > > > > >=20 > > > > > Signed-off-by: Philippe Schenker > > > >=20 > > > > Can I take this to wireless tree? Felix, ack? > > > >=20 > > > > I'll also add: > > > >=20 > > > > Fixes: bf3747ae2e25 ("mt76: mt7921: enable aspm by default") > > > >=20 > > >=20 > > > Hi Kalle, > > >=20 > > > We have a patch for a similar problem. Can you wait for the > > > verification by Philippe? > > > Commit 602cc0c9618a81 ("mt76: mt7921e: fix possible probe failure > > > after > > > reboot") > > > Link: > > > https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kern= e > > > l/git/torvalds/linux.git/commit/drivers/net/wireless/mediatek/mt76 > > > ?id=3D > > > 602cc0c9618a819ab00ea3c9400742a0ca318380__;!!CTRNKA9wMg0ARbw!3N9I3 > > > iKwS > > > 3XCNAb4LuhbFqt_el1yiOaJzSdUjaJsTaxRCHiWhXnEgbk3bOqYTy6T$ > > >=20 > > > I can reproduce the problem in my v5.16-rc5 desktop. And the issue > > > can > > > be fixed when the patch applied. > > >=20 > > >=20 > > > Hi Philippe, > > >=20 > > > Can you please help to check the patch in your platform? > >=20 > > Hi Kalle and Deren, > >=20 > > I just noticed on my system and mainline v5.18 reboots do now work > > however Bluetooth is no longer accessible after a reboot. > >=20 > > Reverting commit bf3747ae2e25dda6a9e6c464a717c66118c588c8 on top of > > v5.18 solves this problem for me. > >=20 > > @Deren are you aware of this bug? > > @Kalle Is there a bugtracker somewhere I can submit this? >=20 > Hi Philippe, >=20 > Could you try the latest firmware to see if it can help with the issue > you reported here ? >=20 > Please check out > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.g= it/tree/mediatek > and replace the following three files in /lib/firmware/mediatek on > your target and reboot > 1) BT_RAM_CODE_MT7961_1_2_hdr.bin > 2) WIFI_MT7961_patch_mcu_1_2_hdr.bin > 3) WIFI_RAM_CODE_MT7961_1.bin >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Sean Hi Sean, Thanks for your suggestion. I downloaded the firmwares from the link you indicated and downloaded the three firmwares from main branch. I checked and the sha256sums of the most recent firmwares match with the one installed by my distribution. So I already had latest versions on my tests. Philippe >=20 > >=20 > > Thanks, > > Philippe > >=20 > > >=20 > > >=20 > > > Regards, > > > Deren > > >=20 > >=20 > >=20 > >=20