From patchwork Tue Aug 22 15:47:31 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: 13361106 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 47688EE49A4 for ; Tue, 22 Aug 2023 15:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237298AbjHVPrs (ORCPT ); Tue, 22 Aug 2023 11:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235004AbjHVPrr (ORCPT ); Tue, 22 Aug 2023 11:47:47 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 32BEBCDF; Tue, 22 Aug 2023 08:47:46 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1174) id 7F6E22126CC2; Tue, 22 Aug 2023 08:47:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7F6E22126CC2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1692719265; bh=HVGBPOnzeTlh8V57DK7yO/EoCj0a9cS67LN7UjxUnq0=; h=From:To:Cc:Subject:Date:From; b=XRyLgiNLWUjgs7IQZBoYir0iiyhMOHKFX444y3j82Bqsm3H175ySMUAt3hb1pFGIe CaH/3rL2WOii3wuiGttyL0cWqtbvGQQaKUaNwQuMeEyzoy0zInScw0QVcVfuvsESS2 DpIE0si7LYBeL8f+qXUN4Wez1Nn2dzBU6y5m8C6k= From: sharmaajay@linuxonhyperv.com To: Long Li , 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 v4 0/4] RDMA/mana_ib Date: Tue, 22 Aug 2023 08:47:31 -0700 Message-Id: <1692719255-20183-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 | 283 +++++++++++++----- drivers/infiniband/hw/mana/mana_ib.h | 96 +++++- drivers/infiniband/hw/mana/mr.c | 42 ++- drivers/infiniband/hw/mana/qp.c | 84 +++--- 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, 525 insertions(+), 255 deletions(-)