Article View: linux.kernel.netdev
Article #20618Re: [PATCH net-next v3 2/3] RDMA/ionic: Use the ionic command timeout for the admin queue
From: netdev-bot+sashiko
Date: Mon, 23 Nov 2026 00:59
Date: Mon, 23 Nov 2026 00:59
128 lines
12976 bytes
12976 bytes
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 · High: 1 · Medium: 0 · Low: 1
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [High] The fix is incomplete: a firmware command that takes 2-5 s,
which the commit message says is within contract, can still reset the…
- [Low] The commit fixes a user-visible bug but has no Fixes: tag.
--
RDMA/ionic: Use the ionic command timeout for the admin queue
This commit changes the RDMA admin queue watchdog timeout from a fixed
2 seconds to HZ * ionic_cmd_timeout(), which is 5 seconds by default.
The goal is that firmware latency within the ionic command timeout no
longer resets the RDMA LIF. The AH create/destroy busy-wait keeps its
fixed 2 second bound.
> diff --git a/drivers/infiniband/hw/ionic/ionic_admin.c b/drivers/infiniband/hw/ionic/ionic_admin.c
> index 0ccd869ad8e6a..b463ad8b4e804 100644
> --- a/drivers/infiniband/hw/ionic/ionic_admin.c
> +++ b/drivers/infiniband/hw/ionic/ionic_admin.c
> @@ -18,8 +18,6 @@
> #define IONIC_ADMIN_BUSY_RETRY_COUNT 2000
> #define IONIC_ADMIN_BUSY_RETRY_MS 1
>
> -/* admin queue will be considered failed if a command takes longer */
> -#define IONIC_ADMIN_TIMEOUT (HZ * 2)
[Severity: Low]
Should this have a Fixes: tag? The 2 second IONIC_ADMIN_TIMEOUT removed
here was added by:
Fixes: f3bdbd42702c ("RDMA/ionic: Create device queues to support admin operations")
The commit referenced in the message, ec8ee714736e ("ionic: stretch
heartbeat detection"), has a Fixes: tag for the same firmware latency
reasoning. Without a tag here, stable kernels that ship the ionic RDMA
driver won't pick this up.
A backport would also need the earlier "ionic: make the command timeout
per device" commit, because that commit adds ionic_cmd_timeout().
> #define IONIC_ADMIN_WARN (HZ / 8)
[ ... ]
> @@ -294,7 +297,7 @@ static void ionic_admin_dwork(struct work_struct *ws)
> }
>
> if (time_is_after_eq_jiffies(aq->stamp +
> - IONIC_ADMIN_TIMEOUT)) {
> + ionic_admin_timeout(dev))) {
[Severity: High]
Can a firmware command that takes between 2 and 5 seconds still reset
the RDMA LIF through ionic_admin_busy_wait()?
The watchdog now waits HZ * ionic_cmd_timeout(). The busy-wait still
gives up after 2000 x mdelay(1), and then it always escalates:
drivers/infiniband/hw/ionic/ionic_admin.c:ionic_admin_busy_wait() {
for (try_i = 0; try_i < IONIC_ADMIN_BUSY_RETRY_COUNT; ++try_i) {
...
mdelay(IONIC_ADMIN_BUSY_RETRY_MS);
...
}
/*
* we timed out. Initiate RDMA LIF reset and indicate
* error to caller.
*/
ionic_admin_timedout(aq);
return -ETIMEDOUT;
}
ionic_admin_timedout() queues dev->reset_work. ionic_reset_work() then
calls ionic_kill_rdma_admin(dev, true), and after that every verb fails
with -ENODEV. That looks like the same failure this commit is meant to
fix.
Every non-sleepable AH operation goes through the busy-wait.
ionic_create_ah_cmd() and ionic_destroy_ah_cmd() set
IONIC_ADMIN_F_BUSYWAIT when RDMA_CREATE_AH_SLEEPABLE is not set. ib_cm
reaches this path for every CM MAD:
cm_alloc_msg()
rdma_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr, 0)
ionic_create_ah_cmd()
ionic_admin_wait()
ionic_admin_busy_wait()
IPoIB and sa_query also destroy AHs with flags 0.
The slow command doesn't have to be the AH command itself.
ionic_admin_post() picks the AQ with raw_smp_processor_id() % aq_count.
ionic_admin_poll_locked() only accepts completions in ring order
(cqe->admin.cmd_idx must equal aq->q.cons).
Say an AH busy-wait is queued behind a create or modify QP that firmware
takes 3 seconds to finish. The watchdog now allows that latency, but
the busy-wait would still time out at 2 seconds and reset the whole
RDMA LIF.
The commit message says the busy-wait keeps its 2 second bound. It
doesn't say that the busy-wait can still reset the LIF, or that a slow
command ahead of it on the same AQ can trigger that reset.
The later commit "ionic: add devlink param for command timeout" allows
cmd_timeout values up to 255 seconds and doesn't touch
drivers/infiniband. By the end of the series, the gap between the two
deadlines is even larger.
Would it work for the busy-wait to cancel the wr and return -ETIMEDOUT
without a LIF reset when it gives up before cmd_timeout, and leave the
reset to the watchdog? The 2 second spin bound in atomic context could
stay as it is.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261119-b4-ionic-cmd-timeout-v3-0-2cdb8fca15fd%40amd.com
Technical Details
Message-ID:
<179539559480.3135.11592624744457325166@kernel.org>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-368920-linux-kernel-netdev=dewy.ruReferences:
<20261119-b4-ionic-cmd-timeout-v3-2-2cdb8fca15fd@amd.com>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-368920-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 2/3] RDMA/ionic: Use the ionic command timeout for the admin queue Date: Mon, 23 Nov 2026 00:59:54 +0000 Organization: Usenet Network Message-ID: <179539559480.3135.11592624744457325166@kernel.org> References: <20261119-b4-ionic-cmd-timeout-v3-2-2cdb8fca15fd@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="3759004"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0NWLmBFnoLXct6Tj+HDuxPcYja4= sha256:ItOLqLMafuZv8Skd5LKQwo+XtKDETwZvBoJ7/Kf3Fuo= sha1:7KB7xFBVF/EvEoxDsHG2mnNapz8= sha256:xSVkEy5JSyS0Ku5f1vB0+JHL7DUxkRkd8E0drpWQarE= 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 30C74125D88; Mon, 23 Nov 2026 04:00:39 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 wo4hBHbfk4CZ; Mon, 23 Nov 2026 04:00:31 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368920-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 25895125D87; Mon, 23 Nov 2026 04:00:20 +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 834352B763; Mon, 23 Nov 2026 01:00:05 +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=1795395602; b=tuPEsSwrDUMkyDMLCak2lZ9ScNHNojYic4FQ+ehXRSY1qqrq7j7Qi8biNzDNGVkniOHA flKaFx1rjnB5NXwf+Tb3csjqcgLdRnuOZquE6XjjEpK4gtWFCgSs+tbxBlDKRxli4SfNe uA7KWZGl2eH9Ip7XvznyDR3QymV9WtrlL6USAMH3Xz7RJEUefIHnvcadRlHG38r/yACbY w+95yLBYDku9eXsMdw7VsAqbRj8504t9B8rpdQ9b+Ia/dcSVl877M7cyHexx/wkmmDJbB IfLuFNIiMye5x3oLfpdjR1lnVzLhmTz6B6a9ABjEr6pOrxPRWiT24yGbUlr7wrHZNRg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795395602; 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=lHqNLcUeT8ubscwZpiu2BId50GK5hJWk9RBW9/d5aIc=; b=HsKUORDfeIAMaBDII1H0itbd154G/U9S/FIooVzzvZ2dE10W+RcceEQMkJPgUYlhckCZ BLP+F++q1nqAIjBullne1vhhqJYmVr3YiG+NxL7tlSFjgAcrFyitvYXmLEyku5dT/aoWh 3OSiQwdHVytx05ToaR0c7pkBNYB0laQ+RvmLTV+kjXYHXhd5iGUARUBcSlF19v/5m/9Za DO2ApZ6Swn4kFLSbHfaavDZlhKf1wROEN07On7coZWZcKMjV8Tt3Es5i9tHeXYfwG3jmv yDwad0JS8oiBXh5jiPLqWdxW1XBk6qrIaNt0H+G9vzn4j60Gjst+OYnuT8G8haL5Kww== 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=SamLrRB9; 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 77968606A6AB; Mon, 23 Nov 2026 01:00:02 +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=SamLrRB9 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=1795395596; b=TV6D+ZoH52pc5LaSVAdegSd+y7ObMZM2ZPntKRwG17kZ2ZkdeQQZHi7bxYJSoIX8VMXx FX45JAJa7u3y2LuyPbSRJeoOmTg+VEb5arbdmLIiBmRxkbImNtdOdZRTjwQsKwTHjO5Wg upceMZrHFDjWJHHGuX9R5tUqDefTdeQB9x4a8R8Ylb4S2RqAUxZJDQbk9ePpdyP/ysvjR 7EEhECUA5plaU+M8Prygj6tkWPrEViyC/gEZMfMpchqi0718VkJIqKNTB4saE04EOfZXx jtwL522rfIiaNdj5OAiUgqvBJMeP7wPucU/BeIkhXSAb+s/xOygskgQaKIc1c3SCZwg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795395596; 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=lHqNLcUeT8ubscwZpiu2BId50GK5hJWk9RBW9/d5aIc=; b=KeYnL7j+FwKQl/3XfqYe65Yzb7OUyPk7shsBntYd+zCRCd6Rgw84BDCSrpZ8nJ6NuLim /MU5AZ5wZVjeGOqvfWjtka4xj+RGMJV6RKHxd8Fs4wVtBSXNfHSJEzH1AjH7CsNQxAMEk wo1D7rg0HgguZE/rvCnhZF2154m1a5gjPLmAVmVjnO7bbWNMy+VUcGql9YR5V9/tZ7afc r5w3EH/vDpoGXQSaR/waPZx6ChqRY+bv/9rtttoYbhtp+boxzDhpL3Kwoe6Ge3qK3SrSt rVm67qFel+FnlZGiv8a67c2VVSd+Ya7ma40DVYCiDgiLpBvbeStZtM518PEN8Mg7HOQ== 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=SamLrRB9; 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 98739606A336; Mon, 23 Nov 2026 00:59:56 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AFC51F000C4; Mon, 23 Nov 2026 00:59:55 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795395596; bh=lHqNLcUeT8ubscwZpiu2BId50GK5hJWk9RBW9/d5aIc=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=SamLrRB96am9a8XSeloC/qxnH0IUqKS3M/viAXV35RSkvw+R0fagvNjA7F5dp3PsP ky2oJWC6PQUxGWXAUs2vbWMFT4hg4BljRlB6SYBZCS6ldpamKTWeCiniQDgiOF1NIh owROd7ydE0hvyDCoRXTraN53ulNn3gq0s4KKSDfyYfKEirhwl9QoxRoaAcIu6KG/d6 4x12qbDnPPvFCeNqSW6M/gTJSL/pL762gM7rONL0xiKBNT4rJFqOUF0DEJNH+5pIjS Hzrb9ua4qTExjuAG+VMQBptWrWNMqaPTR+YXhk39gxUY92JBMgtMlaQOon9v2HvtjX A3byRQzpAOm4A== X-Cc: brett.creeley@amd.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, abhijit.gangurde@amd.com, allen.hubbe@amd.com, jgg@ziepe.ca, leon@kernel.org, jiri@resnulli.us, horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-doc@vger.kernel.org, eric.joyner@amd.com, ArunKumar.Prakash@amd.com X-In-Reply-To: <20261119-b4-ionic-cmd-timeout-v3-2-2cdb8fca15fd@amd.com> X-sashiko-severity: High 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