From patchwork Wed Jul 26 20:08:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sharmaajay@linuxonhyperv.com X-Patchwork-Id: 13328519 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0069BC001DC for ; Wed, 26 Jul 2023 20:08:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbjGZUI2 (ORCPT ); Wed, 26 Jul 2023 16:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjGZUI1 (ORCPT ); Wed, 26 Jul 2023 16:08:27 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB16A2701; Wed, 26 Jul 2023 13:08:26 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1174) id 4602A2383123; Wed, 26 Jul 2023 13:08:26 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4602A2383123 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1690402106; bh=BGDglPPcOLPbs33vvdiQMlsE2V42+tWMX+3izbX4MkE=; h=From:To:Cc:Subject:Date:From; b=l6eMBgBeQLt5oYEcLfTwlZuV1sgk/sCELW/55h1Q5PuLYHBzHHNDflPY2QUIlVuT5 BYvvF9sHsQL0xenbwyzp475yFMIXWq4LVgWfrIokyBWVj6uddE/clth5m+OZRFhksF Ca2EpTCv/uH4OAfu+rH1eGBLHPdHRn4rIle0kr4U= From: sharmaajay@linuxonhyperv.com To: Jason Gunthorpe , Leon Romanovsky , Dexuan Cui , Wei Liu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-rdma@vger.kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ajay Sharma Subject: [Patch v3 0/4] RDMA/mana_ib Read Capabilities Date: Wed, 26 Jul 2023 13:08:20 -0700 Message-Id: <1690402104-29518-1-git-send-email-sharmaajay@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Ajay Sharma This patch series introduces some cleanup changes and resource control changes. The mana and mana_ib devices are used at common places so a consistent naming is introduced. Adapter object container to have a common point of object release for resources and query the management software to prevent resource overflow. It also introduces async channel for management to notify the clients in case of errors/info. Ajay Sharma (4): RDMA/mana_ib : Rename all mana_ib_dev type variables to mib_dev RDMA/mana_ib : Register Mana IB device with Management SW RDMA/mana_ib : Create adapter and Add error eq RDMA/mana_ib : Query adapter capabilities drivers/infiniband/hw/mana/cq.c | 12 +- drivers/infiniband/hw/mana/device.c | 72 +++-- drivers/infiniband/hw/mana/main.c | 282 +++++++++++++----- drivers/infiniband/hw/mana/mana_ib.h | 96 +++++- drivers/infiniband/hw/mana/mr.c | 42 ++- drivers/infiniband/hw/mana/qp.c | 82 ++--- drivers/infiniband/hw/mana/wq.c | 21 +- .../net/ethernet/microsoft/mana/gdma_main.c | 151 ++++++---- drivers/net/ethernet/microsoft/mana/mana_en.c | 3 + include/net/mana/gdma.h | 16 +- 10 files changed, 529 insertions(+), 248 deletions(-)