Re: [PATCH net-next v4] net: stmmac: program the FSM timeout timer
From: zhu xin
Date: Wed Nov 25 2026 - 03:51:56 EST
Hi Maxime,
On Wed, Nov 25, 2026 at 4:28 PM Maxime Chevallier
<maxime.chevallier@xxxxxxxxxxx> wrote:
>
>
>
> On 11/25/26 09:22, zhu xin wrote:
> > Hi Maxime,
>
> > Separately, I'd like your take on the hardcoded 1s timeout. At 10 Mb/s a
> > PAUSE frame with the maximum 0xffff quanta stalls the transmitter for
> > about 3.36s, longer than the ~1.048s NTMRMD programmed here. If the Tx
> > FSM is still timed during a flow-control stall, that would raise a
> > spurious FSM timeout and reset the interface. I don't have a 10 Mb/s
> > link locally to verify it, and the databook only hints at a large-mode
> > (LTMRMD) without being explicit. Would you prefer bumping the default to
> > 4s to be safe, or is 1s acceptable?
> >
>
> Yup, this should do the trick. If I'm not mistaken, you'll add some
> better controls once you start upstreaming the glue for your XGMAC
> device, right ?
Right, I'll use a 4s timeout for now, and add a per-platform timeout
config along with the glue once that goes upstream.
Thanks,
Zxyan
>
> Maxime
>