Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5475959rwd; Mon, 12 Jun 2023 05:49:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6TUJcFqD5KlLRG4aI+Uiiqd+VvJ+o7sEaD28c+w4Z+uFSen5psEs0HWHP+M8ZUljgjBb54 X-Received: by 2002:a05:6a00:1705:b0:662:5c39:48e4 with SMTP id h5-20020a056a00170500b006625c3948e4mr9930469pfc.9.1686574183332; Mon, 12 Jun 2023 05:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686574183; cv=none; d=google.com; s=arc-20160816; b=IWcCybFs7POd7tUjNNtHnsAadYb3lgI87NAt2qpRtGkuC3TUNOj7ocp90Tm4d67t8+ /mHvpw1XbvtOCu8r6pODD/KzzHtITNRfRa6sNXT0BL6SqWzNw9RaCIRhJ1Ts+qx+5HvL J66/R2ptAttsY8G4MLUYx+mhGMUTzUS5OX4/+kc0TKKtj+K7u6GA9G+TdXKOmhhH6adv 6CQESf3+3WcCsphFdsqelLZIodpIRYeGA6Q0FF2WJ+6XfkiXgZwUoWeq5Q7gtfX5Qh1T OJxLkPKza9uq8kPYE4IGlpYBodzv7Sj9CWM4oi3hoS+k8nP7lXIJMvOUv3v8Sb8IppO7 FSig== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=s5OWn+vJ8rm4xIEu+0N/EO9cIklh3sUq0qSuiTLWKFw=; b=gkyrllq79MY3d+I44oRfWVQDB4fxfUhkN9wTINAD/QBNWppHkJKPDX6Z+08Q0ljz0I EcEIDt7/E0cJBzUd1FELV611P22WuTezdYgq0Z/O9iylp0B7k36uy17n59IhKMWIRh5B oitjaLZDrRcqPQ3/KSP171mljbfcutbQl2t7UE99mp1K01BUSqcMWp4b058X7pA1JOMQ kOUHldEjjtwGbEulmQk1izqkHLvjuZMNhLEG6rC3iKARY33fbrErXpyF1Dsd9twVjW8a mOxcYMoqsh72cgKjo1dYZiVGohGBFxlyNuIdrMCs2YaLT6nhNZFqGfWX3LDqhNCstLO6 aeAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="snyk9/+Y"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i130-20020a639d88000000b005347d6bd7edsi2959302pgd.400.2023.06.12.05.49.30; Mon, 12 Jun 2023 05:49:43 -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=@kernel.org header.s=k20201202 header.b="snyk9/+Y"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233578AbjFLMjr (ORCPT + 62 others); Mon, 12 Jun 2023 08:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233303AbjFLMjq (ORCPT ); Mon, 12 Jun 2023 08:39:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 326B8E52 for ; Mon, 12 Jun 2023 05:39:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7DC136164E for ; Mon, 12 Jun 2023 12:39:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5AB9C433EF; Mon, 12 Jun 2023 12:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686573580; bh=s5OWn+vJ8rm4xIEu+0N/EO9cIklh3sUq0qSuiTLWKFw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=snyk9/+Y+WRpdb3l80ci5t40I0wV7ygI6u3QQSl3/aa5IDM7bsPHc8maQwJDxur2e pj6O2+5Q6p6nx1LUfY5qH64QxsTekbTwPKYwBG32GD2Fb9gw2nWvuDdYPExOasA6L/ WDz/AzRja0GR/GMJUXi0QpeKw/ls7TCZHSSwi5avRxM87LI7bHk1B/nINGg1sGgFIg s9yzcLd5jr9MnR24M1ZAMHQ+rsAIzLFjFl42DzhD9CmFk5zQWKeM2Wk9+toYMXew7B q3ctxoOolEXArYeMAgHEwW9A6X3/ZWAFleAkJ2SnsHZjO0KlesP+ra+FVJYPcQAj9v +hTiyEuBP9Ldg== From: Kalle Valo To: Thorsten Leemhuis Cc: Andrey Rakhmatullin , Linux regressions mailing list , linux-wireless@vger.kernel.org, Neil Chen , Deren Wu , Lorenzo Bianconi , Felix Fietkau , AngeloGioacchino Del Regno , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev Subject: Re: MT7922 problem with "fix rx filter incorrect by drv/fw inconsistent" References: Date: Mon, 12 Jun 2023 15:39:35 +0300 In-Reply-To: (Thorsten Leemhuis's message of "Fri, 2 Jun 2023 14:03:59 +0200") Message-ID: <87jzw8g8hk.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thorsten Leemhuis writes: > [CCing the wifi-driver and the net developers, as a "JFYI" to ensure > they are aware of this "newer kernel requires newer firmware" > regression, so they can jump in if they want] > > On 22.05.23 16:12, Thorsten Leemhuis wrote: >> On 22.05.23 15:20, Andrey Rakhmatullin wrote: >>> On Mon, May 22, 2023 at 03:00:30PM +0200, Linux regression tracking >>> #adding (Thorsten Leemhuis) wrote: >>>> On 18.05.23 16:39, Andrey Rakhmatullin wrote: >>>>> Hello. I have a "MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless >>>>> Network Adapter" (14c3:0616) and when the commit c222f77fd4 ("wifi: m= t76: >>>>> mt7921: fix rx filter incorrect by drv/fw inconsistent") is applied (= found >>>>> by bisecting, checked by reverting it on v6.3) I have the following >>>>> problem on my machine: when I connect to my router no DHCPv4 exchange >>>>> happens, I don't see responses in tcpdump. My network setup is non-tr= ivial >>>>> though, and it looks like the problem is specific to it, but I still >>>>> wonder if it's some bug in the aforementioned patch as my setup works= with >>>>> all other devices and I would expect it to work as long as the network >>>>> packets sent by the device are the same. >>>>> >>>>> My setup is as follows: I have an ISP router which provides a 2.4GHz >>>>> network and another router (Xiaomi R4AC with OpenWRT) connected by >>>>> Ethernet to it that provides a 5GHz network and is configured as a "R= elay >>>>> bridge" (using relayd) to forward packets to the ISP router and back.= This >>>>> includes DHCPv4 packets, which are handled by the ISP router. tcpdump= on >>>>> the machine with MT7922 shows that the DHCP requests are sent while t= he >>>>> responses are not received, while tcpdump on the bridge router shows = both >>>>> requests and responses. >>>>> >>>>> I've tried connecting the machine to the ISP router network directly = and >>>>> also to another AP (one on my phone) and those work correctly on all >>>>> kernels. >>> >>> Deren Wu asked me privately >>> if I'm using the latest firmware, and I >>> wasn't. I updated the firmware and now the problem doesn't happen. >>> The firmware where the problem happens is >>> mediatek/WIFI_RAM_CODE_MT7922_1.bin from the linux-firmware commit >>> e2d11744ef (file size 826740, md5sum 8ff1bdc0f54f255bb2a1d6825781506b), >>> the one where the problem doesn't happen is from the commit 6569484e6b >>> (file size 827124, md5sum 14c08c8298b639ee52409b5e9711a083). >>=20 >> FWIW, just checked: that commit is from 2023-05-15, so quite recent. >>=20 >>> I haven't >>> tried the version committed between these ones. >>> Not sure if this should be reported to regzbot and if there are any >>> further actions needed by the kernel maintainers. >>=20 >> Well, to quote the first sentence from >> Documentation/driver-api/firmware/firmware-usage-guidelines.rst >>=20 >> ```Users switching to a newer kernel should *not* have to install newer >> firmware files to keep their hardware working.``` >>=20 >> IOW: the problem you ran into should not happen. This afaics makes it a >> regression that needs to be addressed -- at least if it's something that >> is likely to hit others users as well. But I'd guess that's the case. > > Well, until now I didn't see any other report about a problem like this. > Maybe things work better for others with that hardware =E2=80=93 in that = case it > might be something not worth making a fuzz about. But I'll wait another > week or two before I remove this from the tracking. Yeah, this is bad. mt76 (or any other wireless driver) must not require a new firmware whenever upgrading the kernel. Instead the old and new firmware should coexist (for example have firmware-2.bin for the new version and firmware.bin for the old version). Then mt76 should first try loading the new firmware (eg. firmware-2.bin) and then try the old one (eg. firmware.bin). Should we revert commit c222f77fd4 or how to solve this? --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes