🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23865

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

#23865
From: Nicolai Buchwitz
Date: Sat, 28 Nov 2026 13:04
50 lines
10153 bytes
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?

> [...]

Nicolai
Technical Details
Message-ID: <62ca72824c5079c2266be2545337e55c@tipi-net.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373121-linux-kernel-netdev=dewy.ru
References: <20261127-nb-genet-mtu-nn-v2-v10-5-749c7cc45d97@tipi-net.de> <179586516579.3135.9485431888259061826@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373121-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v10 5/8] net: bcmgenet: split frames that end
 just past the transmit threshold
Date: Sat, 28 Nov 2026 14:04:45 +0100
Organization: Usenet Network
Message-ID: <62ca72824c5079c2266be2545337e55c@tipi-net.de>
References: <20261127-nb-genet-mtu-nn-v2-v10-5-749c7cc45d97@tipi-net.de>
 <179586516579.3135.9485431888259061826@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="952161"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:D35ROmCGS/D6qy4qcgWdKdfsWxI= sha256:PzE/sh0fZnICDvM6FRweP7mQkLCHnk1TjMUltD9j/0o=
	sha1:d+goqryFkvP/d50erfXhOHVFMHo= sha256:5aJf9mZtVdwf16m/1Y+qYzLlqRDwPp3zmtpW9SqtAOA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 7488F125F79; Sat, 28 Nov 2026 16:05:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id MFsCHfFMqQKl;
	Sat, 28 Nov 2026 16:05:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373121-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C8B61125F76; Sat, 28 Nov 2026 16:04:53 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id D3DAC2B090; Sat, 28 Nov 2026 13:04:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795871091;
	b=zEhC1iXU4To9POeIEJfl91jNdAl+lqNHnMENwZvGkjxrZcGKGw3vTQiY5M4ASGlppbZR
	 cy8dujF1yM4a7v7J+vwkohVQP5GthtTHlk4cPUwvNRzidKYfOGQNdc6j/oTAO7tqPtnvL
	 QXbcxnCZUZ2UpC39i+0z9cDYSDF0R32RpcgwZzQ3h4bP/V74X8GtdfXnkhNuKX+7wD4ct
	 Jynd4lGpMvCTF0MIUtRw9DDrddo8D/bydYrkobKJncClcXsLoLVH1KCV1+9GZy5xRbuvO
	 rfxpA6WnuTLWWwViC7vAaTXEPZvlIdym3YKmbUJ/R5QkByPiX3HttohoaBRPJNqjqbQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795871091;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=/4xlmphKPEuTkxuDlUvccGIF9AmRB/5/CxZIbSABtO0=;
	b=tNBYS8o+8PDUzhBDkAtzm74d3Gl6IsA750HbMCiYSEIXRg1X6jjFDSgaedCNau2D1n5W
	 v1VssN6rwm90OywjXMrt92IIJmOi8smZAh5KwjotIYDJH/zqxD7B3XaJdi0/xu8nKUP5V
	 emHzFT7fiYcW8NuALHyFfBhdDlKB75O4DMjp2oUkOPbKkOg2VJRIjqYCW1WBVCWoSrBjf
	 qUlRPMKwLutDD/90KhFSMy9avCZ86n7u051oWyA2fXx7In0zBCLH31orGTM+lZak6LTa6
	 Y+d31r8290zF6BNpvIwx63HcarGImTPb2N3MV0frd6LCkhQ+5szlj+uQfrPVvgwVsFw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b="sRb/z7OB";
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E713606A32A;
	Sat, 28 Nov 2026 13:04:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=sRb/z7OB
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795871090;
	b=0V8rpvRuotCUidkXTwcXYFcSBuUzub4iz0i+Dj57IZJJR88Sn8TIckhDx7R3MmGk9tgN
	 Rsk6Mwtx1VIAKf6O90lm775+WSISUokoyNkb5Iz4Kt19VDZOgQsjefW+6blx2V+/MUhmL
	 YqmwCUCMph8CFsk/LNIo7ufwOA+5vMetuCncEQzXcdyXGHDLUvtW/+z3og7HuhynGFBrI
	 Z2m2elY1QaEyF6nLdPxCIJOBSb8S8P+UulF/Jns2jU2MmIp83rciFJe55Lhu2a1mPcEmx
	 hybpH2qdrRe0Uj8uuKGzagMidsMkpTJl3DQRSQx+OsezjQzEpVBZwfnw3e54uINqTvA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795871090;
	h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=/4xlmphKPEuTkxuDlUvccGIF9AmRB/5/CxZIbSABtO0=;
	b=VHQcyMMNQGlSLhnU87KWdvNGsqltltzk+Z2ZfLHrf1J2gl3yZtkEPdZ7DMMA4HoF49FJ
	 gecBxwWM8lWhAk2E4TmzubU2nvV60wGajzDfZT02cNKbM1NztIXww0NaxojzllmizsdA7
	 fL0RPxVHABPOK8dvmFu3TZKOP4G0DoKrWSyya48BTqTTxSv9w0E6TqLwdCZXYuk5/NyPb
	 KX0RU5bPtD1dBl0Y0iUlxW3ZT++4b3JJ1mJJHUHntbH88+8WWoJlb67bKPthUqW1w60t1
	 j2c9dDp/WnCjspUXA3U0Cf9vNK3J9Jmu0ArkbIxNTDP+JSHGOgDY1cx/RAoExAUPyHw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b="sRb/z7OB";
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41B03606A31C;
	Sat, 28 Nov 2026 13:04:50 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 41B03606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 16FD7A0044;
	Sat, 28 Nov 2026 14:04:46 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1795871087; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=/4xlmphKPEuTkxuDlUvccGIF9AmRB/5/CxZIbSABtO0=;
	b=sRb/z7OBhLtzcVoFXxtIsvtI0LpnWM99UHKIgh2BhE80zfaK5XkuH71okRp2MddjApbeOR
	XXHlhKekyuLjXIYWLx9dN2/mNY+tqy0BhJ91n73pT0lF9cEEXLhZOrJ8KOpNMeAQETHjBl
	F9FvOku1MAV7k8vHuUSB+Bqyv30VBuoL2J+NBgE7I9672uOvw//PpkjtekzSLcbC2izqBy
	iwSCVK5dRmxSaKIYyjCrCSyJIAGHExXyWKCIcQDTIRZU5nNopkFkKJHKrzwaRkgE1bsAPH
	NfAQ9/Q2whzz1CpgmQ/ZTr66+4Gyrd/eMVhwPbgnDytcgXOHb9A9cl05OQwdrQ==
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-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
X-In-Reply-To: <179586516579.3135.9485431888259061826@kernel.org>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3