From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: netdev-bot+sashiko@kernel.org, zxyan0222@gmail.com
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, rmk+kernel@armlinux.org.uk
Subject: Re: [PATCH net-next v4] net: stmmac: program the FSM timeout timer
Date: Tue, 24 Nov 2026 17:13:49 +0100 [thread overview]
Message-ID: <500079e9-e626-4e4b-9880-adeea0724338@bootlin.com> (raw)
In-Reply-To: <179520945915.3135.14304625182301747705@kernel.org>
On 11/20/26 22:17, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 6 potential
> issue(s) to consider.
>
> Critical: 0 · High: 1 · Medium: 2 · Low: 3
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [High] On every in-tree XGMAC platform, the XGMAC half of the fix never
> runs.
> - [Medium] csr_clk_mhz is only computed when priv->plat->stmmac_clk is
> non-NULL.
> - [Medium] The patch turns on an FSM timeout check that resets the
> interface, with a hardcoded NTMRMD = 0x6 (about 1 s) for every…
> - [Low] The commit is written as a bug fix: the protection is
> 'ineffective' and a stuck FSM 'was not reported through the safety…
> - [Low] The patch adds ten STMMAC_NTMRMD_* register-encoding macros (1US
> .. 64SEC) to include/linux/stmmac.h, the platform-data header shared…
> - [Low] The same clock (stmmac_clk) is converted into a 'CSR clocks per
> 1us tic' register value in two places that use different conventions.
>
> --
>
> net: stmmac: program the FSM timeout timer
>
> This patch programs MAC_FSM_ACT_Timer on dwmac5 and dwxgmac3 cores after
> TMOUTEN is enabled. TMR is set from the CSR clock rate in MHz, and NTMRMD
> is set to a fixed 1s timeout. A csr_clk_mhz argument is added to the
> safety_feat_config callback, and NTMRMD encoding macros are added to
> include/linux/stmmac.h.
>
>> The issue was hit in testing on dwmac4 and dwxgmac, where a stuck FSM was
>> not reported through the safety interrupt despite TMOUTEN being set.
>>
>> Signed-off-by: Zxyan Zhu <zxyan0222@gmail.com>
[...]
> [Severity: High]
> XGMAC_TMOUTEN is set just above without looking at safety_cfg, but the
> timer is only programmed when safety_cfg is non-NULL. Does any XGMAC
> platform set plat->safety_feat_cfg?
This looks valid, on what xgmac platform did you test that ?
Maxime
prev parent reply other threads:[~2026-11-24 16:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 2:55 [PATCH net-next v4] net: stmmac: program the FSM timeout timer Zxyan Zhu
2026-11-20 21:17 ` netdev-bot+sashiko
2026-11-24 16:13 ` Maxime Chevallier [this message]
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=500079e9-e626-4e4b-9880-adeea0724338@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=zxyan0222@gmail.com \
/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