[PATCH net v2] net: stmmac: retry a failed RX refill from a timer

Anandu Padinhare Anandu.Padinhare at electrifex.com
Mon Nov 30 19:44:27 PST 2026


On Sun, 29 Nov 2026 06:34:35 +0000, netdev-bot+sashiko at kernel.org wrote:
> [Severity: High]
> This isn't a bug introduced by this patch, but the new check here can't
> catch it. On resume, can the RX DMA get descriptors that have no valid
> buffer address?
[...]
> Is a separate fix planned for it?

It is pre-existing. Ding Hui's resume series, still under review, fixes
it: his v8 3/4 allocates any missing RX pages and rewrites the buffer
addresses before the DMA restarts.

https://lore.kernel.org/netdev/52672e4d879760b1434a92e12f3c7d5b2287e086.1795096430.git.dinghui@lixiang.com/

So I do not plan a separate fix.

> [Severity: High]
> Can this full-budget return leave the RX DMA interrupt masked for good
> on the tc block offload path?
[...]
> Could the fix be part of this patch?
> For example, always call napi_schedule(&ch->rx_napi), or arm the refill
> timer, after napi_enable() in stmmac_enable_all_queues() or
> stmmac_setup_tc_block_cb().

Agreed that it can, and it is also reachable without this patch on
rings larger than the NAPI weight, where full-budget polls are normal
under load. On an ADSP-SC598 (dwmac4) with a 6.18-based kernel without
this patch, ring 512 and a 64-byte UDP flood, 4 of 4 offloaded tc
flower add/del left RIE masked with RI latched, and no poll ran until
the board transmitted. With the same flood and no tc changes there was
no stall.

So v3 will be a two-patch series. 1/2 is a separate fix for the tc
path: stmmac_enable_all_queues() calls napi_schedule() after
napi_enable(), so a poll always runs once the queues are enabled again.
2/2 is this patch, rebased on it.

pw-bot: cr


More information about the linux-arm-kernel mailing list