From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796097856; b=f7+aU5Hj6j+Rl2WeulMkC14DmInRJpYib694afFdcYwZ/fzwvdTSnB4RYaI2Lwm/Ai0H 0WHp/ArryQdhI2yXdnP02sWTMU58hz1MOjl9q1t3RQNC31G/FAQogDhWlo6PmeIT1L2ol UGJ714WRk2f/6rnU0p3W6X9cdD0mcMMN+C6pgH2KH7OGTP907ki1fw+xkPPeq1RDoBm+q zYNJiJ78D6NDk6vGRpo5TPXYC9VXx2376drovRCfQU/X9CZd2dOaQPJbKiLOrTMwQSqJ/ vK4RkFqpJSexpvewtKZy/C7utsdG+hlb0f1h+iOIf6g6nT4CJmtnPTkBuF3PArR/JSw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796097856; 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=vhIfeEb2/6fJAWpZzJ07oSOHqiPNvZ2KQN/gb8kKuL8=; b=h2VRzoJDBugAk7P8EzwOgPyvudHVP0WHnAGd+/OUEA+uCJksnoHc/VpytXkdGd966hcZ PEtLoorlMwSw3VGUomTGzMqvj9U6PBfDtGgR6qyhU/Lyinq+FFSeZpxOyw059pIgRci4h 32Vh4QkQAcX+9hbr4v17FvM6AZTaAlg0aLEixXq+7xCmTe0Zyjqx2Rzw2Yw+ueX1J6XH8 96lJ7CISABDeeDT1nYaIdkRUdVHtOcXyu8ldEBPgNbhTHquTB/0tZBDcYqANPB5t1AtYH DfVaBLR6ocKBDkN3wn7g6x2Sq6M21ecgc/rIf2FwzfnFwRnE4kFFE8m56SrBSocEa1Q== 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=siOm46Be; arc=none smtp.remote-ip=13.77.154.182 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D361D606A320; Tue, 1 Dec 2026 04:04:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D361D606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com 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=siOm46Be Received: from weh-cvm-dev-vm.y50bckvjo0hefgfnzfztsfttff.phxx.internal.cloudapp.net (unknown [20.169.55.37]) by linux.microsoft.com (Postfix) with ESMTPSA id 2563820B7166; Mon, 30 Nov 2026 20:04:06 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2563820B7166 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796097847; bh=vhIfeEb2/6fJAWpZzJ07oSOHqiPNvZ2KQN/gb8kKuL8=; h=From:To:Cc:Subject:Date:From; b=siOm46BeUkY1vH8bSbFYXodHlXeiked5ThtPT14ZFfcvlgWTFfeGbujgFhZDK8aGH 9GtnTvNYlXDcP00mmz4CGKYN23SUOV6VAX2Qexz20vGl+scOi7F/SDCHwG8JU7VHtk 25SG/1dV7AQ3Fse0bZzoxQP33LkpbJ7379t3Rl6k= From: Wei Hu 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 Message-ID: X-Mailer: git-send-email 2.43.0 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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