From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.198 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796349390; b=L5vvd4Ue6FZXLCGsLYfm6SxYKiRQwhAQOtoUKCBzArCVIaMu8iSZ4WJ/lajOqn+qPuJp os2fLZX5kDgAez2v/2jSvyDHlt6kGRceofAwUhVshowki0MiGQjmM5l2dhReW9BfaMexM JpsX2X80u2S4+vwC3jxYYFwQ+UH+vaaoKO/SNf86XHif3LE+vcndjKqSJIfU2lS5VKreG 7T6Y7AsT/c5Hxea//ZwtM/MZ6paSchuF42LG6j2fcAId1Lb2HZ3I+7PGq0HbBsOI1z8vX tNQzlfKe9y9gvUs6Ju0jNPe3Ky1ZLbTMdEncGxMeokXoeomnvnVpA8K/gb4uImTxGbg== 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=V1l4AdLjmrfLnmgatWpnh3Gu5DSRLmRd+tKiOplebTp51hIGh/aa+jaraJaIt1tVGKg6 s1h/+eqpJU98t1c6K5V8925uCAx0/OI1Fi1w9HfMryXYlZiZQKfb10+ai0lIlVTMoZzdj /1ds8tVAUfdDR2BsOZrwGhvJc7SUSO8B28tGvR7JwueoASq9LXy1tfLnSEbgZFei05jlh /tDKY1EN4LxUcDCTOfmTckZdlepwiAGFw75Sl/lQTL8u3v5kTGkZ6f2dCKyeyqjP93UsU C2TRj8LHvinXG+mYR9JF4PDBtyazVQKW/NGUegCZJCZIJ+Indxaoz+vQIqr+XzmDR2Q== 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.222.198 Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (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 1D605606A332 for ; Fri, 4 Dec 2026 01:56:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1D605606A332 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-qk1-f198.google.com with SMTP id af79cd13be357-944138ed63fso48049085a.3 for ; Thu, 03 Dec 2026 17:56:29 -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=L9Pj5dM2HWPju6hIDULKec0r1Edo5ffTdtQum93DeHHTflkqSWCqTy+n3pqdPoxlay QTL0WttwC/Pc3XanDWjDcaLXX/QMVmAvsR+SJleurNN+x583BTQw5RcvrXHmoVXtQ8YD 2rQRy4XEPDal+QKgWQI6Q/HPi1MY1jTD9GpBgqg7j2c0C8VUqabi/xcqG9x7b6Az+bc8 mxMp/p4Jms0EFRoNc7Q2FECKLKNRz1oGhEHphUWwfpj5UDBmN22KAVeSUp5WIDvhZBz4 FoNU5FVZFkLRnwaXM9nJXpcvJDltzbr5QkyLFbW3LwEHxyMCRiuGVCNviIoBqXI5izG0 DjTg== X-Forwarded-Encrypted: i=1; AL+hErG82aCggbOOjE7E2/PKWqBxBvwdr9Ua+f9OZ01SrtcyqVgW0YkqVlhHZ9itxOyscT8gfRD6cqaTIV856gE=@vger.kernel.org X-Gm-Message-State: APuU4Z/X7ZYu1IXBBiflKvbjqvGykBml3+GVRNq1ZkFLBhJ1fMHFuI1x y0PCEZqAm6jqwnKaomNYGnND1+tQB6U/SBPLBAiInxf5GWjha3tHk0DpJpEn/3VmVyAAYRyFWaj e9+DFYqPqVw== 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: linux-kernel@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?