From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796505138; b=L76Kp0n/yqOk3Xki9ELVUeLnA1LBCvl+H3gmajhYI1BxolfLDB5fHIP6unugiYqq807f oqEXs9wAhwKRuuFvuTB6KJprPdC/8II2TKspyr6xzAzkEgFd1wyE8JNoGn+a4mcqbqWfv 2JFT+5cq/482XHbOXJNpyNAsmBxXk/Len4TCU5I69xEW/pIGPD+8BMKwqXt9lceMZW/1k 8cCN+tpsZCEQQbdmnPyFJzq5X0JLhzpVbNUs7RXAVhspGk+clsxveNRLdLCvpbQ6/wEtm +VcHeujgx28pcGOmbqRSXkGrs3iQeZaD5PMrY5ETo3qIoVxsAmfrqlCNZmPUpjCQk9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796505138; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=eIWCW39j05dHy6xhp/Fm1Eg/DR2pmW6DvMsNsTt4zeQ=; b=kj0z66aWGmawOcc52F1CpXU3PkeHG2mvSuUtbnWHPE1fEVt0IFl1UYdFWEo8yKiZwsN5 AcG/8BxkmmP5vE+hd+1HFpovgsFxoiwuoPcBTdwIvd55k3MwMs/ASLZmtVpyVqqf9lJwA FbjSlRbklZeuntzZr3iAMX5NTOqbYg+PTD6kvzMi52XWKiLggGMRF7mkl/5w5AoTboWlI folGcyRHoqkGtG+QCoYqWGPHKaIU+AMfhsIaIzVbQU64olrl6agh3GC2gj90A6Rbs/0aK 0jKC0/P/Ut7TYgb59v3MDF+2v0i/wXGKa/Df++22ntOsKeW4HU9RAx9XRzxFo5FLN8g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=dmXTYdDK; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 2034C606A31F for ; Sat, 5 Dec 2026 21:12:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2034C606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=dmXTYdDK Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 4EEF9C026EB; Sat, 5 Dec 2026 21:12:21 +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-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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