From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.177 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796137920; b=mGd82cgMrMKLDr3L8HZYJ4PCgNGRSpIgidpZECCDmwRoDaVboNqV2p90pElbhj7axycG V2yJ/Xn24wmRUNf7K3RsBpjEWtSkM2OsmQbTekLS7JuvIi/hzwnA4guEaeA+5vLy3ld41 tXiRKLKfCvQpO1JJFHgOt9Nfdsqx5sa4kCx6JFPy46mdn+yaSZWI9nQv2HP3Il2d9LtEd Zmv/dsZcvc9ZWX8r75wBFrMjFkHl4AvC5AbS4OowjF7+vc0ykJ71+WDBfgV20hUFBdXgP fITiyVjbdUYxxR42FOJW2Kr/sF5q6gWwynYLsPRts8xT1Z5X4Dg0PMQzGiu2hPbSPmg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796137920; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted: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=pz7Q0vqBEV6SUbDo7DUsEzXYbJtAjtPpMknw0ZMlskE=; b=U3bLv6mcK6/FeT/tncgVXaLdOXhiZXHOsTilSVywYcjkgOcy1YYaVK61TzwoVwd3soZo /ato5CRF85xX0ROIRJjrBcBtsVLccDWB7mrVJyDOKLcyIo602xbgwx4NWaAl8emiYR7b7 819yVsisWuI0MqLglNmQlRjM+WYQcRY3LF6YhLW2PnTC0yYFp+2rlKpEmTDAoZTM48sHf beHF2tpHgoWJYygZGEdE4JRYU9qv6Z2vhA0uZ0Pe9m+R5/ETmbEeGsHlyPgg/TLFT0Vdq JMDLPcsRyKymg+FGrWUTTTIdx8CalYwT0LnFNI0oNmfuvWjPh9jgHC+qo6ih1JA06Qg== 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=op9jTDIj; arc=none smtp.remote-ip=209.85.215.177 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 46784606A320 for ; Tue, 1 Dec 2026 15:11:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46784606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to 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=op9jTDIj Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-cd69954c755so8589606a12.3 for ; Tue, 01 Dec 2026 07:11:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dama-to.20260707.gappssmtp.com; s=20260707; t=1796137919; x=1796742719; 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=pz7Q0vqBEV6SUbDo7DUsEzXYbJtAjtPpMknw0ZMlskE=; b=op9jTDIjKp7Sx3FQNB6Gv33i34wMjOeVINEMls9VOj8wW6oQCKS8v5+4ZcDH4Skri8 EBnVornpQoos3Aq/qyzpt5X4+c7qrDd5omuuMaNjY2W4ZyWGG+YZOa69hLDn6TzNJSLF iVHs2eFRd0r6XREvIozI3B4qonKxJ1S6ghRfqKt02Xyk6EJzMHIWWMYFrqKjSEceYZFf +9qdGs+O1PQCCwDh9OGIHZEeHtPgsV4mG+tz7j8gUsYP/9vRao+NBJtoTOo3/TjxTgzm K8D+4rvWf2MNlALTPk+f1O1coCtreMA5cziyZ5PKnyC8w/DEPgolnpLlDn7Ge/EFmrlJ eBJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796137919; x=1796742719; 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=pz7Q0vqBEV6SUbDo7DUsEzXYbJtAjtPpMknw0ZMlskE=; b=t7DIDsN4BHNQpfez/0sEiglFdszb1iZlK5d5we9EN3NFj34eit+Si95cOuF5Fml12E QK1gTMh7t2LusWXRMEomQavshgCko6lZQBHEwSG8JTJ/ICBvqTu8J7dDKNHU23cmVeAP cuMgZk1OWDmFO0a4/Tt7JelgrUYYFQS6TgP9wEkpwKRFjqQONWBAuw4Z8NF33KVux9FL yXd1yLPMgRmE3hjJXmNSIsT6kh1HK+aKEegD6AU6enXU0piebMXQZi4wAsBlL+ts4XU4 55GekTbLaEZHvV9qZh6zFx1syQf1wr2sKlloOBEj6SYKJ0hRD0eeUvLikSHVJT/iHS7I 6YWQ== X-Forwarded-Encrypted: i=1; AL+hErFqDXgptIslsBpbe/ibsqOi09yUFYcsTJWsuvUkiSiaE4zUrVxkewMQmVKoyqNpXS4wdKD1oTD80zNQQRg=@vger.kernel.org X-Gm-Message-State: APuU4Z+7Wiy2RORfUi//fQztiWz/LMAo4BB+jsuYpfpLbhQPIusYCWM2 llnTZsgKUZkAOrDWfSYpHkz6y+eOXdNK/Y0bPJcuY3qmJjnSU4H/JgNXnLF+8lPxMPU= X-Gm-Gg: AZFdTZckkIT1cOBsfzQQcA7w5oVG3G3wgU0EqhAtKcNjsN4Ify+W3w4ZhuicldUWX4z uCc/FMFuFdgQ8uM2e0+cVF0H9zF77sbJubRew3uplJAwCc7ulnowaXySiGi3Q5xhuo4LHQH0JEk QYyfbOJmlQmq3ygr5USzoamFN5wkP9HY47xdSUiTYBfMn4JHLMMH2/E1mFhg38hPJynjTDqYuAn znzpi9PLe25GRL/+BKZsB2uCt72pE3dnm9E2NiOrDFD4fqpJrgeBSAlcGuq1+G2N8a7MK4K4oaf cq0M3Yam69BmWbaAlNCTe9zFKttSeOEgMbNHBQg3bhilrKraBGF88x5zmxESOqGaA2SDMMb2OwU lC40JT8P6nthYvBzYRDdYsT3MaJCc8QVeJZLXnW4WuR2tyMNxHII9YH1HeWgec1QpH0q0qNxbRJ uNn4P/PvjpVAnMYPwtiMrBSMXthbd45P7sTTIF1sJWGZL11kmjaJ2Ebo2c7oYBbds6wfONydP1i pSUERxd7RKzGUiiRhezPTXnx+dzlyaWFoMcjqJ5AQV193+QPCmuLlwss6ojaXPKPNlGj1kSus2C DlcuG+Bh/hzBILJplInnXBU6/Z7mymhfQGQvgUmF X-Received: by 2002:a05:6a21:170f:b0:3e2:5624:6938 with SMTP id adf61e73a8af0-4014c34f664mr42419985637.42.1796137919098; Tue, 01 Dec 2026 07:11:59 -0800 (PST) Received: from localhost ([2a03:2880:2ff:7::]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cdebb45c972sm11590113a12.20.2026.12.01.07.11.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 07:11:58 -0800 (PST) Date: Tue, 1 Dec 2026 07:11:57 -0800 From: Joe Damato To: Paolo Abeni Cc: Michael Chan , netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, horms@kernel.org, pavan.chebbi@broadcom.com, selvin.xavier@broadcom.com, kalesh-anakkur.purayil@broadcom.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v6 0/5] bnxt_en: Make RING FREE more robust Message-ID: Mail-Followup-To: Joe Damato , Paolo Abeni , Michael Chan , netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, horms@kernel.org, pavan.chebbi@broadcom.com, selvin.xavier@broadcom.com, kalesh-anakkur.purayil@broadcom.com, linux-kernel@vger.kernel.org References: <20261120152830.699712-1-joe@dama.to> <73634d96-8114-46f4-88fb-b4afdf2f17fa@redhat.com> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <73634d96-8114-46f4-88fb-b4afdf2f17fa@redhat.com> On Tue, Dec 01, 2026 at 08:30:57AM +0100, Paolo Abeni wrote: > On 11/30/26 19:11, Michael Chan wrote: > > On Mon, Nov 23, 2026 at 3:27 PM Joe Damato wrote: > > > > > Sashiko's review of v6 raised a few questions that depend on how the firmware > > > behaves. > > > > > > 1. Patch 2: firmware ordering for RING_FREE > > > > > > When the firmware writes the RING_FREE response (valid byte set), > > > has it already stopped all DMA for that TX/RX/AGG ring? Is the > > > only thing still in flight the completions? > > > > Yes, DMA has stopped from the associated TX/RX/AGG rings. > > > > > > > > Also, once the firmware answers RING_FREE for a completion ring, has > > > it stopped writing to that ring? > > > > Yes, the HWRM_DONE completion has been written to the completion ring > > and should be the last entry. The only thing is that NAPI may not be > > synchronized and may not have seen the HWRM_DONE yet if we only rely > > on the polling of the RING_FREE response. But in this case, I think > > the interrupt is likely broken and we've waited for the entire FW > > timeout already, so we proceed ahead. > > > > > > If the response can be written before the ring is quiesced, patch 2 > > > is wrong and I'll change it. > > > > > > 2. Patch 3: abandoned waits because of FW health > > > > > > hwrm_wait_must_abort() gives up when the health register reports > > > not-healthy, and patch 3 counts that RING_FREE as stuck. > > > > I think counting it as stuck is correct. When FW is not healthy, it > > may not have processed the RING_FREE at all. > > > > > > > > I am going to guess no, but is there a health status that guarantees the > > > firmware has discarded its ring state? If so, we could skip stopping > > > DMA in that case. > > > > > > Sashiko suggests that an ifdown overlapping with a firmware reset would > > > need a rebind. That might be extremely rare and fine as-is, though. > > > > > > 3. Patch 5: Drop ? > > > > > > Sashiko found a deadlock and RDMA restart races. I don't know what the > > > simplest fix to all of this would be. > > > > > > Maybe it's better to drop patch 5 and let bnxt_re handle this in a > > > separate series? > > > > I was hoping we could stop RDMA before disabling the device, but if it > > is too complicated we can defer that. > > > > > > > > It would be really great to get the ring free failure path fixed so that FW > > > isn't TX-ing memory the driver has released. > > > > > > If there's any guidance on the above that Broadcom can provide to help get > > > this applied that would be very helpful. > > > > > > > Sorry for the late response. I was on PTO last week. Thanks. > > @Joe: your series is out of suie history, a repost is needed. OK. I'll give it a couple more days and see if the bnxt_re folks reply with a suggestion for item 3 (patch 5) above. If not, I'll re-post with patch 5 dropped since it seems like we might be good as-is, IIUC.