Re: [PATCH net-next v4] net: stmmac: program the FSM timeout timer

From: Maxime Chevallier

Date: Wed Nov 25 2026 - 03:28:55 EST




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 ?

Maxime