From patchwork Thu Nov 23 03:10:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: longli@linuxonhyperv.com X-Patchwork-Id: 16972 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp190591vqx; Wed, 22 Nov 2023 19:10:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPrjzzCB0yfNWiaZUXGIOBg1szuiLYnqGw5DSuvPJzfniV4Fcg2oO68IhoOMszobyXDywy X-Received: by 2002:a17:902:d715:b0:1cc:68a5:f388 with SMTP id w21-20020a170902d71500b001cc68a5f388mr3882068ply.33.1700709035105; Wed, 22 Nov 2023 19:10:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700709035; cv=none; d=google.com; s=arc-20160816; b=IpNLAEuTulZtCeLdpfA7Y2HOHHc+VKURt1DlkDZmrR0K8r4p0c+OxuWNn8beOE3txn ZM544xRkn0jrTrFAh00FWhcxOd2VdqqkEzNZSkDTfEuTolvUTFlx1YnpR/p9RdvC6XAl qganmnNF/X321gEMJ6aBtrQr0bTtvWUmM5JNGM+qys/RbgBI7kwZtu2Ct5GGpwc6UU/7 QgipgLOVTDPJPjVH2Q9Z8DXSBwi8chJ+uP2PkbXEcDOji0B//OkMx++wdln9NeBHVCIQ 00mS/1AV/gpPhtsSF5Z2pisP3mzfXQkbQVJLorfjcaKt3sUG4mzk5YGSQ6xD7jTH8sid BZGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=sP/kpPj8BkKyVMEDzS+OaFWLgeKMkV1qQHYNF/Vuc7M=; fh=uNLUDd9eMsTSVEvEY0MjopzAsOI0Sfr5Wvsh0Zza+hA=; b=0igONZnxujElzvPemf6p1qav866tb4t75YITE0beeyRIcVqyOJu5abFQKhHmLq0+rR ltqYAQBpLRFoN3hCkEcQkJ9je8Hu0SeY2ZfRbkRnJTmwPm7/UlfR44/zILpsJayQi/04 6nXcElSNOjzH7IS/IUUbulRLI53FiTN/egeuKsE8cmYZ2zoioS5Zf04oxQs1KOr/JvJ4 v4+ahXbOzQ8aDbDjQIbKH5B2DdjR8cv2QZNekhdGoxyetMemuqjqnwBHPvNjAhdGQAZW P7H+IFNyKc1akfR13Ni/7QIAo7gUJA6kbniqvHc1sDmlRS205iwXwQIuuXOi4r75LNuy ATkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b=KLkpTxfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxonhyperv.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id m13-20020a170902db0d00b001ce5b8081a5si261777plx.382.2023.11.22.19.10.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 19:10:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b=KLkpTxfW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxonhyperv.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8ED0B807C75B; Wed, 22 Nov 2023 19:10:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232688AbjKWDKO (ORCPT + 99 others); Wed, 22 Nov 2023 22:10:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234053AbjKWDKN (ORCPT ); Wed, 22 Nov 2023 22:10:13 -0500 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 80774D5E; Wed, 22 Nov 2023 19:10:19 -0800 (PST) Received: by linux.microsoft.com (Postfix, from userid 1004) id D728020B74C0; Wed, 22 Nov 2023 19:10:18 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D728020B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1700709018; bh=sP/kpPj8BkKyVMEDzS+OaFWLgeKMkV1qQHYNF/Vuc7M=; h=From:To:Cc:Subject:Date:From; b=KLkpTxfWGkaSk8aQ3/pBWPvQFay22P0DsIwccy+/HDwobwVQmW9rMRgLOd68IE3Et ANkXqlUTDR2J9hziRtL7Cu+eCBIiwuvIjFTfnXL94vGArdFw6RT6qiU4GSjKFA8jWG 1vAfwrRsL85/sUPOtSCq5KslkzjSud/6eQVX+TjA= From: longli@linuxonhyperv.com To: Jason Gunthorpe , Leon Romanovsky , Ajay Sharma , Dexuan Cui , "K. Y. Srinivasan" , Haiyang Zhang , 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, Long Li Subject: [Patch v1 0/4] Date: Wed, 22 Nov 2023 19:10:06 -0800 Message-Id: <1700709010-22042-1-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 22 Nov 2023 19:10:23 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783322677628670921 X-GMAIL-MSGID: 1783322677628670921 From: Long Li This patchset add support for registering a RDMA device handle with SoC for support of upcoming RC queue pairs and CQ interrupts. This patchset is partially based on Ajay Sharma's work: https://lore.kernel.org/netdev/1697494322-26814-1-git-send-email-sharmaajay@linuxonhyperv.com Long Li (4): RDMA/mana_ib: register RDMA device with GDMA RDMA/mana_ib: create and process EQ events RDMA/mana_ib: create RDMA adapter handle RDMA/mana_ib: query device capabilities drivers/infiniband/hw/mana/cq.c | 2 +- drivers/infiniband/hw/mana/device.c | 52 +++++- drivers/infiniband/hw/mana/main.c | 166 ++++++++++++++++-- drivers/infiniband/hw/mana/mana_ib.h | 85 +++++++++ drivers/infiniband/hw/mana/qp.c | 36 +++- .../net/ethernet/microsoft/mana/gdma_main.c | 152 +++++++++------- drivers/net/ethernet/microsoft/mana/mana_en.c | 3 + include/net/mana/gdma.h | 19 +- 8 files changed, 420 insertions(+), 95 deletions(-)