๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12562

Re: [PATCH rdma-next 11/23] RDMA/mlx5: Add shadow FIFO infrastructure for UMR completions

#12562
From: netdev-bot+sashiko
Date: Sat, 07 Nov 2026 20:24
55 lines
9795 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] The commit message's design premise is wrong.

--

RDMA/mlx5: Add shadow FIFO infrastructure for UMR completions

This commit adds a shadow FIFO of posted UMR contexts in adversarial
mode. A later patch can then check each UMR CQE against the oldest
pending request instead of trusting the CQE wqe_counter. Each context
also records the SQ producer counter it was posted at.

> The UMR QP is RC and signals every WR, so its completions arrive in
> posting order.

[Severity: Low]
Is this description accurate? The UMR QP does not look like an RC QP.

mlx5r_umr_resource_init() in drivers/infiniband/hw/mlx5/umr.c creates it
as a REG_UMR QP:

drivers/infiniband/hw/mlx5/umr.c:mlx5r_umr_resource_init() {
    ...
	init_attr.qp_type = MLX5_IB_QPT_REG_UMR;
    ...
}

to_mlx5_st() in drivers/infiniband/hw/mlx5/qp.c maps that type to its
own service type, not MLX5_QP_ST_RC:

	case MLX5_IB_QPT_REG_UMR:	return MLX5_QP_ST_REG_UMR;

mlx5r_umr_qp_rst2rts() also moves the QP to RTS without a remote QPN or
a path, which an RC connection would need.

The shadow FIFO design depends on in-order completion. The consumer added
later in the series, mlx5_ib_poll_one_umr(), treats any CQE whose
wqe_counter differs from the FIFO head as forged.

The in-order conclusion is probably still correct, since mlx5 send queues
complete in order and the generic poll path already relies on that when
it sets wq->tail = wq->wqe_head[idx] + 1. Only the stated reason seems
wrong.

Could the message say that the UMR SQ (a REG_UMR service type QP)
completes in posting order, instead of calling the QP RC?

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261103163949.1554-1-yishaih%40nvidia.com
Technical Details
Message-ID: <179408309294.994134.208597027649974206@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358507-linux-kernel-netdev=dewy.ru
References: <20261103163949.1554-12-yishaih@nvidia.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358507-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH rdma-next 11/23] RDMA/mlx5: Add shadow FIFO infrastructure
 for UMR completions
Date: Sat, 07 Nov 2026 20:24:52 +0000
Organization: Usenet Network
Message-ID: <179408309294.994134.208597027649974206@kernel.org>
References: <20261103163949.1554-12-yishaih@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4185840"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:k8jK/9n7JDd36PWWMVAY7sQUIko= sha256:K2xNippO6re1ghmOQOOUc/1sg5Woug7Y/ObQ+kcoVCI=
	sha1:SApgt/ks1jkNLmPQCRDauZpInWU= sha256:OcNeVyTLeatXoiNqw6eFlkCHAgZewtUe491Ert5ygpE=
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 6817211349A; Sat,  7 Nov 2026 23:25:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 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]
	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 XKPaEs3IEmSf;
	Sat,  7 Nov 2026 23:25:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-358507-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 A4835113486; Sat,  7 Nov 2026 23:25:28 +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 1B0CC6239E0; Sat,  7 Nov 2026 20:25: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=1794083100;
	b=Znptzgj5dQazLhrp7q5Ky2l1ZlnWBvUgXG9TghIE2fkvRHV552JeBDzfkO7Rr3O/tp02
	 FHJmbHKKNSwgqt0Er+KTsnmKT3fPsT5w3Ov5mA5U8kJSBdKKYBD+sZ2+CzSeLDsgfFUSZ
	 xVjLTrEsbiXCEF88dW4ualnmkwUDb1o4XGiL2O8dV6UIXbBqYm2ZbSrxvOVBRNVGEu6iB
	 ObXHXqRWJhRV+ysdng8Td/xl6ALHLvcsZUUHJogGXngMo7q+v7WsBZlr5AsIdKNfBM4bD
	 B/pnipb3us4/SyLxm98+MIjsWxa4/evSNXNEY/LfpYK6QOxy3UEp4o9Y5mc3VVXkSiQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794083100;
	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=lgs3KVNbf0o7fwvX/gx91q/+sHVfD9TIfwHmI1J95iU=;
	b=hEG9hAg/7iKPmsELbB2cwHvXuBRQ4ADLI5VVgp6bRDHqxTIs2p9tSIf+tNUkSz8Pp3W4
	 VWWLzPaEHqubYK2jqDr8tnjvm/EGuE8Th+4MkRbqZo/yhsJsXpphlkhSrp/OwOwgfI6AD
	 oYhwlcRvm6X599mY/hGQnabhswUV7j2B9H0G3IHhiQxbZOY5mEY2+F4infh1Hv4BNnzxY
	 hi8PDU4BuUcEG6ZSYuhq3sjMK4MMI0XiGkKclCb+ShpGBDFoYQOXVHyJ/au+40vtwCO3/
	 dh9qSYclKbgsy2x/oUptRuEkdu+0Mvy6L5CTb1oNQ3qnoc07UenXWvvyc+EUIZR+I2Q==
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=VLXrcmPV;
	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 95C99606D81F;
	Sat,  7 Nov 2026 20:25:00 +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=VLXrcmPV
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=1794083094;
	b=CgviVED4g+GislqXn1ccFxSLoVOu6SxEvxxoxj2ou0T2lU0v9pjfRTjNaSm+i9ToRzbJ
	 7gscZv8bnFRuhNg29hXaKe74cQrLCx1WHHwz4RxEya+o0Kw5QsXs5zLiA9qd9Ywy5xZD+
	 TbhN3fGo59GIyHrNJFSbSMG3kV1pZ1T2SbJt9Q5npo87UptZjMX+jdyMALt+tKhrlEGfj
	 pKxingkHX9VEzOmRb7r/djMV2HecynouKah/zoIfX5grM8fqW5ib+lwgusIiDVWvwglKk
	 34sXYFefPVxELEwXEAsrakL2DakQgpvDtGcelP5prJKguHY7yGMHWpODAhJDe96gPJg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794083094;
	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=lgs3KVNbf0o7fwvX/gx91q/+sHVfD9TIfwHmI1J95iU=;
	b=4rZLVx/HWnPIEiZoxZdYfX3Z9nRbBzx7araN7wjeBFMsLrKt3jvtlmzpw01TNWnD+sEA
	 aCchQpSDFNb8ffaH5ZzhouzqbZZWbzDLKLgdXa7YdxnqkjLVngHruZvFRnjNfKGlnXqYj
	 tk0J6r2eGK89AyK8o9hjJd7hnIg9Dwfz5YjyZu1wYSqC1D6ypGJbGGbLB7vwdtyq8McVL
	 L+UXv7IHc/Vyys09w2xkno/jIWVf64B2b74+oqQWIPY7YdwUbJjWJ07KVRcTSkeIRIby7
	 qNWOfczqCRB4P51k8MTcyXA2+OPHlSYZKntonzw9iJM88y7kmQlbZKI+6MV7h7Lg3Yg==
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=VLXrcmPV;
	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 7CFC8606D81C;
	Sat,  7 Nov 2026 20:24:54 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AD321F008A6;
	Sat,  7 Nov 2026 20:24:53 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794083094;
	bh=lgs3KVNbf0o7fwvX/gx91q/+sHVfD9TIfwHmI1J95iU=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=VLXrcmPVo5jyXjyMBpsd8n3ZM/C/P2xlVHUD56k6qDWp3bHbWlgqKnXyUZLRSgN18
	 TeHXFgbTVPVKJpvQzgTLgVLln5ZsDkvga/Kv9rUMaVU4HIQMgh4coQOEfUTDpo9NiW
	 Fy6Z+fvsHFXFzFyWj9V6CpoRVIqJ+ZQm0TGZlyZXh13nQXdRUqwV8nKrPpmQeG3rT2
	 L8Pms2YL63b8Aj+AF92W0J2rk1J9qJzzp/vVdCSr2Cjat7gkpUAsnmmmRq5sXXNBSp
	 67xNzwW5Qtz8DL2svOgYvxBfLYghmXpM7Kc1RZaoXPxqX46yq0Gl1DUoTrGQYKGhYr
	 gnjBY3HdP9lJQ==
X-Cc: jgg@ziepe.ca, leon@kernel.org, linux-rdma@vger.kernel.org,
 netdev@vger.kernel.org, saeedm@nvidia.com, tariqt@nvidia.com,
 mbloch@nvidia.com, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org,
 davem@davemloft.net, andrew+netdev@lunn.ch, dtatulea@nvidia.com,
 moshe@nvidia.com, maorg@nvidia.com
X-In-Reply-To: <20261103163949.1554-12-yishaih@nvidia.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