Article View: linux.kernel.netdev
Article #20404Re: [PATCH net v3 1/3] tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported
From: netdev-bot+sashiko
Date: Sun, 22 Nov 2026 11:07
Date: Sun, 22 Nov 2026 11:07
69 lines
10590 bytes
10590 bytes
Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] On BCM57766, tg3_alloc_consistent() (drivers/net/ethernet/broadcom/tg3.c, around line 8870) can find that⦠-- tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported This patch makes the 31-bit coherent DMA mask for BCM57766 best effort. If the platform refuses that mask, the driver falls back to the coherent mask used before 614f4d166eee, so probe no longer fails. It also adds a warning when a status block is allocated at a DMA address that matches the erratum pattern described in 614f4d166eee. Link: https://lore.kernel.org/netdev/CALjTZvYKHWrD5m+RXimjxODvpFPw7Cq_EOEuzRi1PZT9_JxF+g@mail.gmail.com/ > diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c > index 95827df4cf6a1..2cf9d2ea069b5 100644 > --- a/drivers/net/ethernet/broadcom/tg3.c > +++ b/drivers/net/ethernet/broadcom/tg3.c > @@ -8867,6 +8867,13 @@ static int tg3_alloc_consistent(struct tg3 *tp) > if (!tnapi->hw_status) > goto err_out; > > + if (tg3_asic_rev(tp) == ASIC_REV_57766 && > + (lower_32_bits(tnapi->status_mapping) & 0xffff0000) == > + 0xffff0000) > + dev_warn(&tp->pdev->dev, > + "Status block at DMA address %pad may cause TX timeouts on this device\n", > + &tnapi->status_mapping); > + [Severity: Low] When the status block lands at an address that matches the erratum pattern, the driver keeps the buffer. tg3_rings_reset() later writes that address into the chip: tw32(HOSTCC_STATUS_BLK_HOST_ADDR + TG3_64BIT_REG_HIGH, ((u64) tnapi->status_mapping >> 32)); tw32(HOSTCC_STATUS_BLK_HOST_ADDR + TG3_64BIT_REG_LOW, ((u64) tnapi->status_mapping & 0xffffffff)); tg3_alloc_consistent() is only called from tg3_start(). A recovery reset therefore writes the same address again. That covers both the tg3_process_error() "DMA Status error. Resetting chip." path and a TX timeout reset. Only closing and reopening the interface gets a new allocation. Could the driver hold on to the matching buffer and allocate a replacement instead? That would keep the workaround in effect on platforms that refuse the 31-bit mask. The warning also gives TX timeouts as the symptom. 614f4d166eee says the hardware sets the overflow bit in the DMA status register, and tg3_process_error() would report that as a DMA status error. Are TX timeouts the expected symptom here, or should the message also mention the DMA status error? [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261118105408.1076095-1-pavan.chebbi%40broadcom.com
Technical Details
Message-ID:
<179534562215.3135.11736501194773169729@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368666-linux-kernel-netdev=dewy.ruReferences:
<20261118105408.1076095-2-pavan.chebbi@broadcom.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368666-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3 1/3] tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported Date: Sun, 22 Nov 2026 11:07:02 +0000 Organization: Usenet Network Message-ID: <179534562215.3135.11736501194773169729@kernel.org> References: <20261118105408.1076095-2-pavan.chebbi@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3618574"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:pKCtlt60q3vSqnF8dBbsIV8uHsg= sha256:Cx2oEYK9MRcOrl7mvNQdMgm846isjCObyCr2XwrDQqQ= sha1:sZK8TiPP292gKl1wZzTTIELDmYo= sha256:Ktvk4r2WgVg3pyIlyWcudygp269PVh/DTgBroxMxGIU= 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 18691125D74; Sun, 22 Nov 2026 14:07:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.5 X-Spam-Status: No, score=-3.5 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.org 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 QooKA_hP2366; Sun, 22 Nov 2026 14:07:19 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-368666-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 55C2B125D75; Sun, 22 Nov 2026 14:07:07 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 3B4BB605261; Sun, 22 Nov 2026 11:07:06 +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=1795345625; b=tpuOD2sRlKqkVcMmNDWaMa6X6vF9ED6aLXW4hvlYCu+9UoBmfX8vtGrne5U/KjoXdAqA unlI1a5caY4l6Dsc2Vx9pZriNw9xF8++34Fb96zfW3hZMvL5njQb5YANHHkta3kawCCa0 izIAc3R25hN3Fj/Ybk8SZCV8QCotvDeF9WQvWkfuaP2p0iF8ojzPHokOQD3BwAGVeQCM4 HCXHBFkB9gcreRq4YGRsALPE2csHnjbGSyKd/jrzIgaeTpUqI7bMgF/Bk4VEof7zPtwzS s9fmaeTnj2eh5XmmD+nJTlAXHGkZrGRGZEYdvIvbFXNcqJlzeJU/hEb6JIJSsqsOhnQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795345625; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=bd1L8F8/koxTYcaOh49inrpszN9fldx8EIO0WyauHFM=; b=EumtaH03vEQdGDnWl9SehLPQU+ppU0teMb9hLDOG2ZGPxGoFPe1mdkhHicVn71ah359Q icILOjw5VeS5k3s/C6QvodWCFI2r1JjeRpfyo9t91SO5jRC6Q5uFFi5E0vgGn7AJrgEqf HOrRoFM5jMO0dUdgdVRrxEpO6bV6LnWataQ1dHnNlMJDMvaQ67G4X8nxcYyokpNWb5gff TWX+haCYSuqito/HpG2XKfqEae8aNyQqWKMKGLxJTZkioi3JtUAQJjOmPYeP74uHyKcst fRz2g+drzL54wY50252v5tkkw+lMczQnieNU2kZSRKr7BEbUyBQCxGr1I5WHN59N3Yw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gs88IWcU; 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 82239606A336; Sun, 22 Nov 2026 11:07:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gs88IWcU X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795345624; b=boIA3aJ5kLiyJnRDO+YqXeVLw2DhJdQqodC9jjhXWHmj/+bySzcFukdYZ2gHUqzCBw58 GN1PgDL4CW9lbAuU6ivVVP9ExMikT1iQej5xrX1BU92dsqNAupCEmjChfbJ3zdN3dy2iM PAwVIXr0qu/MlhC0kwZN2wou5FxBVXH+LNIF5vAtv0egIUfY/6wtDbxed9FbWD8FfRBWr KPcU/gQX8P6spmuhQXEgQ/eJLo8xfFhw3r5ga2QW4AxqeXtsMdklnsf3BIxP19Ww5/k6f w3p8kT4FqEN7ppBcD0Sq5Zmesy05FLA1FClISy7ZP44dD/Nj3PKGCbO/1E3HUJEoysg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795345624; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=bd1L8F8/koxTYcaOh49inrpszN9fldx8EIO0WyauHFM=; b=JNOsi3MYZoK0cOp8y6fDgERf9yYu7d5tVXfGMRqE8GopykcMztzzj5IjGs1kKu4hlRvj iTMAMLgrtUSU4HLT9IubtEtMdsj2vhRPVbQ3e1hR41CCLjzmbU7cC6ZGEXMWHldTKuzrT 5o70V26lHgRev+WzNt8OJ1vwxrQ3yfJ4GNC+82++ihb+dffKhcF7G0jJXMxd/3RhD2ldV VsUAd59fGt5YYmBf/uPZYkP4SdBjVoRS5Gz1ZjwlU0JKft4d0OfYIlXKxHVpQy1O25EFw hSqp5Wl4vgTsLZCjTHmBlMBgh9wJ80zmBasfExrKiLYrdJcRU8Zb1GtWHMdSZSP9cxQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gs88IWcU; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 A4CB8606A331 for <netdev@vger.kernel.org>; Sun, 22 Nov 2026 11:07:03 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98A611F000C4; Sun, 22 Nov 2026 11:07:02 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795345623; bh=bd1L8F8/koxTYcaOh49inrpszN9fldx8EIO0WyauHFM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=gs88IWcUxgAtBmDHyMHFicietLYdNHw1JkhPSwjgmKwZ0e3LOwJIw+oKzyDTTaYt7 E4ksanB2Zmu183lOP/dJu8g8wgIrYYcoRUBz40fYK6CHALShlUOlCHyX5hmdm5ShmV QPK1n/LjgOWnOgx2+jKSokmrGJoNIMrrzHisioXzRKglrAts1GyGcluwMxytc/74z5 HbnNsta1ykpU8Yi/u2By6ZFgHOy7mtqyhwk9lKKSfwhslW/VOU9wuvf8UgDNEqzZlD 7RKsdb93CQ/r1nnl+H8iZicBG7l7Cii7pwFZ3DrKEx8pkvLYWHTW0CDC4PA2BpyQbf 8k5D3CDeaD22A== X-Cc: michael.chan@broadcom.com, kuba@kernel.org, andrew+netdev@lunn.ch, andrew.gospodarek@broadcom.com, davem@davemloft.net, edumazet@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, shravya.k-n@broadcom.com X-In-Reply-To: <20261118105408.1076095-2-pavan.chebbi@broadcom.com> X-sashiko-severity: Low 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