[PATCH net-next v13 0/5] net: mana: concurrent HWC requests
From: Wei Hu
Date: Mon Nov 30 2026 - 23:04:22 EST
The MANA hardware channel starts with room for one request. Use the
depth reported by the PF so callers can post another request without
waiting for the first reply. Test the rebuilt channel before exposing
it to callers, and fall back to depth one if the rebuild fails.
Changes since v12:
- Stop a failed PCI probe from scheduling its own rescan if it had to
abandon HWC mappings. Do not block recovery because another function
on the same bridge is unbound. The PF must still acknowledge
DESTROY_HWC before the driver can free those mappings.
- Post each request independently instead of batching doorbells. Count
the PF's response interval from a successful post. Preserve a reply
the VF already accepted, even if its caller runs late.
- Let an exiting process release its MR pages when a full posted
timeout establishes that the PF can no longer use them. Waiting for
a message slot or receiving a reset notification is not enough.
The doorbell check, negotiated message sizes and 4 KiB descriptor-ring
limits are unchanged from v12.
GCC and Clang W=1 target builds passed. Bounded host tests covered PCI
recovery, concurrent replies, MR teardown and depth-one fallback. No
new hardware or performance testing is claimed.
Previous revision:
https://lore.kernel.org/all/hwc-v12.91ec3eff9cb647d5bc5cc932b3c6f60c.0@xxxxxxxxxxxxxxxxxxx/
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 | 167 ++-
.../net/ethernet/microsoft/mana/gdma_pci.c | 114 ++-
.../net/ethernet/microsoft/mana/hw_channel.c | 953 ++++++++++++++----
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 | 56 +-
include/net/mana/shm_channel.h | 10 +-
11 files changed, 1113 insertions(+), 295 deletions(-)
base-commit: f89726ffabef1b08c52e6163b7ab94b0d5f15503