🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21913

[PATCH net-next v12 0/5] net: mana: concurrent HWC requests

#21913
From: Wei Hu
Date: Tue, 24 Nov 2026 15:40
57 lines
10991 bytes
The MANA hardware channel starts with room for one request. This series
lets the driver use the depth reported by the PF. It tests the new
channel before publishing it and keeps the depth-one channel when the
reported geometry cannot be used.

Changes since v11:
- Split doorbell validation into a standalone fix. Once ESTABLISH_HWC
  has submitted queue addresses, retain the HWC mappings until the PF
  acknowledges DESTROY_HWC. Bound automatic PCI reprobes after an
  unacknowledged teardown; a still-bound device can retry in place.
- Drop the v11 early returns from CQ and QP destruction. RDMA core can
  release these objects on process exit; the driver must still remove its
  callbacks and release the backing. PD, MR/MW and DM destruction can
  finish locally after a normal posted-command timeout. At that boundary
  the PF has drained old client DMA and invalidated outstanding requests.
  An unposted request or a reset notification is not such a guarantee.
- Publish a batch of requests with one SQ doorbell. Do not post the next
  batch until the previous one finishes. Check posted deadlines before
  accepting or returning a reply so a late CREATE cannot supply a handle.
  A queued caller can detect the timeout even if the sender has not run.
- Check the full-width depth against the 4 KiB descriptor rings. Enforce
  the negotiated transmit and receive limits and remove the redundant
  RDMA minimum-size check. Restore a tested depth-one channel only after
  acknowledged teardown of the failed candidate.

Validation: targeted GCC and Clang W=1 builds and strict 80-column
checkpatch on the series. Bounded host tests cover a two-request batch,
replies before, at and after deadline, RDMA cleanup, unacknowledged HWC
teardown, depth fallback and request sizing. No new hardware, performance
or full-kernel test is claimed.

Previous revision:
https://lore.kernel.org/all/cover.1794751992.git.weh@linux.microsoft.com/

Long Li (5):
  net: mana: validate the HWC doorbell before ringing it
  net: mana: keep HWC queues until the PF acknowledges teardown
  net: mana: protect the HWC response buffer until the sender returns
  net: mana: support concurrent HWC requests
  net: mana: use the reported HWC queue depth

 drivers/infiniband/hw/mana/main.c             |   15 +-
 drivers/infiniband/hw/mana/mr.c               |    6 +-
 .../net/ethernet/microsoft/mana/gdma_cdx.c    |    6 +-
 .../net/ethernet/microsoft/mana/gdma_main.c   |  165 ++-
 .../net/ethernet/microsoft/mana/gdma_pci.c    |  144 ++-
 .../net/ethernet/microsoft/mana/hw_channel.c  | 1081 +++++++++++++----
 drivers/net/ethernet/microsoft/mana/mana_en.c |    4 +-
 .../net/ethernet/microsoft/mana/shm_channel.c |   58 +-
 include/net/mana/gdma.h                       |   19 +
 include/net/mana/hw_channel.h                 |   66 +-
 include/net/mana/shm_channel.h                |   10 +-
 11 files changed, 1240 insertions(+), 334 deletions(-)


base-commit: eb6d6c80d35449c27471b1874f13066c09a8964d
Technical Details
Message-ID: <hwc-v12.91ec3eff9cb647d5bc5cc932b3c6f60c.0@linux.microsoft.com>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370524-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370524-linux-kernel-netdev=dewy.ru
From: weh@linux.microsoft.com (Wei Hu)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v12 0/5] net: mana: concurrent HWC requests
Date: Tue, 24 Nov 2026 15:40:53 +0000
Organization: Usenet Network
Message-ID: <hwc-v12.91ec3eff9cb647d5bc5cc932b3c6f60c.0@linux.microsoft.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="4171801"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8Stja4K295eQKO2DU6cSD/PRqqE= sha256:DCnylm5pe9aOmQe/MlkXNtDh26eVq+I4FKjIj/uokCs= sha1:9vAE4LoKQq462pP8OPhCyd+I+qE= sha256:4cSlS6nrQNzGxKnQkCqrfhrt4HSPxd8HrDJuNFTPv94=
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 09082125E1F; Tue, 24 Nov 2026 18:41:31 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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 (1024-bit key) header.d=linux.microsoft.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 1Y9NExSmn8WH; Tue, 24 Nov 2026 18:41:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-370524-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 25DE1125E19; Tue, 24 Nov 2026 18:41:14 +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 9AACC603B18; Tue, 24 Nov 2026 15:41:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1795534872; b=4uFWukJ1TVmVrTgVEwD40U/Xt4Tr3xCdMJdA5QtYhSLrqDQhqQrf+0Tcv+kk1j66phf4 4Hn1gIAT/UpBLiW7HyaQWkNzng84deu6Adx4wZ5nvt9H0pL+RldKqAVMXYlDc3/sSispB qjVAd9UzgjbI7qthp+lk9gGXhhyAYDiQrwA/2qcygF6FsCLDHw476KufEXAFyIfRn4aOO l8Ln7WOhPV61yRFbjIXykvAqd+oA86xPCY3mawo6q1ypviv1nhhUdus1v6/d4gsMDJ+w6 3WSVUYhNm/GCL7Jsk0HcsHdBwA59XyayY8GsodTfV+/lxizoNfJ8QU1y+DP92R/gOFQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795534872; h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Filter: DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=uznZNsQR6edUkI5IFA/dhU9kF7BIa33cXkjQX+jJIXU=; b=AUm92CD49SKd6QCLLkUfdYBYN8p8yClADbVllMZuLOP1bx+4ixHklr+QTptZDesVA2vr KInlpguPpJfNURDR3IKBmegmuCtI4OQfVMfLyKCwRLSWoiW1dKA1Hnke8TB5YDvAqtT7t 83GBP3ymsndIbyknu+sWoNYMhTrxPcPILNV5EZiPIlxjolls5hYQ6bMZ+FYzfb9TO/v5s dQ6QxgcnKJ/hE8k/6B15M7pw9DGjHkoW6zecMcs9zvM7YhTU9LUveqKY9yeZWLFiWuh+0 c27HZVNTqvNvpxHpCTuAp5Gs2vvBzZYJnjckdWH3HPb8ZHiGjqlGQNEjiKCOEUPLRug==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=Lm+5JlWg; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; arc=fail 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 98DAE606A33B; Tue, 24 Nov 2026 15:41:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=Lm+5JlWg
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795534871; b=Es302ThvkiZvwk4ChBdMjujReO20DUtxMxJfIFxrnu4RWF/++jRivPjXu3nHDYZxN7yi R9GLPKlvaYlep2z/Qzh/pg1d2XJmVW9ZhO/Nr+J6CP0IW+Olrgu6BAO8pn2TpHdAjnEjy lNGzeQv6ygiqpSkiUSoWUTyQMj4EzBqzTCerSwXYLCSZaLEuBpY3XIFvS6D6KuHYBJWDG T0vbzA43DM0ffcCmMB3hVIi7b1szh0cjWHOKo8UC98JNbu/4Ol0hB+DdUxrBg8Uo3pi3D VoWEWsAHrq7aeCPTRl4+dcDjFR2fcjCcLBYBFvyASwefaCgzrINHbHSgtu0Z9wtQccw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795534871; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-Spam-Status:X-Spam-Checker-Version; bh=uznZNsQR6edUkI5IFA/dhU9kF7BIa33cXkjQX+jJIXU=; b=L2IzyiuWHWUgkQMuJn2gtEG+us8WgiVOFs2Yu0oLFZFw18raMvc5lV4+/oWiDmSP1lmh oz8YfHdm490EWyCID2hMYCuKwdL5Honq4TUh7k9Th8MijaGIP+l7pUC17ZOcAg3C45Tr9 ZIveIbIxu4Klr7R3Et/jM26RcyHgUVEAc6+MKZ8oTeSho6rxjPE1xCjS3eHIeVvi4fu+z PUsEBN/FLf1UxXtUySn0a2BxqgvGV0YHpnZrtDlAqXhclZdf9ueBWIfQrBG14vxorGT5m l+RK4hRMOkaZgs5aKIslVcjzpjeVZhSFsZAtCQ0LJ1Fh8+7ce4IfqFfmaFx6uBImeqg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=Lm+5JlWg; arc=none smtp.remote-ip=13.77.154.182
X-Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6587B606A326; Tue, 24 Nov 2026 15:41:11 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6587B606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com
X-Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37]) by linux.microsoft.com (Postfix) with ESMTPSA id C7A6120B7166; Tue, 24 Nov 2026 07:40:59 -0800 (PST)
X-DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C7A6120B7166
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1795534860; bh=uznZNsQR6edUkI5IFA/dhU9kF7BIa33cXkjQX+jJIXU=; h=From:To:Cc:Subject:Date:From; b=Lm+5JlWgQPnXa11Y1v+FRNHyGvsEgFPCdoQvyS4UUQP4ZP2UuDZBfgp5R/AiKDkAO rb1K+Opfi4k+Iw8SylKT9WDcneiPWD4V3x7Opew/KUHAJN8wl0FGKr5lT16hsLwSLq 0Po/cj2b13dI+joBZvQMotH17b16zDJ0XWbgYNks=
X-Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, gargaditya@linux.microsoft.com, kees+treewide@kernel.org, kees@kernel.org, mawasthi@linux.microsoft.com, weh@microsoft.com, edumazet@kernel.org, shacharr@microsoft.com
X-Mailer: git-send-email 2.43.0
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-Received-Bytes: 10705