From: Wei Hu <weh@linux.microsoft.com>
To: longli@kernel.org, kotaranov@microsoft.com, kuba@kernel.org,
davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
andrew+netdev@lunn.ch, jgg@ziepe.ca, leon@kernel.org,
haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com,
shradhagupta@linux.microsoft.com, horms@kernel.org,
ernis@linux.microsoft.com, stephen@networkplumber.org
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
Subject: [PATCH net-next v12 0/5] net: mana: concurrent HWC requests
Date: Tue, 24 Nov 2026 15:40:53 +0000 [thread overview]
Message-ID: <hwc-v12.91ec3eff9cb647d5bc5cc932b3c6f60c.0@linux.microsoft.com> (raw)
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
next reply other threads:[~2026-11-24 15:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 15:40 Wei Hu [this message]
2026-11-24 15:40 ` [PATCH net-next v12 1/5] net: mana: validate the HWC doorbell before ringing it Wei Hu
2026-11-24 15:40 ` [PATCH net-next v12 2/5] net: mana: keep HWC queues until the PF acknowledges teardown Wei Hu
2026-11-24 15:40 ` [PATCH net-next v12 3/5] net: mana: protect the HWC response buffer until the sender returns Wei Hu
2026-11-24 15:40 ` [PATCH net-next v12 4/5] net: mana: support concurrent HWC requests Wei Hu
2026-11-24 15:40 ` [PATCH net-next v12 5/5] net: mana: use the reported HWC queue depth Wei Hu
2026-11-24 15:44 ` [PATCH net-next v12 0/5] net: mana: concurrent HWC requests netdev-bot+sinfo
2026-11-24 16:00 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hwc-v12.91ec3eff9cb647d5bc5cc932b3c6f60c.0@linux.microsoft.com \
--to=weh@linux.microsoft.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=decui@microsoft.com \
--cc=edumazet@google.com \
--cc=edumazet@kernel.org \
--cc=ernis@linux.microsoft.com \
--cc=gargaditya@linux.microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=horms@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kees+treewide@kernel.org \
--cc=kees@kernel.org \
--cc=kotaranov@microsoft.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=longli@kernel.org \
--cc=mawasthi@linux.microsoft.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shacharr@microsoft.com \
--cc=shradhagupta@linux.microsoft.com \
--cc=stephen@networkplumber.org \
--cc=weh@microsoft.com \
--cc=wei.liu@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox