Article View: linux.kernel.netdev
Article #14280Re: [PATCH net v5 0/4] bnxt_en: Make RING FREE more robust
From: Joe Damato
Date: Tue, 10 Nov 2026 22:13
Date: Tue, 10 Nov 2026 22:13
54 lines
14222 bytes
14222 bytes
On Tue, Nov 10, 2026 at 10:14:50AM -0800, Michael Chan wrote: > On Tue, Nov 10, 2026 at 9:39 AM Joe Damato <joe@dama.to> wrote: > > > > On Mon, Nov 09, 2026 at 04:13:57PM -0800, Michael Chan wrote: > > > On Mon, Nov 9, 2026 at 12:12 PM Joe Damato <joe@dama.to> wrote: > > > > > > > - Notifying bnxt_re when DMA is stopped. > > > > > > I think this is probably the one item that should be added to the > > > patchset. When DMA is disabled, RoCE will not work at all so adding > > > this will make the series more complete. It may be as simple as > > > calling bnxt_ulp_stop(), but I haven't looked into it in detail. > > > > Hm. bnxt_stop_dma runs with rtnl and the netdev instance lock held and > > bnxt_ulp_stop -> bnxt_re_suspend takes both. So, I don't think calling > > bnxt_ulp_stop is going to work. > > > > Maybe I need to make a new patch where bnxt_stop_dma queues a work item that > > calls bnxt_ulp_stop without locks being held? Not sure. > > > > Also: would you be OK with bnxt_re treating BNXT_STATE_DMA_STOPPED as > > detached? I'm probably getting this wrong but I think with DMA off > > bnxt_re_suspend only takes the detach path when FW_FATAL_COND is set. > > > > I'm copying our RoCE developers Selvin and Kalesh. I think that if > you call bnxt_re_suspend() before you disable DMA, nothing special > needs to be done because the chip is still functioning. It will go > through the normal removal process. I'm probably missing something but I think that the ring frees can only fail in __bnxt_close_nic, where rtnl and the netdev instance lock are held. DMA has to be stopped before bnxt_free_mem. bnxt_re_suspend() takes both locks, so it can't be called. I think there's two options: 1. Stop DMA as now, but queue a work item to run bnxt_ulp_stop without the locks. bnxt_re_suspend would need to treat BNXT_STATE_DMA_STOPPED like FW_FATAL_COND and take the detach path. or 2. Call bnxt_ulp_stop() in bnxt_reset() before taking the locks, the way bnxt_fw_reset() does, and bnxt_ulp_start() after a successful reopen. That covers the TX timeout reset, which is where all the ring free failves I've seen come from and it doesn't need any bnxt_re change, but it restarts RoCE on every TX timeout and it wouldn't cover a case where the user triggers close/open. Not sure if I am getting that right; maybe Selvin or Kalesh can comment. If that is accurate, do you have a preference on how to handle this?
Technical Details
Message-ID:
<avOXJf5yl8ajf8Qr@devvm20253.cco0.facebook.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360681-linux-kernel-netdev=dewy.ruReferences:
<20261106191423.4194081-1-joe@dama.to> <avIpEpoCYvLHYl3j@devvm20253.cco0.facebook.com> <CACKFLinPK+wR=TMA3zNJDKQR_=HfMFUHPxKS+yhvv9SegZw7Ow@mail.gmail.com> <avNWzavrxJSasfp5@devvm20253.cco0.facebook.com> <CACKFLikU8ax8-VN+EiAhrn_w+2=yex2TNHPxEYqni6g0BKHKKQ@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360681-linux-kernel-netdev=dewy.ru
From: joe@dama.to (Joe Damato)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5 0/4] bnxt_en: Make RING FREE more robust
Date: Tue, 10 Nov 2026 14:13:57 -0800
Organization: Usenet Network
Message-ID: <avOXJf5yl8ajf8Qr@devvm20253.cco0.facebook.com>
References: <20261106191423.4194081-1-joe@dama.to>
<avIpEpoCYvLHYl3j@devvm20253.cco0.facebook.com>
<CACKFLinPK+wR=TMA3zNJDKQR_=HfMFUHPxKS+yhvv9SegZw7Ow@mail.gmail.com>
<avNWzavrxJSasfp5@devvm20253.cco0.facebook.com>
<CACKFLikU8ax8-VN+EiAhrn_w+2=yex2TNHPxEYqni6g0BKHKKQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="725936"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8JFz22+GX1HKzj5AgCFkcv13Qew= sha256:JE1Nr+HHNKj5cn/x3nXDMNMyVoVNC3fr3fBWiTw92iM=
sha1:ZIsVakLcDXlhuoSOuH2z693stJk= sha256:rQJxHHDKXYQuLjZYEc7lQeKrDEmL5A2Lj7LRQvY5s6c=
Content-Disposition: inline
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 4B603113D9D; Wed, 11 Nov 2026 02:10:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-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]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=dama-to.20260707.gappssmtp.com
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 KiqzAumYh8Fx;
Wed, 11 Nov 2026 02:10:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-360681-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=dama.to
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 22C73113D2B; Wed, 11 Nov 2026 02:10:17 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 090351822BA; Tue, 10 Nov 2026 22:14:23 +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=1794348841;
b=QFn6gIpsD47zbhMntVvrWYSeoMxZQfhNo4pNuL5yrDe3LUeqAbpmLPQoJ570nRAi38I+
x128KH8Oe+pMQ6m6FlFKRsl2pBqjpDxb6tn7hcoMbRkehBG32U39hnZ/f/+9M1dybr/uJ
Ym5RnfPpf5G7JIooaRA/M3lV/o9UnuZc4XVYFg/smMJo0HskQGOfOLX2jwFxuL87qVbcR
7VhJ/0qyXawGuJieQri/Rl2jwNtXUDNuwl9R6QkDBILlgqggT2TQ8OT/uQ2Lp9Pz4HOdw
QmVamNKdAgDOg1fAsNkau4dvC5DKFvxFoYHbDQSaiar47lfbp0Nu99+WnQ/z+8CrSFQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794348841;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Disposition:Content-Transfer-Encoding:In-Reply-To;
bh=o1TWetvXqmnZqe66iKDTc99BGiIMVM+8egrEZgCwU64=;
b=y/ktQRE/sEPV1x1ld21ybJzUNnonQXMrQ3STYpJAAoSHR2QTAouA4lL0N2M2Tb25Dpni
iVFagaKetMvEA2G386bEK7iEsnv0LZdnJ7avg705moreTrMIUbwvdWHLGtK159mzvHIsx
Nrp8DaqauaL21051yEhXxE9BB1Zx7UuP1v/SxoNeI4w2vPBDrkgJlnvlCxdQ/7kvlUQfv
DEUkE30nYHRlukY4Gf7dSirsMWwwhqjsEWjyT1P1rLYfhAUPNZj06Ky9n2h4EaAGs42+N
cIcXA+GBl9fnClq/c3RIqKINTt/fZ0zdQ3p11ncrXIId2ztPajgwJ4F4Q1r6B8ye96Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=sb7YHck2;
dmarc=none header.from=dama.to;
spf=none smtp.mailfrom=dama.to;
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 1C26C60A2630;
Tue, 10 Nov 2026 22:14:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=sb7YHck2
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794348840;
b=Ty4BT37LnFrWgMUt0+/WCiqPTdmEuxhc7FLr6dwVoMNBN2+L4WQYg9d+jQ3M88aF1X0e
K2vBMIHJUZYutQigc81QZwfLa7FQNA+pfxD2Ml/3tLiiC9JRsAZxtFhDx2gwqbP+WhZ+C
gyeg4TfeEwXuJ6C9qhqgThvkcE7aQ3XtdP0FFeSPZGNGaW211C3VynNmVl0y/iAVHSuHZ
HEcJQP0kKFtCpMB5ibQVS3zOq9pOA6yFu5FQhiOKU/ndN0wmkh09lusLu/M6yo0O5sJ89
yhF0uZUNJ4tR9cdvpPyQbfjJeKInH8irJKNT9VzCToO8PX/kJSEmQa0U69UDCZ8D/EQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794348840;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
Subject:Message-ID:Mail-Followup-To:References:MIME-Version:
Content-Type:Content-Disposition:Content-Transfer-Encoding:
In-Reply-To;
bh=o1TWetvXqmnZqe66iKDTc99BGiIMVM+8egrEZgCwU64=;
b=lMkyQKWDMn1vOVeadAmRzVISkNGSDJYkiHuhtQuWDVk/7k29r6uzxQM9Fu11BQ1dqCOm
RJVgUt2G4r/VwsLC1Iav7WHWvLTC0Mz41uWDeYmTiaIdubQy6FDrCgQoWWPg5u6pDwYNq
RWwsEFBV2faWr9PoMICmouWmakmE5E8pvqv7q1Sajgz3BXCX8f5X0yR0rTjCEx9FrUQ3b
HRwBiy2Xd6RU5hkrPq8Ok6T3/S8Oke6PC6oHrecaD6uhZ86zik32ppPLHvZ1iyvTkSFqU
oZgqVQzw+7PMKY92WZglrJOqFAcUlG142pfbyanud1LpJKDazVxt4AlJZeoqm21ogAw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=dama.to;
spf=none smtp.mailfrom=dama.to;
dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=sb7YHck2;
arc=none smtp.remote-ip=209.85.216.50
X-Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50])
(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 A7E2B60A2627
for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 22:13:59 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A7E2B60A2627
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to
X-Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-3ae691283ecso1422183a91.0
for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 14:13:59 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=dama-to.20260707.gappssmtp.com; s=20260707; t=1794348839; x=1794953639; darn=vger.kernel.org;
h=in-reply-to:content-transfer-encoding:content-disposition
:content-type:mime-version:references:mail-followup-to:message-id
:subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=o1TWetvXqmnZqe66iKDTc99BGiIMVM+8egrEZgCwU64=;
b=sb7YHck2HEI3rzp3xBJIcgU9+z5nvBQcaCX6qGriHWzx0RqLUOjGs/eEmNmXX5cDKy
x1T/wdm8ATuTZC/ZMeK8MnCZZOAM5RcwTSfY4hREYVJAng9ZqJHz+oPaXoQtHGR/CYxl
Py6bwVna1z/c45jgSCqs0gdKbU9Ofg8+hC/K9QRNrkvCAzi+QaSMZ8D6u3YKqykLVgc1
iwriTemklGSLka8QVNp757TUmhoSQXXJOjiS0fZqEwntRr+n3SoAVlbbheOsq7mKs8yx
KfXN4SC0p2moI48sbO7j7nJepvZUixgW6XqkZjrxwHaXb996CgowhAKVJaSbJVQy3kgX
ygmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794348839; x=1794953639;
h=in-reply-to:content-transfer-encoding:content-disposition
:content-type:mime-version:references:mail-followup-to:message-id
:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=o1TWetvXqmnZqe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C0BgHrdwNiuNj4OWnogoYpvGXCDzyjTv+c7AdgcDkxOA3h8oV/orVKJ2Iwx2p
Bqy2Opij5JNPMCbQ1sBDPPQvCkfm6f5eZjZKYwHxkxw=
X-Received: by 2002:a17:90b:2d85:b0:3b0:a1c6:95ae with SMTP id 98e67ed59e1d1-3b182f570cdmr210701a91.31.1794348838994;
Tue, 10 Nov 2026 14:13:58 -0800 (PST)
X-Received: from localhost ([2a03:2880:2ff:42::])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b17db4faacsm1519211a91.7.2026.11.10.14.13.58
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 10 Nov 2026 14:13:58 -0800 (PST)
X-Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
horms@kernel.org, pavan.chebbi@broadcom.com,
linux-kernel@vger.kernel.org,
Selvin Xavier <selvin.xavier@broadcom.com>,
Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com>
X-Mail-Followup-To: Joe Damato <joe@dama.to>,
Michael Chan <michael.chan@broadcom.com>, netdev@vger.kernel.org,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
pavan.chebbi@broadcom.com, linux-kernel@vger.kernel.org,
Selvin Xavier <selvin.xavier@broadcom.com>,
Kalesh Anakkur Purayil <kalesh-anakkur.purayil@broadcom.com>
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-In-Reply-To: <CACKFLikU8ax8-VN+EiAhrn_w+2=yex2TNHPxEYqni6g0BKHKKQ@mail.gmail.com>