From patchwork Tue Apr 25 19:29:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13223695 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 C6C35C6FD18 for ; Tue, 25 Apr 2023 19:30:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235474AbjDYTaM (ORCPT ); Tue, 25 Apr 2023 15:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235471AbjDYTaL (ORCPT ); Tue, 25 Apr 2023 15:30:11 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B65C2A8 for ; Tue, 25 Apr 2023 12:30:10 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1a66b9bd893so52887705ad.1 for ; Tue, 25 Apr 2023 12:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1682451010; x=1685043010; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/hWaVFwHCq+4tfk0YLs7XY1RMTtym6y6D69IdNqZn9A=; b=FVo71fvUR9kkhbpSIe6vmcDjt/0ptJq4hEHxDC6yXq3hSqQUMhOMoiA/8KLTSCBjsK D8U0GUg/XLdGSIy2CbFPWh+pd8t2fX6bGGiY2AOoWlfPAF5zg7/S87Ck/1dNO16UXOgv mdib5SFzZ/hysyxea7EpOG8X3WHEfMyo0Ofqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682451010; x=1685043010; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/hWaVFwHCq+4tfk0YLs7XY1RMTtym6y6D69IdNqZn9A=; b=cbNHKzFjN4bNSB7ZDIxYIKr0HSSD2xerktoXdEh/aBsg2hCpdxIGg/HGh1k7qYjwui tsrML2rGLJMOBOaS4gMj5A0Q5TMxa8AmTOOeQ1ECdJBqN+7GFCWufWOlyyLwFt+95xFm RwpQv+Ah/1k/RWC31lE8VM5ikZe1E4j2g7kGLPBldGCL7C9HCZd/X5utob7fVhNv+jda 0cf5VSEI8r+dXvEmncJLeBO4EghlJl4V4Wea1hUuFDDXqSXTDzIM9esrTxU49BdTnSw0 5Oecqqg4cc6iF2Ab/CoJSJf/nBUvU5G+LxxLM49CPPPWVLZSRVRgquDuXw0jzsK0JQVB E6Zw== X-Gm-Message-State: AC+VfDzfVALrWXzCxyGv9uXa0lyXq+PU+G1cgNOQoVPc5f8akDmpU4c5 /F8DRGxb0GW2QdBGqjvRqNgWzg== X-Google-Smtp-Source: ACHHUZ7LrDbCK6kwk4AQX09LdiepdxH+qMPdFmjkMnmp0IdUwlxaJzgQ2+2I9U1lDszzYWRg3wQkHQ== X-Received: by 2002:a17:902:d505:b0:1a9:8769:36b7 with SMTP id b5-20020a170902d50500b001a9876936b7mr5862916plg.5.1682451010001; Tue, 25 Apr 2023 12:30:10 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w3-20020a170902c78300b001a64ed4621csm8618217pla.182.2023.04.25.12.30.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Apr 2023 12:30:08 -0700 (PDT) From: Selvin Xavier To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Selvin Xavier Subject: [PATCH v2 for-next 0/6] RDMA/bnxt_re: driver update for supporting low latency push Date: Tue, 25 Apr 2023 12:29:47 -0700 Message-Id: <1682450993-17711-1-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org The series aims to add support for Low latency push path in some of the bnxt devices. The low latency implementation is supported only for the user applications. Also, the code is modified to use common mmap helper functions exported by IB core. User library changes are getting submitted in the pull request https://github.com/linux-rdma/rdma-core/pull/1321 Please review. Thanks, Selvin Xavier v1 - v2: - Fixes the review comments from Leon and Jason - As suggested by Jason, implements the new uapi driver definitions for allocating pages in the driver and return the cookie for mmap Selvin Xavier (6): RDMA/bnxt_re: Use the common mmap helper functions RDMA/bnxt_re: Add disassociate ucontext support RDMA/bnxt_re: Query function capabilities from firmware RDMA/bnxt_re: Move the interface version to chip context structure RDMA/bnxt_re: Reorg the bar mapping RDMA/bnxt_re: Enable low latency push drivers/infiniband/hw/bnxt_re/bnxt_re.h | 3 + drivers/infiniband/hw/bnxt_re/ib_verbs.c | 265 ++++++++++++++++++++++++++--- drivers/infiniband/hw/bnxt_re/ib_verbs.h | 19 +++ drivers/infiniband/hw/bnxt_re/main.c | 117 ++++++++++++- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 14 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 2 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.h | 1 + drivers/infiniband/hw/bnxt_re/qplib_res.c | 177 ++++++++++++------- drivers/infiniband/hw/bnxt_re/qplib_res.h | 33 +++- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 3 + drivers/infiniband/hw/bnxt_re/qplib_sp.h | 1 + include/uapi/rdma/bnxt_re-abi.h | 32 ++++ 12 files changed, 558 insertions(+), 109 deletions(-)