Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next v13 0/5] net: mana: concurrent HWC requests
@ 2026-12-01  4:03 Wei Hu
  2026-12-01  4:03 ` [PATCH net-next v13 1/5] net: mana: validate the HWC doorbell before ringing it Wei Hu
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Wei Hu @ 2026-12-01  4:03 UTC (permalink / raw)
  To: longli, kotaranov, kuba, davem, pabeni, edumazet, andrew+netdev,
	jgg, leon, haiyangz, wei.liu, decui, shradhagupta, horms, ernis,
	stephen
  Cc: netdev, linux-rdma, linux-hyperv, linux-kernel, gargaditya,
	kees+treewide, kees, mawasthi, weh, edumazet

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@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   | 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-01  4:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  4:03 [PATCH net-next v13 0/5] net: mana: concurrent HWC requests Wei Hu
2026-12-01  4:03 ` [PATCH net-next v13 1/5] net: mana: validate the HWC doorbell before ringing it Wei Hu
2026-12-01  4:03 ` [PATCH net-next v13 2/5] net: mana: keep HWC queues until the PF acknowledges teardown Wei Hu
2026-12-01  4:03 ` [PATCH net-next v13 3/5] net: mana: protect the HWC response buffer until the sender returns Wei Hu
2026-12-01  4:04 ` [PATCH net-next v13 4/5] net: mana: support concurrent HWC requests Wei Hu
2026-12-01  4:04 ` [PATCH net-next v13 5/5] net: mana: use the reported HWC queue depth Wei Hu
2026-12-01  4:08 ` [PATCH net-next v13 0/5] net: mana: concurrent HWC requests netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox