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 B8C72606A31F for ; Sun, 6 Dec 2026 12:33:19 +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=Mc1Qciv0; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=DdHhpSJB; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=GmAfc0QD 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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=kmwZ4SMq8cD78k1Cvt+E0P+Wt9K/Dsjp/8UwNAOtBos=; b=Mc1Qciv0zqxLQD7sbKB8GIBxqe SFXSw13++Kx5kWBnZq+W3+9QfD+FsrOGRg+kz/SAVzAVPFRyuLscUyda4Tw2kQdt25Ci8dx5RBCOZ DlhzUo0Li9Ueu7M+7c9ycugmCdjKwDMMpXsjUg4lCYvNZYBTIiQUm0Y9qfYwT9rSmkC1NQ8mj5Tyb dZJP6riqoMwKJJKxvGcdmWkvu+10C0K220RPcdlVRSAGfErlSiMoASo1q2uJZGTSN/D5ACTf1zxR1 CteKRyq5CHitx9eoP2mARtVDTmpNVIiwGPMbnHtaIuu8c6gXNeL3YUwSE4YsSqAzDubZbMGBXfi7W yw6vSN6Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xaBQ7-00000003ZqB-0Iot; Sun, 06 Dec 2026 12:32:47 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xaBQ4-00000003Zpp-2uIl for linux-arm-kernel@lists.infradead.org; Sun, 06 Dec 2026 12:32:46 +0000 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B6ALkxJ3530625 for ; Sun, 6 Dec 2026 12:32:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=kmwZ4SMq8cD78k1Cvt+E0P+W t9K/Dsjp/8UwNAOtBos=; b=DdHhpSJBv5g/ox1MIM9NVJV07s61bkaSTpvLdNiJ 6AbCeU9BojEEOdaCeTB1f+DdgdKwQgL+6VaEzQ21V/C4tw0aqZQ0kiPGc1KVW5Ly ljPfPEuRcL9o/XrhJuwNxcRhUXyuOj8dume3YAvIil6SW8/ItSRSny+a0cgblCkP wEjDkw55YyoUyuG2uVNROSlguzdA/3dJUfGTWUmQ2fP+81mBSphVpqD8xAr5QGwF NhSFoEsrpK6/8k4Mf0qcQlp6p2PN4Ml5hRKYEbv/3AVbSnO4dpHoXTrdi1QobyV9 OQvaM1jmzH2bXjV4bz8UnvgrxUgsZbwjLZTcr07b1RwpvA== Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jcbw8bgrx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 06 Dec 2026 12:32:44 +0000 (GMT) Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-92135a58c91so68057866d6.1 for ; Sun, 06 Dec 2026 04:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796560363; x=1797165163; darn=lists.infradead.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=kmwZ4SMq8cD78k1Cvt+E0P+Wt9K/Dsjp/8UwNAOtBos=; b=GmAfc0QDZqMgADpElBDQygM/bI0nmT3JcsAByQXVVAk0uInrfwuCo+IjSjSU6MlhsA QIsb0GFxszhluU7zO3WZIq+FGascSPYXr16+Wlh/YKORYAhuSlkkevhyj1o+m5UGgLAh S+snfEReNjYQOWShhfjws/obTYHUxKXED/eHusG4cKd56mBqQQKZRwANUa/FEoc/0iZD Bsrkxjhoer2VYbSA4/s9o72iXKdA0euO2r5ZkjlTiNC0ssCW8DlXNhBe+KSRVxRUR82R Vf7pw/lfxj19/6+WGwXUFdkXaEa/hddMLf/mseG0tW2EV8qFQGXpt6jc0w/xXI1zMana 2VGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796560363; x=1797165163; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kmwZ4SMq8cD78k1Cvt+E0P+Wt9K/Dsjp/8UwNAOtBos=; b=bbALLzwhbptDwZ93MLsR+5xFqvhY3Ad5a4ilpXqLUwRvVpr+f0Rnz6iEASZG3fe1mZ 7JF0RyTKGUHQc00odR4cjtwF164K6vUMJ97kHp4G5wlOuJKJ6K6HAdGav75IJ3ZUOa+9 pOVQy9RutDdoPwkKL49dJ3bqBQU9vjo6HUn44Rn9y2qeK4WVt8Ps8RxKzY6ewHBXMQz+ XfNGxrbZL29HX3F0BYXg6gbUSwtjLp+S6c3bypoa7Ffm0Yt+/crGTVqBa8teeJy2f1Qr 7qkJzQHkXj5/LtMn0pdda/xaFU8DIw3gP+tXxGIGpY9NHKuW41Y7wea/nynTjv/lvoUt 0QDw== X-Forwarded-Encrypted: i=1; AL+hErEnp8C/Vt09RLLuBQjkIAlBlsgN1lsD2jDnKKE5ce7+JLsIZUyAm0heCn6cKkRAFRLIwTe2Jd+hRO3dLtd9MnBY@lists.infradead.org X-Gm-Message-State: APuU4Z8FvmWOh34nDAC+mNkv7SELiwwCzikAzaYNnmOq1GerhaluIp88 zaNm2zdxuvDKZbJlzLGcN+xki0NOaLjzZvd4BjqqmrMC304Zbm34fpROJv8jMViuN+W0Eh8IWk5 IfrNwxIzqj2buYPbeOw+jYCkWJe+80be2GUvQIT/w++WBMkJgtmoq8z2pQkum3oiOGTmW+vZL4N Oi2g== X-Gm-Gg: AZFdTZeHw+b8soMBIg5vzArfN0s7JoFusFmoqwUgSOLyaJYl5X3a3F0GPI+Ph6u12QF ZSdQxBMDnE5EVfhCrA5Q+pE+wnJKfbE+aYX4bQCvBzGs7aF8/sbdzKYEXjDKon0b3bbMqCIJKLo NYXCrQMR1f5VosVPtpw6anUfwUF6ZeCTxJX6koklgH89rb356lINw+PdiCo+RAYghlI2xy5waGK 9XdHIeKh9RpYrlQ84GE+06EruIRWhwjfC41HypPZTImLLhTmogxzdbOFNGuD1wO2eCTqbB3b1JG G6jVYUvRfn8z8Zd9GFGHFSf3hDgAZ6KU1+4kjE5Xz7dDyl7mR14/pjgE7cE8UA0B473WkTZlYOU eIn9g7zVBnsi29BEIC9unC7yZCaTCyCSQHcTNxJtRJZ/MT03Dp8IIgmszvV6OIA== X-Received: by 2002:a05:620a:2725:b0:949:6ece:8ae8 with SMTP id af79cd13be357-94a82e1b956mr1114884885a.71.1796560362943; Sun, 06 Dec 2026 04:32:42 -0800 (PST) X-Received: by 2002:a05:620a:2725:b0:949:6ece:8ae8 with SMTP id af79cd13be357-94a82e1b956mr1114881185a.71.1796560362351; Sun, 06 Dec 2026 04:32:42 -0800 (PST) Received: from localhost ([130.25.105.85]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea25ce51sm204378985e9.5.2026.12.06.04.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2026 04:32:41 -0800 (PST) Date: Sun, 6 Dec 2026 13:32:40 +0100 From: Lorenzo Bianconi To: Maxime Chevallier Cc: 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 , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net] net: stmmac: keep RXC running for atomic filter updates Message-ID: References: <20261205-stmmac-keep-rxc-running-v1-1-35f8cb71cb98@oss.qualcomm.com> <40dbae2a-5ca1-4f04-b48f-a74aeaf11ab1@bootlin.com> X-Archived-By: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BRLEAEP3fPCv8liI" Content-Disposition: inline In-Reply-To: <40dbae2a-5ca1-4f04-b48f-a74aeaf11ab1@bootlin.com> X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA2MDAzOSBTYWx0ZWRfX6Hbh3ubK6r5K kGrNwzL8SkTMYQrnhNJ8hZuL3McoRuW77vlqWwhtopBi4XuurA+JRNM1hVZT5gGVZv/PttmAXbk WYV8egJLIxrheTNi+BDIDaCliWzwxGc= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA2MDAzOSBTYWx0ZWRfX7tXYpPoHOxO/ ltgDNiR+sMdJNiCdVKA//nLVLxtrXuuoZWTLAZHmTWvfFP0FHgwwXwW/yHZ/Tju07dU7YpYEZgh iTX9kk7/oEyo648IubDW7h0fa/o6crAHpXWy9rJneEb+o4izjOA7D1Fe3bcfSyS0ofAXcuiH2nj dbXR5BWLVa2Tk0gbyiXWPpifWMnbusrq4NouxDzkVLhTFOPdsXnv1GiOyo+DE4UAiyOroncUD4Y ojJZU+n8XJy+uPrndW5i0Hz6FuXB+dENImlbqcXW1dCwds55SrDhL8TgKCnbn5/Mt42YIuc2zs2 3kM6sElVSlNZLg4Rd/XXZYSNBoSvjqaLLjnNaCVsi7jB9/jg+bAD+rpKnwJCMiZuBYY/s74sLBj 2gDZlpXylNIm/V3iQ/pUx7k6v0NopN6BgMvOHOtHM0lPsJex0aqTn7eww0L5u/KM+UoOcBNnahF ANBDXfwUMasVG+cT3RQ== X-Proofpoint-GUID: f7I_pXKtJZ_bIGzOqnejOFA_mCaMvqaR X-Authority-Analysis: v=2.4 cv=b7cncdGx c=1 sm=1 tr=0 ts=6b1555ec cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==:117 a=RcFDq6c+avmIvxkL9iwlxA==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=NEAV23lmAAAA:8 a=-3Eomzg4ud0mpqTE3PkA:9 a=CjuIK1q_8ugA:10 a=OPRz8Pm1ynBk8atnC-MA:9 a=pJ04lnu7RYOZP9TFuWaZ:22 X-Proofpoint-ORIG-GUID: f7I_pXKtJZ_bIGzOqnejOFA_mCaMvqaR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-06_03,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 spamscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2612040000 definitions=main-2612060039 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261206_043244_744966_BC685734 X-CRM114-Status: GOOD ( 31.08 ) X-Spam-Score: -2.8 (--) 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=-11.2 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,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 --BRLEAEP3fPCv8liI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 06, Maxime Chevallier wrote: > Hi, >=20 > On 12/6/26 13:07, Lorenzo Bianconi wrote: > >> 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 a= re > >>> advertised. The VLAN feature check was only a proxy for "the driver m= ay > >>> 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=3Dn. A filter update whi= le the > >>> link is in LPI with RXC stopped can be lost, leaving the hardware fil= ter > >>> 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 ? > >=20 > > Yes, you are right. I guess this is a trade-off between correctness and > > simplicity of the fix. > > If we disable CONFIG_VLAN_8021Q (CONFIG_VLAN_8021Q=3Dn) there are multi= ple spots > > (not just ndo_set_rx_mode_async()) where we can access sensible DMA/MAC= regs > > while the RXC clock is gated. > > I drafted a possible fix in [0] but as you can see it is much more comp= lex :) > >=20 > > Regards, > > Lorenzo > >=20 > > [0] https://github.com/LorenzoBianconi/net-next/commit/87da83ada7e971e7= 8908ccbd5bbe104b00654124 >=20 > Quickly looking at it, it's complex but not as bad as I expected, this ca= n be > a nice series on its own :) >=20 > It's important we get this right, the RXC thing have been a never ending = source > of problems with dwmac, and we have the plumbing in phylink to deal with = that, > I'd be very happy with this being behind us ! >=20 > but hey we know how it goes now, 3 patches in a small series, a few sashi= ko replies > and suddently we have a 20-patches backlog... >=20 > Do you feel like sending your more complete change ? sure, I am fine with that. I will test it a bit more and then I will post i= t. I guess we should target net, agree? Regards, Lorenzo >=20 > Maxime >=20 --BRLEAEP3fPCv8liI Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCaxVV6AAKCRA6cBh0uS2t rIDoAP4j2qcObBzrAJVoLubJrEC2yNJDZIHCrTzRhrl0MiiYxAEAoV+Cdw2fkwDu uZqTy3gGFtul4NNPBOMdZ9HncosKhwc= =rHP8 -----END PGP SIGNATURE----- --BRLEAEP3fPCv8liI--