From patchwork Thu Jun 3 13:15:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 12297199 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,MIME_NO_TEXT, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A570C47096 for ; Thu, 3 Jun 2021 13:15:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49CA5613B8 for ; Thu, 3 Jun 2021 13:15:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbhFCNRf (ORCPT ); Thu, 3 Jun 2021 09:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231312AbhFCNRe (ORCPT ); Thu, 3 Jun 2021 09:17:34 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB7EC06174A for ; Thu, 3 Jun 2021 06:15:50 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id h12so2841627plf.11 for ; Thu, 03 Jun 2021 06:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:mime-version; bh=/2z9DHgALYhCRI/SMbgKCS1CLY3xF8iJ9fFWK0sGxTE=; b=CM0GQ3Tj/a842zm23AAD6FZ7FkJsjwZi/4KpT/Yr789Aam1KX6voPeGiwSDVa3VWIF rKbNR2ZC9cYX5TCqZl4wkG9R03Fcu0HHZSRh5cP/+qx8QI1cWkU/xDFP5uGjfCTzZVtQ C5cNOBlxej4zI3Nl4l29s073k+KkyH/nNgBLE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=/2z9DHgALYhCRI/SMbgKCS1CLY3xF8iJ9fFWK0sGxTE=; b=pgzeD6pW772KEj16YbE32fwJTPWL8pCn2o4dWtniA36D8Mticr3GfkE08G60PPVAXz v3F6ATWUiBrWQ1NxTON17DfSo64rQ7zG3HVJpXrn3DUH9cgmV+vB1Ys98v3xg+GgUF++ 48zqfpM5Y9tZGBOmlS5ZD/b9pUzUMkMzw7DLACDChtPvHiC6t6tfGCqnSg0/npPQ9c13 RA0/o+qqrB7E7c+V6kuPAn4pcweHPSsWpPCZVErgdKyWIrJRM6Y70QW6oZ6Schk0GFvo B8ydx0Q0j0zl4N6jfiyAOvJ81pVJG4t/dOOkG1GpNzFi0BwLTYKeC4zXhLEOIT5bmuXV jvXg== X-Gm-Message-State: AOAM533BQVcz8AYKc4xXrw/ScDX5uHTPQpWZQhRye4f3qgKmkE+L16Un P9GPnQv2OoKSCjPdrswV7ccXolpZkhh7VY7H8b4Qqe/oe/b/WnTnIVVisb9RE7LWInE3UNZ7f3z lXwfiXMODV0Qoqhhjr5SGs7jr/UFhAhtRKw8QxBTooa9vLjRSD15Z7XngVs3bo9Ourrnpb+pdbk ujUNXbTw== X-Google-Smtp-Source: ABdhPJzO0PSgQP4MKHZWNM+Vc7XdRKZP9pQ/XBt73a7h5Hq9WTikUqjXLSjGNt4geRvO1nobz2zzeA== X-Received: by 2002:a17:90a:16c2:: with SMTP id y2mr36065005pje.236.1622726148390; Thu, 03 Jun 2021 06:15:48 -0700 (PDT) Received: from dev01.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id t24sm2336917pji.56.2021.06.03.06.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 06:15:47 -0700 (PDT) From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: Devesh Sharma Subject: [PATCH V7 for-next 0/3] Broadcom's driver add global atomics Date: Thu, 3 Jun 2021 18:45:31 +0530 Message-Id: <20210603131534.982257-1-devesh.sharma@broadcom.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Adding automated detection and enablement of global PCI atomic operation support. Updated to ABI to pass wqe-mode to user to support rdma-core pull request: https://github.com/linux-rdma/rdma-core/pull/1007 v6->v7 updated error return type to -EOPNOTSUPP v5->v6 dropped fixes tag v4->v5 fixed commit msg in patch 0001 fixed mixing of int with bool v3->v4 removed redundant code to enable global atomics refactored to honor standard error codes. v2->v3 Added additional patch to update ABI. A PR corresponding to this is open. V1->V2 renamed bnxt_qplib_enable_atomic_ops_to_root to bnxt_qplib_determine_atomics Devesh Sharma (3): RDMA/bnxt_re: Enable global atomic ops if platform supports bnxt_re: Update maintainers list RDMA/bnxt_re: update ABI to pass wqe-mode to user space MAINTAINERS | 2 -- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 7 +++++++ drivers/infiniband/hw/bnxt_re/main.c | 3 +++ drivers/infiniband/hw/bnxt_re/qplib_res.c | 17 +++++++++++++++++ drivers/infiniband/hw/bnxt_re/qplib_res.h | 1 + drivers/infiniband/hw/bnxt_re/qplib_sp.c | 13 ++++++++++++- drivers/infiniband/hw/bnxt_re/qplib_sp.h | 2 -- include/uapi/rdma/bnxt_re-abi.h | 5 ++++- 8 files changed, 44 insertions(+), 6 deletions(-)