Linux-HyperV List
 help / color / mirror / Atom feed
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
Subject: [PATCH net-next v13 0/5] net: mana: concurrent HWC requests
Date: Tue,  1 Dec 2026 04:03:56 +0000	[thread overview]
Message-ID: <hwc-v13.ab4ca86c3bf24a51ad8a84cc8a0220d1.0@linux.microsoft.com> (raw)

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

             reply	other threads:[~2026-12-01  4:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  4:03 Wei Hu [this message]
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

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-v13.ab4ca86c3bf24a51ad8a84cc8a0220d1.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=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