From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796369520; b=y7ix+hdad7OwG9bkV3Q62E/lRfuFYhIKMCXx3efdd+Fa4CZ9I3hbju+NJ0vIF1RO96L/ qq1MuLpk2lieimPNgSqZamy/LExQ2UWb4BEx2eWncPr0x+3OuFwZIgSzkqptuYOCtW0vi CkYpY8AWCndKNwjl5xXWyC5qa7q11MnQIiMFcyywz+WuM+iZ/sRh06JLnpeUbf9THVy5K BrlK8ZEnMTsLOpslzHWFLy43xdW8evI2LSr6TFBEdAvj6B3d6ec2jK42FTPWII8ulobBV FEjrn9t7oI11SgemJvb5KwZSvWAN64nT7ux4A3F9qzR7wCtLX2qnZBJc7NTRdSdyvbg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796369520; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=MVP98xMSkFF9bdNbb4i8TqHmTKeQLUgNGezIcUNs5lQ=; b=Cb7FP4FcLyMnvDgkukF40lULqZOr7nqLd6gmamV0xSOVEOejWi+OuMXAAHElAL+bq0pG 0/jVPa1lh5U3Wh7xpGYFxaUmkFMVYg+7lrn4T4MAs/Yf1P1n8HGBpHNt/w5qC4OmQcFYd vVWItL6DME20ZO3KAaMzf234ga/dDlVpQwEAwz6UuHtXIdKL/rCOLijzy/Zw+jiN8L/fe L2+fudwg8T2e6pD/oZ9Dr0H37u4HJJD1tzYtbsajkqpIZCONGe4dbdUeF9Xyz3ba2RESK I8zVJ9OC7+i4/pGkLxoYdJ0kfakbCVI9XqGwzZOENpxtM2RSiwNTwYYjc1QgDpGZwKg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KZ3CDVE6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C194D606A32F for ; Fri, 4 Dec 2026 07:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KZ3CDVE6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AA441F000C2; Fri, 4 Dec 2026 07:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796369520; bh=MVP98xMSkFF9bdNbb4i8TqHmTKeQLUgNGezIcUNs5lQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=KZ3CDVE6rmMjcpf9YIMelJrngGc29erQuqqb0+CsXm0ma5QJTAgVs0nPz7Bp1trEY +8w5ffimDsw8lPPqVe/ZU3SlD5CuCN+Ks6aui+zZvN0Z7LOLQHTGc1tATtmA0u6Pxm LiXRzE59U4GI3SheNvjVBtFw6U+LYuSLG1iZwERBI3EsRTWkDkNdixa/HI6eDaVygT aSSywsGexRi1EkImBuHJ4TZdNTGyN9j0U0LYNQSxrvV5sdBmlXJdLzrQBt8zmtWPVR ypICNW5Mp830ES4R/SzipjrU3+azKIU5bihQFFw1HxT8b04vEDqRkWdlVYczqAaM3P M9x39ufrxxL+A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next] net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode setup Reply-To: sashiko-reviews@lists.linux.dev To: "Maxime Chevallier" Cc: linux-sunxi@lists.linux.dev In-Reply-To: <20261203073137.958539-1-maxime.chevallier@bootlin.com> References: <20261203073137.958539-1-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 07:32:00 +0000 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: stmmac: dwmac-sun8i: missing Fixes trailer for commit 22fc89783468 -- commit 213e567f3a047f173c6e0138876f96d1067ef080 Author: Maxime Chevallier > net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode set= up > > On dwmac sun8i, the TX pause behaviour is controlled via 2 registers: > > - TX_FLOW_CTL_EN, to enable/disable TX pause and set a few extra pause > params, > > - EMAC_RX_CTL1, that configures the fifo thresholds to start/stop > sending pause frames > > EMAC_RX_CTL1 also configures the DMA engine, to enable/disable it as > well as start/stop it. There's a chance for a race if we trigger an > action that starts the DMA engine at the same time as we configure > pause. > > Let's move the threshold setup in the DMA configuration path, making it > the only piece of code that touches this register. This is OK, as we > just set the thresholds, we don't change the FC status. That's also > what's done in other glues. > > The thresholds are now configured unconditionnally, that's also OK as > it doesn't affect anything else that TX FC, and only if it's enabled in > HW. > > This didn't happen before, as we didn't configure the thresholds up > until: > > commit 22fc89783468 ("net: stmmac: dwmac-sun8i: emit pause frames when th= e RX FIFO fills") > > This was reported by Sashiko when submitting the above patch. I've > tested this on Allwinner H2+, but only to make sure FC still works, I > haven't tried to reproduce the race. > > Signed-off-by: Maxime Chevallier [Severity: Low] This fixes a register read-modify-write race on EMAC_RX_CTL1 that could clobber RX DMA state. Per Documentation/process/maintainer-netdev.rst, should this include a Fixes tag? Fixes: 22fc89783468 ("net: stmmac: dwmac-sun8i: emit pause frames when th= e RX FIFO fills") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203073137.9585= 39-1-maxime.chevallier@bootlin.com?part=3D1