From patchwork Thu Jun 8 10:24:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13271918 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 EAE16C7EE45 for ; Thu, 8 Jun 2023 10:36:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235808AbjFHKg6 (ORCPT ); Thu, 8 Jun 2023 06:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235563AbjFHKg6 (ORCPT ); Thu, 8 Jun 2023 06:36:58 -0400 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ECE9E6C for ; Thu, 8 Jun 2023 03:36:57 -0700 (PDT) Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-55b38fc0c70so297216eaf.0 for ; Thu, 08 Jun 2023 03:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686220616; x=1688812616; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qJk1U406oFNpgB757GU046VERu6MZti9kpGA/OcmYlU=; b=EiX3uhkvORokhmoYhb4GMq3PCyP85t8AZzcCLEYmFqvSsYS1HyUcRhSIZSmadPfvfS l3a6gKJlBZCYGVzF9ui0fPPMJC326lW4WPaWuUn9+YFI2fL+jTsjES2zgzTLt/dr8+Kl bY0MsDAyOCtcGFpcl+0ZOsbbqPD3DqRb5vKVk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686220616; x=1688812616; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qJk1U406oFNpgB757GU046VERu6MZti9kpGA/OcmYlU=; b=i4JeGgTHMpyg8pA3OreOSRNTtQ8qlgb3fn53h0vQ63xLVj3AatQ67y6YTrYQl/2YB6 kxZ6u2Bvcj4P2oNnZrZ+stR5x4yuOAVwkhoCcErYuBOfBWwocBoA/E/jsOcvgnOIgbUH pN/lp6Kj1zKfoQ0KGPAkbFRwlvbjy9yzT+e8MPsblHLPBvUXxWVFly7pllA/fg6YdRM4 ehIDrNbHqpA3V2sDU57iw/NyFxNialkrscb2TOlIn1eOf4LZY2VPRf7Yxymxh4PC54YI 08qZ2ehKiUaDNyLwlZEtIfw7NAZteWLKVwkoLiEzc/v3yRS8rAdYMOAGBVCT0fcXfV/C mPeQ== X-Gm-Message-State: AC+VfDyhefB7Gb9L09AMzJIGAe42TdSIjAY8urPq2Pqw34zDN1M+VwQL 5UYL4IL1Gz7PdSas5vRsSk08R13l8yezG0tBYOU= X-Google-Smtp-Source: ACHHUZ5OF9bUaWagXU0z0bytdZOgkN2uM5iG7uSNW8rzVw0g9J5bMHetqL30pAHTzu/QL3tzxIHqHg== X-Received: by 2002:aca:6704:0:b0:398:4870:d2ed with SMTP id z4-20020aca6704000000b003984870d2edmr8740159oix.13.1686220616565; Thu, 08 Jun 2023 03:36:56 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id jj11-20020a170903048b00b001a980a23802sm1128510plb.111.2023.06.08.03.36.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2023 03:36:55 -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 for-next 00/17] RDMA/bnxt_re: Control path updates Date: Thu, 8 Jun 2023 03:24:51 -0700 Message-Id: <1686219908-11181-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 This patch series from Kashyap includes code refactoring and some optimizations in the FW control path of the driver. It also address some of the issues seen as we scale up the HW resources. It also includes few bug fixes in the control path. Please review and apply. Thanks, Selvin Xavier Kashyap Desai (17): RDMA/bnxt_re: wraparound mbox producer index RDMA/bnxt_re: Avoid calling wake_up threads from spin_lock context RDMA/bnxt_re: remove virt_func check while creating RoCE FW channel RDMA/bnxt_re: set fixed command queue depth RDMA/bnxt_re: Enhance the existing functions that wait for FW responses RDMA/bnxt_re: Avoid the command wait if firmware is inactive RDMA/bnxt_re: use shadow qd while posting non blocking rcfw command RDMA/bnxt_re: Simplify the function that sends the FW commands RDMA/bnxt_re: add helper function __poll_for_resp RDMA/bnxt_re: handle command completions after driver detect a timedout RDMA/bnxt_re: Add firmware stall check detection RDMA/bnxt_re: post destroy_ah for delayed completion of AH creation RDMA/bnxt_re: consider timeout of destroy ah as success. RDMA/bnxt_re: cancel all control path command waiters upon error. RDMA/bnxt_re: use firmware provided max request timeout RDMA/bnxt_re: remove redundant cmdq_bitmap RDMA/bnxt_re: optimize the parameters passed to helper functions drivers/infiniband/hw/bnxt_re/bnxt_re.h | 2 + drivers/infiniband/hw/bnxt_re/ib_verbs.c | 16 +- drivers/infiniband/hw/bnxt_re/main.c | 11 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 623 ++++++++++++++++++++++------- drivers/infiniband/hw/bnxt_re/qplib_rcfw.h | 51 ++- drivers/infiniband/hw/bnxt_re/qplib_res.h | 1 + drivers/infiniband/hw/bnxt_re/qplib_sp.c | 8 +- drivers/infiniband/hw/bnxt_re/qplib_sp.h | 4 +- 8 files changed, 557 insertions(+), 159 deletions(-)