Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5630550rwb; Wed, 21 Sep 2022 10:12:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ip6MR0HYgGEfcw3UwojQRiAB1XORKf/ovj1RXJSKR77x9Nxbf+M+yFaB4+zetWh10jZw8 X-Received: by 2002:a63:982:0:b0:43b:e67b:988c with SMTP id 124-20020a630982000000b0043be67b988cmr4099506pgj.35.1663780339232; Wed, 21 Sep 2022 10:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663780339; cv=none; d=google.com; s=arc-20160816; b=0TTWLv+m7M15a4l4jhSvnWAQ8/HuIKPFFojcW6PBYSlD2/H5fDn6N+qQQsVDcia4RX xhvHw1G/fIWRt4UZKLDaMUiU5J3boF93zi+pJVumVEREKTUPo1oMjBHKdmsiX9P4NvEF fMyouEnK5XOUP3pPYIwXHvgDW7qJVm7B67OTTQaBORfUaB3nDJjI5Y7HA14zeKqWyb45 Rd8VVZ2RYv506/Lg3qUrG/Z6jj83YzItR+2NmqjIKRoorO97OozO/Mzali++U1cd/f8D B3mKnZSwP0pQ5g5QY5Z5Uo2JbCOYaCIkulT9gLJjEuAuuaY/kERvgzh4i+fr/W1KMRQx Y+6g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9ig6i/GBOeBdko1H4go8xlVoGun/eMaDuvW3GtEHqwo=; b=XeaWRzsyaqgxsKzhVWbrOFsMUSzSW3URv9fpofIpVVAtyCOOSAz7LSzY4ZBiQWcF6i 247W/8OnnjwjkLi2TK7GpA1uv7BGN70DWbxrctgMWE6M9XnQhV2CdpqnrYwV49RqRNWF KS98hqRnSlmCcayYL7CAvNfGo8U55PqAqG32Ax+XzbP62jw7jNxx+3Cek8jru/VNS1dC 7WQJYNGkztvNe80FNoADj8vYfi+C8wpjabA8Futkwo++NAmsPNF+CR/8n4/QOuCwdSzb wm9ozWeJnAIHPR5Xyrr4rjVXwJJt4YEV+3GqeTFFFdUvt37q1HUmgKKr0m3Ci5AhcLI7 0Q0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=X09Qa9KI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a17090ab94a00b001fd87298f34si3489901pjw.54.2022.09.21.10.12.04; Wed, 21 Sep 2022 10:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=X09Qa9KI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231330AbiIUQj1 (ORCPT + 99 others); Wed, 21 Sep 2022 12:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbiIUQjH (ORCPT ); Wed, 21 Sep 2022 12:39:07 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12761A346D for ; Wed, 21 Sep 2022 09:25:28 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id x18so4342926qkn.6 for ; Wed, 21 Sep 2022 09:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=9ig6i/GBOeBdko1H4go8xlVoGun/eMaDuvW3GtEHqwo=; b=X09Qa9KIrji9ljgoXZNT0lIz4PM4m4qJguufulU5AnNrpjF2rCkbku8Y4IG22R+n0A 2Ym1MFkc+MIbizC84nNoRkSiB3yqnU+jjKOJdqqFUyTRngjmktTbfndyhK0Qi5mMtHvF zWrQE9EnFpFiZM16hyJ0UGoFBvZ05PN3C3qMUctOm47eAfvzPC7g+t1mXe1NR7DREdNB uViQuFecMrVqGBoFYRAEmrPFsGJTg0y3xXssFW98ud1XiI3Nj9VWAEik3LTzNNWIfXRB oPH66oXKmRr4I2NiFhOBiwP37RI+CoFvFdkWNfEGW0KlPliUVeLrc+zLEpp7QOOtGd6o GeeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=9ig6i/GBOeBdko1H4go8xlVoGun/eMaDuvW3GtEHqwo=; b=dAbEkGAa/x3TC1CQUKuH/WBQV1OerSuuEwDdKkAid3LW9Gh6mwzf2lAQsI4QH5HRvP S4rKDaMs59d+FZKxL2CqakiYMXBZyIqOZCgjHgppTLeidfGP1Hpe7ScpsLVa/cD0mgpe LpLi+ZnlglBjozs5/+S3Te716UCMFMyRwmVrNQd6fIz9Wn/hKngFtmTFODoKVSCPD7fZ 30MNyrv9UWODJmuScANZKNc2Qg2gyYhMRkhgo0hS24J/ILAC9RoXSsFyq6WGYyUI6Gw8 hVxlsb6Y0Asi+7KvWASXRlFzK7Os5kEs/37e3IMzn9VqXVq8Lk/RQQg/xqf5RQPnNKuK G3hQ== X-Gm-Message-State: ACrzQf0uplJTdXhO+M0VdCxQVQqW2bgk5ECzRWiK9rOYuBhJZQR6mVKf 3zBpkRZsExk0TjPpSPD7dX63jA== X-Received: by 2002:a37:2785:0:b0:6ce:7ce6:3d4a with SMTP id n127-20020a372785000000b006ce7ce63d4amr20259485qkn.322.1663777526647; Wed, 21 Sep 2022 09:25:26 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id w7-20020ac857c7000000b0035bbb6268e2sm2175247qta.67.2022.09.21.09.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 09:25:25 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1ob2XN-00148f-6F; Wed, 21 Sep 2022 13:25:25 -0300 Date: Wed, 21 Sep 2022 13:25:25 -0300 From: Jason Gunthorpe To: longli@microsoft.com Cc: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Leon Romanovsky , edumazet@google.com, shiraz.saleem@intel.com, Ajay Sharma , linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [Patch v6 00/12] Introduce Microsoft Azure Network Adapter (MANA) RDMA driver Message-ID: References: <1663723352-598-1-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1663723352-598-1-git-send-email-longli@linuxonhyperv.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 20, 2022 at 06:22:20PM -0700, longli@linuxonhyperv.com wrote: > From: Long Li > > This patchset implements a RDMA driver for Microsoft Azure Network > Adapter (MANA). In MANA, the RDMA device is modeled as an auxiliary device > to the Ethernet device. > > The first 11 patches modify the MANA Ethernet driver to support RDMA driver. > The last patch implementes the RDMA driver. > > The user-mode of the driver is being reviewed at: > https://github.com/linux-rdma/rdma-core/pull/1177 > > > Ajay Sharma (3): > net: mana: Set the DMA device max segment size > net: mana: Define and process GDMA response code > GDMA_STATUS_MORE_ENTRIES > net: mana: Define data structures for protection domain and memory > registration > > Long Li (9): > net: mana: Add support for auxiliary device > net: mana: Record the physical address for doorbell page region > net: mana: Handle vport sharing between devices > net: mana: Add functions for allocating doorbell page from GDMA > net: mana: Export Work Queue functions for use by RDMA driver > net: mana: Record port number in netdev > net: mana: Move header files to a common location > net: mana: Define max values for SGL entries > RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter Still some basic checkpatchy stuff: /tmp/tmpm2fsg47h/0012-RDMA-mana_ib-Add-a-driver-for-Microsoft-Azure-Network-Adapter.patch:412: WARNING: quoted string split across lines #412: FILE: drivers/infiniband/hw/mana/main.c:70: + "vport handle %llx pdid %x doorbell_id %x " + "tx_shortform_allowed %d tx_vp_offset %u\n", /tmp/tmpm2fsg47h/0012-RDMA-mana_ib-Add-a-driver-for-Microsoft-Azure-Network-Adapter.patch:540: WARNING: quoted string split across lines #540: FILE: drivers/infiniband/hw/mana/main.c:198: + "size_dma_region %lu num_pages_total %lu, " + "page_sz 0x%llx offset_in_page %u\n", And it thinks you should write more for the kconfig symbol, eg why would someone want to turn it on (hint, to use dpkd on some Azure instances) /tmp/tmpm2fsg47h/0012-RDMA-mana_ib-Add-a-driver-for-Microsoft-Azure-Network-Adapter.patch:100: WARNING: please write a help paragraph that fully describes the config symbol #100: FILE: drivers/infiniband/hw/mana/Kconfig:2: +config MANA_INFINIBAND + tristate "Microsoft Azure Network Adapter support" + depends on NETDEVICES && ETHERNET && PCI && MICROSOFT_MANA + help + This driver provides low-level RDMA support for + Microsoft Azure Network Adapter (MANA). I'll put it in linux-next and you can fix the rest of the stuff bots will usually find. Jason