All of lore.kernel.org
 help / color / mirror / Atom feed
From: willemb@google.com
To: Nicolai Buchwitz <nb@tipi-net.de>,
	netdev-bot+sashiko@kernel.org,  florian.fainelli@broadcom.com
Cc: opendmb@gmail.com, bcm-kernel-feedback-list@broadcom.com,
	 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	 kuba@kernel.org, pabeni@redhat.com, f.fainelli@gmail.com,
	 netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	 pierremarinleclercq88@gmail.com, dave.stevenson@raspberrypi.com,
	 justin.chen@broadcom.com
Subject: Re: [PATCH net-next v10 5/8] net: bcmgenet: split frames that end just past the transmit threshold
Date: Thu, 03 Dec 2026 20:56:28 -0500	[thread overview]
Message-ID: <willemb.c4b4c1ee8012@google.com> (raw)
In-Reply-To: <62ca72824c5079c2266be2545337e55c@tipi-net.de>

Nicolai Buchwitz wrote:
> On 28.11.2026 12:26, netdev-bot+sashiko@kernel.org 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?

  reply	other threads:[~2026-12-04  1:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 11:25 [PATCH net-next v10 0/8] net: bcmgenet: support larger MTUs Nicolai Buchwitz
2026-11-27 11:25 ` [PATCH net-next v10 1/8] net: bcmgenet: let the caller decide whether to start the PHY Nicolai Buchwitz
2026-11-27 11:25 ` [PATCH net-next v10 2/8] net: bcmgenet: allow a continuation descriptor without the alignment pad Nicolai Buchwitz
2026-11-28 11:26   ` netdev-bot+sashiko
2026-11-27 11:25 ` [PATCH net-next v10 3/8] net: bcmgenet: rename ENET_MAX_MTU_SIZE to ENET_MAX_FRAME_LEN Nicolai Buchwitz
2026-11-28 11:26   ` netdev-bot+sashiko
2026-11-27 11:25 ` [PATCH net-next v10 4/8] net: bcmgenet: derive the receive buffer length from the MTU Nicolai Buchwitz
2026-11-28 11:26   ` netdev-bot+sashiko
2026-11-27 11:25 ` [PATCH net-next v10 5/8] net: bcmgenet: split frames that end just past the transmit threshold Nicolai Buchwitz
2026-11-28 11:26   ` netdev-bot+sashiko
2026-11-28 13:04     ` Nicolai Buchwitz
2026-12-04  1:56       ` willemb [this message]
2026-11-27 11:25 ` [PATCH net-next v10 6/8] net: bcmgenet: build the DMA rings before giving up the running ones Nicolai Buchwitz
2026-11-27 11:25 ` [PATCH net-next v10 7/8] net: bcmgenet: allow the MTU to be changed Nicolai Buchwitz
2026-11-28 11:26   ` netdev-bot+sashiko
2026-11-28 13:07     ` Nicolai Buchwitz
2026-11-27 11:25 ` [PATCH net-next v10 8/8] net: bcmgenet: reassemble jumbo frames from status block fragments Nicolai Buchwitz
2026-11-28 11:26   ` netdev-bot+sashiko
2026-11-28 13:12     ` Nicolai Buchwitz
2026-12-04  1:55 ` [PATCH net-next v10 0/8] net: bcmgenet: support larger MTUs willemb
2026-12-04 10:52   ` Nicolai Buchwitz

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=willemb.c4b4c1ee8012@google.com \
    --to=willemb@google.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=justin.chen@broadcom.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nb@tipi-net.de \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=opendmb@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=pierremarinleclercq88@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.