From patchwork Tue Jun 15 18:31:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 12322643 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=-12.9 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,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 7AD03C48BDF for ; Tue, 15 Jun 2021 18:32:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D9BD6115C for ; Tue, 15 Jun 2021 18:32:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbhFOSeF (ORCPT ); Tue, 15 Jun 2021 14:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbhFOSeF (ORCPT ); Tue, 15 Jun 2021 14:34:05 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C39A4C061574 for ; Tue, 15 Jun 2021 11:32:00 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id e1so8908955pld.13 for ; Tue, 15 Jun 2021 11:32:00 -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=CLwgyA81XjYrOoFviW0l43UXGXQW5bqNsyT6wyokJ1E=; b=cV0tx25qiu+pNKK9kqJ5NanYQdql8x1G0zXK+OvDtM3Q5Cwi7onG85YuejjQb7uti0 nxULD0+eNnSik/YV3UAvTOJ/9DA/RUvUhYaODcWFfpSGY4Ffr83jHdVUAJGQ+LikEs4s tdCqtDtFFhAa181PmhR/vghiNgOBH+yGSGOpk= 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=CLwgyA81XjYrOoFviW0l43UXGXQW5bqNsyT6wyokJ1E=; b=SzCQ++vjI18TBTU32IlRloywbQPr4vgj7BDBS8xxX4KC08STsVdbLHKNqlnfDbU6CC AnvV+D0uEVx0wcKgtez+kPQvPsYD5Giz6qXDGS6S4JO0K87hMIrYyAcG3ZnhgHYgsGqf z3a7VqdZpLZpYzUll4fl+RUPmi4FP2VFpUhj9VU9zYt803uKmglK9guu/bDiUZK2q9I2 zcAZJJPtYwQYIjFrMv1dRf9jp4XDt3n5vqpmxdo6Px7jK2ia9HwTov3jh7ICpA0ana+6 bcyd4qF617C2s+GCbjp0zTUTmioS3sxWk0ozfB83V6TYZO9wjTwdkvt6cKHRzSiUeC75 LdDA== X-Gm-Message-State: AOAM533UOg8in5w+pU+/eOZV3OZd89dlNzWiZWcm/lOFylDlfad26ykU 39sP8cPz++I4WJik6a9IH5xI7YJqpb56ONpDIY6TKmn1DG/xYUlWNOEWS+rHtLrc4G2VQbLwESd PAoYzUeCQjE9+k76Cn5fUWjKRlbvH6Cq4CzEHsVf+sJNC3IcO5FP07gjZ+D/NN18H0sS5fyEpNC 658jYMng== X-Google-Smtp-Source: ABdhPJwZAkw4NRenTLTZqhIg/iC+7ggm3jya4EsN+B9dkWzYe4JsCGlt6AnuYIEjl5zs0b76VdqeSQ== X-Received: by 2002:a17:90a:aa98:: with SMTP id l24mr603874pjq.156.1623781919630; Tue, 15 Jun 2021 11:31:59 -0700 (PDT) Received: from dev01.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i125sm3803823pfc.7.2021.06.15.11.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 11:31:58 -0700 (PDT) From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: Devesh Sharma Subject: [PATCH V5 rdma-core 0/5] Broadcom's user library update Date: Wed, 16 Jun 2021 00:01:43 +0530 Message-Id: <20210615183148.1179042-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 The focus of this patch series is to move SQ and RQ wqe posting indices from 128B fixed stride to 16B aligned stride. This allows more flexibility in choosing wqe size. v4 -> v5 - addressed few minor suggestion. v3 -> v4 - fixed build warning v2 -> V3 - Split the ABI change into separate patch - committed ABI patch using standard rdma-core script. Devesh Sharma (5): Update kernel headers bnxt_re/lib: Read wqe mode from the driver bnxt_re/lib: add a function to initialize software queue bnxt_re/lib: Use separate indices for shadow queue bnxt_re/lib: Move hardware queue to 16B aligned indices kernel-headers/rdma/bnxt_re-abi.h | 5 +- providers/bnxt_re/bnxt_re-abi.h | 5 + providers/bnxt_re/db.c | 10 +- providers/bnxt_re/main.c | 4 + providers/bnxt_re/main.h | 25 ++ providers/bnxt_re/memory.h | 37 ++- providers/bnxt_re/verbs.c | 523 ++++++++++++++++++++---------- 7 files changed, 429 insertions(+), 180 deletions(-)