From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796349390; b=UcPWpY+8v/Y1j6tzVnjQ0gBhRtSsuJDBO5oz4TyDx6iGNMdtfJzFogwg6xphm7Z6YIVM Loi3Y6EX6u1BKjSAO42vEnBZM6Anr2+3lGD1h51cfqF/zDyvEsinYpFZ/5YUFroxNbxtH PCweME8vEDhWGQLoRTgqpyo9PPUd9VZtA2orrP6ZF3BSApAI1hxyi1/eJ84PTuCFsNokb xiDtY6E5r+wzHvk9Z3tIGGpgwX1Mb2Lyc8YgjPpK9jWSdaw/xJ/BoWjoPbGy1Qmvc4EE2 c3lza7JzjKghjKrumyUUNCdk4qk5v3v1Nzziz2f+ryzB03nDyZEtymnZtNJdqXqwdDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796349390; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=6oWz2pMPchhgOEg8i7nfBhgktgQWE8GkQO4wVZmOY+E=; b=HH429QAr0Xs9c3UwKvkF+Gx+X+UHLFllEqGs3oL3rZfyGL8sriKRqALboTNyB/9mhnNB azDmvpZsT+cIxz2DpGqlqSno0SDmBe7l2ep37uHLEVC+ordNDCVS2YVD9iwhFX8tZLbgQ A+iyI11n+m1lSadJOPYz2/sxWEN/vyRLbXHZhrQSPSbZ7fN5SKgjGlTdcfV1DMGWva3MP I3Zx2cPd0ShMeOc88fjRLMu2wah3MB6YgWzQYbQQgT4UnsplPu5WpEcwgaTFq5sjm27M3 l+Tg0+H3/uHjrJJkwcNDr9D2wj7P8zUwWv//WzyNNLYR9CHjYWYhvSd4CzVc08kpTog== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=lDPPSxVj; arc=none smtp.remote-ip=209.85.219.71 Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 834D7606A333 for ; Fri, 4 Dec 2026 01:56:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 834D7606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=lDPPSxVj Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-921286add9fso8810526d6.3 for ; Thu, 03 Dec 2026 17:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796349389; x=1796954189; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6oWz2pMPchhgOEg8i7nfBhgktgQWE8GkQO4wVZmOY+E=; b=lDPPSxVjh++pV1zxRguM/mgq1jVyUweFYri3MtKEwTAmAdtvkH8PpT195tOtReev3I 5c2cGelysKEZP4jbWadjdew/854HMxsSb3dFxDegdiCW+7yit74VFrc3Pxqlmpc3Z/ld u5ocFjy0Re7+S+tOTT3fzGAYH1H/1bChJZyHbDSzy0c813cr1XQDagBhoUWMEX1amyHV zTblw9VbX+7qegC+DbAYlIF/hVg+TrRJDQJJO13Q4EuFGCmOnP6oalWUffs/RvnCXoH+ 83yYCG6jPzSuO47CjxcK4EmOY4rYE227bCDbTC9V0rpGBGPZO/Yu01bLTQpMVA0/o2zE UlYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796349389; x=1796954189; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6oWz2pMPchhgOEg8i7nfBhgktgQWE8GkQO4wVZmOY+E=; b=AezwPCuteDHwTOfRtazT5Hx9z3yo1FuaIcPlBlnD8ckFMhU5yFrYV4y/7o9OgYGDLq PVwubtexMeoLdwwPp+i2dSbTeYf7nTKZSaJdLN2cSqWa9fw16gb3XJp/7ceQFwzCr1a+ 7K/UWtSK1N+7IX2YTZUQs4xLUiO3gFAadozp4NMfSYfUCs/ZpQqrAhCk18OeWzXVuP5G 1v6j3tOLIQVOuVZhFh4JcZ26qapgtHyPAGPuEG8dXgW4XBb9SMukYOCgItUTVMNoPZbZ Mdebz+/KXpcQGreeeS+CsgT1fXshBZ46zoSV2wzxI0L9L5L8UFHhEAmM3RbYaqHllOY0 lZMw== X-Forwarded-Encrypted: i=1; AL+hErEMraTM+GK6c6VH9n5yEJWmdI+80tOb36uWldJmGd41almkmCW0qidj6nqYO3DRp5mJR4mQ2jY=@vger.kernel.org X-Gm-Message-State: APuU4Z+6O+YptzoGInmx54yX6nWIMUCB00amrdWdcRu3+e2/grJI+Uyb VhTB+3EUzLBX3nN2cxkPzNbd/lQ8IxMq4UBMZMG9XSWc6k7JmgxMi4yjeNYcvA8GLv4jBun+sok UeUNaDXMjTw== X-Received: from qvbv19-n2.prod.google.com ([2002:a05:6214:85d3:20b0:91f:8f6:9128]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:620a:28d4:b0:949:7c8c:54d1 with SMTP id af79cd13be357-94a82f11998mr90074185a.52.1796349388828; Thu, 03 Dec 2026 17:56:28 -0800 (PST) Date: Thu, 03 Dec 2026 20:56:28 -0500 In-Reply-To: <62ca72824c5079c2266be2545337e55c@tipi-net.de> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261127-nb-genet-mtu-nn-v2-v10-5-749c7cc45d97@tipi-net.de> <179586516579.3135.9485431888259061826@kernel.org> <62ca72824c5079c2266be2545337e55c@tipi-net.de> Message-ID: Subject: Re: [PATCH net-next v10 5/8] net: bcmgenet: split frames that end just past the transmit threshold From: willemb@google.com To: Nicolai Buchwitz , 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 Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes 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?