From patchwork Thu Oct 27 09:57:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng Xu X-Patchwork-Id: 13021872 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 5A9FFC67871 for ; Thu, 27 Oct 2022 09:58:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234583AbiJ0J6e (ORCPT ); Thu, 27 Oct 2022 05:58:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234959AbiJ0J6H (ORCPT ); Thu, 27 Oct 2022 05:58:07 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A295E5ED5 for ; Thu, 27 Oct 2022 02:57:45 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R461e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=chengyou@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VTB5LbP_1666864662; Received: from localhost(mailfrom:chengyou@linux.alibaba.com fp:SMTPD_---0VTB5LbP_1666864662) by smtp.aliyun-inc.com; Thu, 27 Oct 2022 17:57:43 +0800 From: Cheng Xu To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, KaiShen@linux.alibaba.com Subject: [PATCH for-next 0/3] RDMA/erdma: Add atomic operations support Date: Thu, 27 Oct 2022 17:57:38 +0800 Message-Id: <20221027095741.48044-1-chengyou@linux.alibaba.com> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Hi, This series introcuces atomic operations support for erdma driver: - #1 extends access rights field in FRMR and REG MR commands to support IB_ACCESS_REMOTE_ATOMIC. - #2 gets atomic capacity from hardware, and reports the cap to core. - #3 implements the IO-path of atomic WR processing. Thanks, Cheng Xu Cheng Xu (3): RDMA/erdma: Extend access right field of FRMR and REG MR to support atomic RDMA/erdma: Report atomic capacity when hardware supports atomic feature RDMA/erdma: Implement atomic operations support drivers/infiniband/hw/erdma/erdma.h | 1 + drivers/infiniband/hw/erdma/erdma_cq.c | 2 ++ drivers/infiniband/hw/erdma/erdma_hw.h | 29 +++++++++++++---- drivers/infiniband/hw/erdma/erdma_main.c | 1 + drivers/infiniband/hw/erdma/erdma_qp.c | 39 ++++++++++++++++++++--- drivers/infiniband/hw/erdma/erdma_verbs.c | 7 ++-- drivers/infiniband/hw/erdma/erdma_verbs.h | 12 ++++--- 7 files changed, 72 insertions(+), 19 deletions(-)