From patchwork Sat Mar 25 18:44:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13187852 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 E4C05C6FD1C for ; Sat, 25 Mar 2023 18:44:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229460AbjCYSo2 (ORCPT ); Sat, 25 Mar 2023 14:44:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjCYSo1 (ORCPT ); Sat, 25 Mar 2023 14:44:27 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69370E3A3 for ; Sat, 25 Mar 2023 11:44:26 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso8025468pjb.3 for ; Sat, 25 Mar 2023 11:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1679769866; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vqpcTZsZQ9FxGIUvUm2c3wG+hMPm/gHR8cEoXTs7hyM=; b=JDG2lgCz2XkBwfJs1B5g9vBm15HgMaLyk6HOVcymCqS2I3ULKtOHfytek3o7OulzDb hO3h8r1wM9WVpEEjx7WDGtTs/p5p9uXBFc8bh6nbT4B5zP8yS6grncPZ1g5ghTQp21F1 rB10ZFPcg+R1o9SzbqrHH8O9LNFDic4tE6Jh0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679769866; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vqpcTZsZQ9FxGIUvUm2c3wG+hMPm/gHR8cEoXTs7hyM=; b=k16E9sQVkijrkkxGZ6eyYl0AOH1etBW2Yi8oW1LIUdjZzRxTTQLB8CarV64RQf4CB2 wmM9IFmAnUnlI/cQDDBB0Yxqq4U8QHWV+B/QDisWCnFtoafeB+XV+a1/pgQ1RFscmIXL h0o6lLdltr5dWOJLpZf0xOes4EzGVBnLDm3jp60kwqbeDKMV/AZTQYUIRUo6e6kGH9g1 VETJBOcRZnxcPqYSnuGmME5WxvaAbWbyOKdrh8Oo6R+5+zvpBPaazVXMpTNhv0cg/wF7 lgvf6EshVAY+eEncb2BJZlCWIWVAHNZhGaS7cD8o9ljlF6kq/cmdWmnlU4jMsP+WDMLD MM8Q== X-Gm-Message-State: AAQBX9ej9FkTI1v164aarR9GVMfLI03I3YsBzRdH8gW09/QNVzOJHza/ HJTPXVfyWtyPFlZgfJZ67Zbikg== X-Google-Smtp-Source: AKy350bbsa8V556v02kfQhBwO1mN8e9ouh4HJP3l/mUmLwjjExv+5O76MnuGTwBzMIi9OM8WmJgohw== X-Received: by 2002:a17:902:ce83:b0:1a2:1042:cac1 with SMTP id f3-20020a170902ce8300b001a21042cac1mr8104193plg.49.1679769865879; Sat, 25 Mar 2023 11:44:25 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id q12-20020a170902b10c00b0019a70a42b0asm16283031plr.169.2023.03.25.11.44.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Mar 2023 11:44:24 -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 v2 0/7] RDMA/bnxt_re: Enable Congestion control by default Date: Sat, 25 Mar 2023 11:44:07 -0700 Message-Id: <1679769854-30605-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 series includes the code reorgnization in the driver control path. HW interface header file is updated to the latest version. Also, adds support for a new command format which is required for enabling RoCE congestion control. This series is prepared on top of the resize_cq (https://lore.kernel.org/all/1678868215-23626-1-git-send-email-selvin.xavier@broadcom.com/) patch which is under review. Please review and apply. Thanks, Selvin v1 -> v2: - Fix the warning reported by kbuild test robot about missing static keyword - Reported-by: kernel test robot Selvin Xavier (7): RDMA/bnxt_re: Update HW interface headers RDMA/bnxt_re: Remove HW queue mapping from RoCE Driver RDMA/bnxt_re: Convert RCFW_CMD_PREP macro to static inline function RDMA/bnxt_re: Reduce number of argumets to control path command APIs RDMA/bnxt_re: RoCE slow path TLV support RDAM/bnxt_re: Use tlv apis while processing the slow path commands RDMA/bnxt_re: Enable congestion control by default drivers/infiniband/hw/bnxt_re/main.c | 101 +- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 161 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 97 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.h | 66 +- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 337 +- drivers/infiniband/hw/bnxt_re/qplib_sp.h | 68 +- drivers/infiniband/hw/bnxt_re/qplib_tlv.h | 162 + drivers/infiniband/hw/bnxt_re/roce_hsi.h | 7423 +++++++++++++++---------- drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 81 + 9 files changed, 5108 insertions(+), 3388 deletions(-) create mode 100644 drivers/infiniband/hw/bnxt_re/qplib_tlv.h