From patchwork Mon May 15 09:06:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13241026 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 BCB20C7EE31 for ; Mon, 15 May 2023 09:22:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235531AbjEOJWn (ORCPT ); Mon, 15 May 2023 05:22:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239663AbjEOJWR (ORCPT ); Mon, 15 May 2023 05:22:17 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ECF91991 for ; Mon, 15 May 2023 02:18:29 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so11499965a12.1 for ; Mon, 15 May 2023 02:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684142309; x=1686734309; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n2+T6CnYSe/9gOGH1Yc1P0gMIMRAef8MXpZS8LCkVTU=; b=Hl+iqaPO5ogFPbZAP8RPrcxTJLqVAzd8Bx+Q4rUMw3iwyN1aNx7SZbYkbv6J39GIqF AzS5OFo97ZsZ9RKIsyQJRkbc/3pq2kaCOIXTqQwb7Alg9xReQIy9r0jsqxHoEV41gQ5w PZoNZojtpHDhs84N1KTm386N6AFHP9WV32JLo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684142309; x=1686734309; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n2+T6CnYSe/9gOGH1Yc1P0gMIMRAef8MXpZS8LCkVTU=; b=TqshAJ43c2oug0aIBjcxxJ5G2n5GfONjiigBaimHy72deP1oPKD4fPNrv119Iogtul Z0asRTHOajVeTtjro+j6Slyvl0X4MASnSGhL0n9zjXr5/Y8ezblg28N14B2gexQP1b6B EvwgGJUly5FPVg67B7QLBOzZ9YCq5OBqpqaOwy1D4RQKyrxYaHqEzq7XWhrq3eLTNV7N N0cxxdlOxcsd5B3k+VW9eoCJPJlPWu9BXaJjCD8S51n8UcEVardcARO3nUAtIRu07IKn qCbLqFmiy7IUGJmXgvEv7rqWtezsYjumnVu+iP3PAhmDIoH/OBwBcCC1Gvij4pQRpfy2 vpqw== X-Gm-Message-State: AC+VfDyEtVpcZnn4H9fZxeuyecx4XeVS+UgJ084XE7a2y5rQ9RtqmMlL SPTvUy88HcbZqs2G7eHBSiSmYkdL2KmqFoE4Hmc= X-Google-Smtp-Source: ACHHUZ7TYUTaHkoh56LzaQWo3n6k+0EBjWlS+ZLk7rYcmUVAhQ6TTz3d+Ha7gWxxuvOecUq6PpVkuA== X-Received: by 2002:a05:6a20:3d28:b0:103:9c25:99a3 with SMTP id y40-20020a056a203d2800b001039c2599a3mr21545396pzi.59.1684142308578; Mon, 15 May 2023 02:18:28 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id q7-20020a654947000000b00520f316ebe3sm10402169pgs.62.2023.05.15.02.18.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 May 2023 02:18:27 -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 v3 for-next 0/6] RDMA/bnxt_re: driver update for supporting low latency push Date: Mon, 15 May 2023 02:06:44 -0700 Message-Id: <1684141610-17588-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 v2-> v3: - Rebasing after the merge window - Fix the return value check in bnxt_re_hwrm_qcfg 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 | 4 +- 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, 555 insertions(+), 102 deletions(-)