From patchwork Fri Jun 9 11:01:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13273715 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 E6B29C7EE25 for ; Fri, 9 Jun 2023 11:14:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbjFILOP (ORCPT ); Fri, 9 Jun 2023 07:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230317AbjFILOO (ORCPT ); Fri, 9 Jun 2023 07:14:14 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5F991FDC for ; Fri, 9 Jun 2023 04:14:12 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1b04706c974so6573025ad.2 for ; Fri, 09 Jun 2023 04:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686309252; x=1688901252; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jlIoVTbpvKySeYZnyXNOs6pgxgkiO7xVMEJujxf7ffc=; b=BkAkXvoKHrzvkYNHcSajbLe3lvXwQ3tO9K/1qc8LkxApKmTOuOgxpohDPetwA7EGnz 7Dm1Xkza7JvO1u70lYuvUpCZQ1rbWG2l/hINGwHUhUwldJI3e7mS30zQgFelvrWJm67p 39fEQIBtom5FJhnsScvfNI5NRYu0MuHH4g6H0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686309252; x=1688901252; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jlIoVTbpvKySeYZnyXNOs6pgxgkiO7xVMEJujxf7ffc=; b=RekNFEDjp0Nzl2qSZSHk2hvyXR/dtdXX484yvFmitUrZ9zU9rIzbRfb8JLMxGiymM0 gpLmSPrWihWq5eYleJI9xMFE8OMSficViVAWEmd5w15fn+LQKoMmMisjMN6NYFKTHdDh eqViHmm+PIqTQkHKEZXSOUYZNFs71nh7pWH8F/01NkZ2rcT9eHJkl/5jG0c0TO6KOZZz HBnDl0t8HS/KdIwIUffdh4aMzWzRQAyHCuoZjzC6XkhbA3wqRrlqM/g2B8l+7UkhBpOz WUbU2wmeC/tCW3fwtNuI8pHid7CTflw2VBkH/4/opjSTXJNMMavqZOn3jqaoqpmP9pxP 922Q== X-Gm-Message-State: AC+VfDxt3PHAMbyFWvomwj0lwmw6wBmPGF7bYNdI6HC+SSylAQWLgI81 T493sdlpGOi8N1sNeJDRCUqW5g== X-Google-Smtp-Source: ACHHUZ4oA7CZQivafldamCtRieyiCosfYlKqM3o0ND1m90Pnj8tRoyFoEFa9Vd9l8ALN/LIDjU7qlQ== X-Received: by 2002:a17:902:ecc7:b0:1b1:4801:f516 with SMTP id a7-20020a170902ecc700b001b14801f516mr1008805plh.68.1686309252283; Fri, 09 Jun 2023 04:14:12 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id q4-20020a170902dac400b001b0142908f7sm2992954plx.291.2023.06.09.04.14.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2023 04:14:10 -0700 (PDT) From: Selvin Xavier To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, kashyap.desai@broadcom.com, Selvin Xavier Subject: [PATCH v2 for-next 00/17] RDMA/bnxt_re: Control path updates Date: Fri, 9 Jun 2023 04:01:37 -0700 Message-Id: <1686308514-11996-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 v1 -> v2: - Fix the warning reported by kbuild test robot in patch 10 about variables set and not used. Rebased the other patches based on the modified patch. - Reported-by: kernel test robot 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 | 627 ++++++++++++++++++++++------- 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(+), 163 deletions(-)