From: sashiko-bot@kernel.org
To: "Maxime Chevallier" <maxime.chevallier@bootlin.com>
Cc: linux-sunxi@lists.linux.dev
Subject: Re: [PATCH net-next] net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode setup
Date: Fri, 04 Dec 2026 07:32:00 +0000 [thread overview]
Message-ID: <sashiko-outbox-249319@kernel.org> (raw)
In-Reply-To: <20261203073137.958539-1-maxime.chevallier@bootlin.com>
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 <maxime.chevallier@bootlin.com>
> net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode setup
>
> 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 the 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 <maxime.chevallier@bootlin.com>
[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 the RX FIFO fills")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203073137.958539-1-maxime.chevallier@bootlin.com?part=1
next prev parent reply other threads:[~2026-12-04 7:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 7:31 [PATCH net-next] net: stmmac: dwmac-sun8i: set the RX FIFO flow control in the RX mode setup Maxime Chevallier
2026-12-03 7:59 ` Nicolai Buchwitz
2026-12-03 9:05 ` Maxime Chevallier
2026-12-03 9:26 ` Nicolai Buchwitz
2026-12-04 7:32 ` sashiko-bot [this message]
2026-12-04 7:57 ` netdev-bot+sashiko
2026-12-04 8:14 ` Maxime Chevallier
2026-12-04 8:59 ` Lorenzo Bianconi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-249319@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=maxime.chevallier@bootlin.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox