From patchwork Thu Jun 1 11:10:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13263545 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 204F3C77B7A for ; Thu, 1 Jun 2023 11:22:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231594AbjFALW1 (ORCPT ); Thu, 1 Jun 2023 07:22:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjFALW0 (ORCPT ); Thu, 1 Jun 2023 07:22:26 -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 EEE85123 for ; Thu, 1 Jun 2023 04:22:24 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1b041cceb16so6012065ad.2 for ; Thu, 01 Jun 2023 04:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1685618544; x=1688210544; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wQTJW6/TRBV0Wf4LfsArZOM2WpNoADHPiA8D3jEkCTw=; b=aSd2P4D6sPT6P/L9Cb1EPpljm0GaSA01LOUIbJPTaX6jIN77MAMOr9rru8+o5nIDD5 mkKkcOMWiiBOXxIfNOOTFS/ghYwHXT4kV9IBICP07xpZb/a/xJv9gJtT8Btk3CYwfbnk FA9mOP9PIsw7B/XzrIN4LRHJg4X4zHHCk3rQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685618544; x=1688210544; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wQTJW6/TRBV0Wf4LfsArZOM2WpNoADHPiA8D3jEkCTw=; b=QjFLmh11AZAwxOk0n3KWsO/w5dG8KUyymPJtjlcpVp+q/jj377k3wB1l1DSNbUc1PP XOUf3XglTJi/AEUPojnMSvc+JjhFiUJ1FaedhVBwAIm/FJNZYmBQvTFOSqt1Qtzde6p3 1mtQC0hug4FMCkQZ/XrGlS6qqqZrFqwrpX7Yolgc+0qtlz2Ip0yl2z4Fh/5w7JCgXvcf W9UkZUGtRCrTZKRQ5BCRPHFPIOkCZaRvgZ/a0+tjdz8rRAvqWJQ2lFPpH0N8WjR+Ex0P J8KvhSGN5AYFZDwimeXPNvtuQWpkCTG+VE+WFU/BmgSwFgNCfROXv2noqvTcH+SIrA8h ootw== X-Gm-Message-State: AC+VfDzD+z25NKqUZ9E2fsD7yAbnJvQTCYOUiVOZ7F/XFlyVI056w3bQ j7oC4Fq+upHCpMb1/XyQ6Fnftw== X-Google-Smtp-Source: ACHHUZ4RHAsI+6dtss4BI2MS1DxfBBSjl8bBfo5MnFQLTDddnQpkKtA45YZ4EVdi0wOHQueFzJV8Rw== X-Received: by 2002:a17:902:76c8:b0:1ab:d6f:51b0 with SMTP id j8-20020a17090276c800b001ab0d6f51b0mr7517046plt.18.1685618544287; Thu, 01 Jun 2023 04:22:24 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id n3-20020a170902e54300b001ac55a5e5eesm3216496plf.121.2023.06.01.04.22.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2023 04:22:22 -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 v4 for-next 0/6] RDMA/bnxt_re: driver update for supporting low latency push Date: Thu, 1 Jun 2023 04:10:31 -0700 Message-Id: <1685617837-15725-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 in the pull request https://github.com/linux-rdma/rdma-core/pull/1321 Please review. Thanks, Selvin Xavier v3-> v4: - Remove the newly added comp_mask in the alloc_pd resp. This is not required after using the new UAPI mechanism. - Return -EINVAL if WC page mmap requested for an unsupported adapter. 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 | 263 ++++++++++++++++++++++++++--- 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 | 28 +++ 12 files changed, 549 insertions(+), 102 deletions(-)