Re: [PATCH net-next v10 5/8] net: bcmgenet: split frames that end just past the transmit threshold

From: willemb

Date: Thu Dec 03 2026 - 20:56:35 EST


Nicolai Buchwitz wrote:
On 28.11.2026 12:26, netdev-bot+sashiko@xxxxxxxxxx wrote:

> [...]

> [Severity: Medium]
> bcmgenet_probe() computes the window for every part as:
>
> priv->tx_thld_window = priv->dma_max_burst_length *
> ENET_BURST_UNIT;
>
> The 8 bytes per count comes from a single bcm2711 measurement at burst
> 0x08. The commit message says the bcm2711 sends nothing at 0x10, so the
> 0x10 case (16 * 8 = 128 bytes) was never measured.
>
> The 46 byte result shows the unit is at least about 5.75 bytes per
> count.
> Does it show that the unit is exactly 8, or that the window grows
> linearly
> with the burst count?
>
> v5_plat_data and bcm7712_plat_data both use DMA_MAX_BURST_LENGTH
> (0x10).
> Their real window could be wider than 128 bytes, for example because of
> a
> wider bus. In that case bcmgenet_xmit() would send a frame with
>
> tx_thld_len + tx_thld_window <= skb->len < real window end
>
> without splitting it. If a shorter frame follows, wouldn't that bring
> back
> the Tx DMA stall where every later bcmgenet_init_dma() fails?
>
> Later in the series, "net: bcmgenet: allow the MTU to be changed"
> raises
> max_mtu for every GENET_IS_V5() part, so this becomes reachable on
> those
> 0x10 parts. Has the window been verified on any part that programs
> 0x10?

No. 46 bytes is what I measured on a bcm2711, which programs 0x08. The
8 bytes per count is a fit based on that point, rounded up to 64 for
margin.

Florian: Do you know (or can check the RTL) if the window is related to
DMA_SCB_BURST_SIZE at all?

Is this a blocker?