From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88700606A31F for ; Sat, 5 Dec 2026 21:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=oHJnHGFp; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=dmXTYdDK DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=eIWCW39j05dHy6xhp/Fm1Eg/DR2pmW6DvMsNsTt4zeQ=; b=oHJnHGFpht6fzh jRlCxm3cgKDsf7JyoC6hwg9ArukAtWCoLUf2urTo3YlwKBO9HICLg5+iu4cbfPQ6SGpAr0S6l+PGc uPlbW0mhFOnKl1jTES33ZscWJHKixxXR6JsKyFZBpeY+VNg3gBMjkktymbD0wewztf8KbpTOsfUy1 YVci3+UNiRJE2oE09Rub9PplEGGgdO88D6XBeLRuLm4E+nGN9QUvIPmwa3SWOTzqs2ThCNVRbUYCD pAVDfNHmyNAn8+bqpZwDdemZTIO9c8gSnh3jIpu24PLaEYvUoqnH1ac0heLIQcF1ITXBql78LfwNs ZwFh/D+ZfJNHmyzIUQYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZx3H-00000002t3s-2UrD; Sat, 05 Dec 2026 21:12:15 +0000 Received: from smtpout-03.galae.net ([185.246.85.4]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZx3E-00000002t3E-0ik0 for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 21:12:14 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id EB6754E418BE; Sat, 5 Dec 2026 21:12:08 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A6C7C60766; Sat, 5 Dec 2026 21:12:08 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 953B211EA1656; Sat, 05 Dec 2026 22:11:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796505127; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=eIWCW39j05dHy6xhp/Fm1Eg/DR2pmW6DvMsNsTt4zeQ=; b=dmXTYdDKE13ZyNfFzdHnoLbY2GozFibpOnlS0h5UxJ+AyB1Ntlneisd51F/THKKxKLSl7M B6WfbjHu8rl7cPwwCyiraqw42wxf258zVdjJZfEKi9Z2/7VYv0+reKRQsco8NCrpGlHQXp 4Zat2M8iAczMnMXM6Eyw8xNXr4r4MxQWksuZT/P+w8vX+4pNg0kKje8+/fjViPAzILJ1jz l2ANt2xhSDEJwDQcljGcTiSlnACFUTg+QlZl5yMmwrOo8Rlq9q6VKmxgRTPSwc9iY69C1x WGb4qisG6IACuDFmxcWxEjwcI9lAfDXNPw/36bzWPp35bB/fWUT3OU+gv/aXAg== Message-ID: Date: Sat, 5 Dec 2026 22:11:48 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] net: stmmac: keep RXC running for atomic filter updates To: Lorenzo Bianconi , Mohd Ayaan Anwar , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Russell King , "Russell King (Oracle)" , Jacob Keller Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20261205-stmmac-keep-rxc-running-v1-1-35f8cb71cb98@oss.qualcomm.com> Content-Language: en-US From: Maxime Chevallier In-Reply-To: <20261205-stmmac-keep-rxc-running-v1-1-35f8cb71cb98@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261205_131212_378894_95DB35F6 X-CRM114-Status: GOOD ( 14.24 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-7.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi, On 12/5/26 18:31, Lorenzo Bianconi wrote: > stmmac_phylink_setup() allows the PHY to stop the RX clock in LPI > whenever the platform does not need RXC in LPI and no VLAN features are > advertised. The VLAN feature check was only a proxy for "the driver may > program RXC-dependent registers from atomic context": > stmmac_set_rx_mode() and the VLAN filter callbacks run with bottom > halves disabled and cannot use phylink_rx_clk_stop_block(). > > That proxy is fragile because it changes with the advertised offload > set, and it does not cover CONFIG_VLAN_8021Q=n. A filter update while the > link is in LPI with RXC stopped can be lost, leaving the hardware filter > out of sync with the software address lists. > > Since the driver cannot know whether a filter update will happen while > RXC is stopped, keep RXC running and never let the PHY stop it during > LPI. A platform that has verified its filter programming does not need > RXC can restore the power saving in a follow-up with an explicit opt-in. > > STMMAC_FLAG_RX_CLK_RUNS_IN_LPI is now redundant, so remove it and its > qcs404 setting; keeping RXC running everywhere supersedes it. That would introduce some power consumption impacts though no ? Besides that, we have an async version of the .set_rx_mode() NDO now: ndo_set_rx_mode_async() Maybe the right move is to switch to that ? Maxime