Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2993810rdg; Tue, 17 Oct 2023 00:48:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+TtwxyNs1jW2GKXYO2SjO1iqkCLMek00jbFpzp3x8Q6yE4qIsYmeQlVvuBm+LrlKeX2TF X-Received: by 2002:a05:620a:663:b0:778:8d72:91ea with SMTP id a3-20020a05620a066300b007788d7291eamr32177qkh.25.1697528926928; Tue, 17 Oct 2023 00:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697528926; cv=none; d=google.com; s=arc-20160816; b=TYsWvJQbPdFFOPuOGf5KQry48meFryYfV4Ca7sN9nDllcdEin/C/tuAviBrBVE223A vYtw5AsodejdvhJk1oySn99mHBR+IjYNRPar1T1BAKPSPR0aILjueFj9OqsWgqRho8FN RkcyDJYrApt1STMfqZZOaFHpnzxJ1Aj7kC4wmzCWaeO/XtQQof/TSUh1tnljNFCko9qx e+6XDVlE0WMq1KGXeAqmfYF2WK93E3ezdbp7mG8Wv21AVtOmSDPoUXBFicb3seC5gEvz ehKYPIYC0+Bf7J4TbsGGHL0PgqKFOlAoqmvdLAWdL56Xi2VmvYn5mNDEjZyErsvna61R i72w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=90zc4GhGbVrE9DVYcKz+E1MJ0YBu56dfc3vGtv/IaPk=; fh=n8iXGFh3Ga1CgQ+1s1uhbmAWJsdzXuOaVmTiLyLYV6w=; b=Itm6op9yWz1HLW/3lRhdYg/5Q2WxCQrWlAK/xVgxndaDAjcWnPScCaXrqqiZJvyaBp /FSz5zx3MKluVwGqOglFEtkFcYRMGOFuL+AM0ahh+U5akIaIc69pEuVlkJC/8p1jS0IY VyD3GgBOMRfB7/uRG090wt8ZW0zB2qgRJFDXYs2G+XzmwL5xt62OVk9at4myeQVBq4c4 es1ib13gWfX/mbUOAYF2/6UachIrwgb0DZ9QELj4JgDY63TO70wOcO6gJFsnjbt8n8kQ aSvP5GtzAaPCQB+vWpIGMX7nTWW1EokX1Y1YYWUYmSUjdgN+yLG6F5M7nSsGwDpjexft Vw6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSnzO381; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id g128-20020a636b86000000b0055b640a6b3csi1112179pgc.884.2023.10.17.00.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSnzO381; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1A8FB80A8BA0; Tue, 17 Oct 2023 00:48:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234642AbjJQHs2 (ORCPT + 99 others); Tue, 17 Oct 2023 03:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234416AbjJQHs1 (ORCPT ); Tue, 17 Oct 2023 03:48:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F244893; Tue, 17 Oct 2023 00:48:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF21AC433C8; Tue, 17 Oct 2023 07:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697528905; bh=l5ZXyU0FFeiZz3s3YxfAjMelGvfe4yY/Uqvl5whdjJU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gSnzO381cZbIdNu+uowcvK2rffi44JvZEphJ5p4qGAZxVj4wDWtLSytZBW5CdPK0M wIzJlzA0P36K/wtZZwQCU20t0+Y8f58wgCeZ+X8blug445WKmL9DYDUTFTq9rf+wV/ LWSNcVe9JopgvP8WzmTRvPY/DTXA+Vi5IpUVSfNQNV5b7Nzd9XU+6zA8Id7hB7yppW GN8wH+tzOuLMmumbEcfo5i8Fiux4i2tywLmLUCdsxnLY688OUP+uw8WDSQeuck8UzN sTkoRDsAu/fCMpoAa38l03sW6X9qttYn18Rs/uKogvTSunLkK68cLYDxDTPj/scVq+ CJjxZESzBg69Q== Date: Tue, 17 Oct 2023 10:48:21 +0300 From: Leon Romanovsky To: Ajay Sharma Cc: "sharmaajay@linuxonhyperv.com" , Long Li , Jason Gunthorpe , Dexuan Cui , Wei Liu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "linux-rdma@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [Patch v5 0/5] RDMA/mana_ib Message-ID: <20231017074821.GB5392@unreal> References: <1694105559-9465-1-git-send-email-sharmaajay@linuxonhyperv.com> <20230911123231.GB19469@unreal> <20230918082903.GC13757@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 00:48:44 -0700 (PDT) On Mon, Oct 16, 2023 at 10:15:18PM +0000, Ajay Sharma wrote: > I have sent v7 patch series with the space removed > > > -----Original Message----- > > From: Leon Romanovsky > > Sent: Monday, September 18, 2023 1:29 AM > > To: Ajay Sharma > > Cc: sharmaajay@linuxonhyperv.com; Long Li ; Jason > > Gunthorpe ; Dexuan Cui ; Wei Liu > > ; David S. Miller ; Eric Dumazet > > ; Jakub Kicinski ; Paolo Abeni > > ; linux-rdma@vger.kernel.org; linux- > > hyperv@vger.kernel.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org > > Subject: Re: [EXTERNAL] Re: [Patch v5 0/5] RDMA/mana_ib > > > > On Mon, Sep 11, 2023 at 06:57:21PM +0000, Ajay Sharma wrote: > > > I have updated the last patch to use xarray, will post the update patch. We > > currently use aux bus for ib device. Gd_register_device is firmware specific. All > > the patches use RDMA/mana_ib format which is aligned with > > drivers/infiniband/hw/mana/ . > > > > ➜ kernel git:(wip/leon-for-rc) git l --no-merges drivers/infiniband/hw/mana/ > > 2145328515c8 RDMA/mana_ib: Use v2 version of cfg_rx_steer_req to enable > > RX coalescing > > 89d42b8c85b4 RDMA/mana_ib: Fix a bug when the PF indicates more entries > > for registering memory on first packet > > 563ca0e9eab8 RDMA/mana_ib: Prevent array underflow in > > mana_ib_create_qp_raw() > > 3574cfdca285 RDMA/mana: Remove redefinition of basic u64 type > > 0266a177631d RDMA/mana_ib: Add a driver for Microsoft Azure Network > > Adapter > > > > It is different format from presented here. You added extra space before ":" > > and there is double space in one of the titles. > > > I have removed the space > > > Regarding aux, I see it, but what confuses me is proliferation of terms and > > various calls: device, client, adapter. My expectation is to see more uniform > > methodology where IB is represented as device. > > > > The adapter is a software construct. It is used as a container for resources. > Client is used to distinguish between eth and ib. Do you have multiple "adapters" in one ib/eth device? If yes, at least for IB, it will be very unexpected to see. Why do you have client and device when they are basically the same objects? > Please note that these are terms used for different purposes on the management side. We are discussing RDMA side of this series. Thanks > > > Thanks > > > > > > > > Thanks > > > > > > > -----Original Message----- > > > > From: Leon Romanovsky > > > > Sent: Monday, September 11, 2023 7:33 AM > > > > To: sharmaajay@linuxonhyperv.com > > > > Cc: Long Li ; Jason Gunthorpe ; > > > > Dexuan Cui ; Wei Liu ; > > > > David S. Miller ; Eric Dumazet > > > > ; Jakub Kicinski ; Paolo Abeni > > > > ; linux- rdma@vger.kernel.org; > > > > linux-hyperv@vger.kernel.org; netdev@vger.kernel.org; > > > > linux-kernel@vger.kernel.org; Ajay Sharma > > > > Subject: [EXTERNAL] Re: [Patch v5 0/5] RDMA/mana_ib > > > > > > > > On Thu, Sep 07, 2023 at 09:52:34AM -0700, > > > > sharmaajay@linuxonhyperv.com > > > > wrote: > > > > > From: Ajay Sharma > > > > > > > > > > Change from v4: > > > > > Send qp fatal error event to the context that created the qp. Add > > > > > lookup table for qp. > > > > > > > > > > Ajay Sharma (5): > > > > > 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 > > > > > RDMA/mana_ib : Send event to qp > > > > > > > > I didn't look very deep into the series and has three very initial comments. > > > > 1. Please do git log drivers/infiniband/hw/mana/ and use same format > > > > for commit messages. > > > > 2. Don't invent your own index-to-qp query mechanism in last patch > > > > and use xarray. > > > > 3. Once you decided to export mana_gd_register_device, it hinted me > > > > that it is time to move to auxbus infrastructure. > > > > > > > > Thanks > > > > > > > > > > > > > > drivers/infiniband/hw/mana/cq.c | 12 +- > > > > > drivers/infiniband/hw/mana/device.c | 81 +++-- > > > > > drivers/infiniband/hw/mana/main.c | 288 +++++++++++++----- > > > > > drivers/infiniband/hw/mana/mana_ib.h | 102 ++++++- > > > > > drivers/infiniband/hw/mana/mr.c | 42 ++- > > > > > drivers/infiniband/hw/mana/qp.c | 86 +++--- > > > > > drivers/infiniband/hw/mana/wq.c | 21 +- > > > > > .../net/ethernet/microsoft/mana/gdma_main.c | 152 +++++---- > > > > > drivers/net/ethernet/microsoft/mana/mana_en.c | 3 + > > > > > include/net/mana/gdma.h | 16 +- > > > > > 10 files changed, 545 insertions(+), 258 deletions(-) > > > > > > > > > > -- > > > > > 2.25.1 > > > > >