From patchwork Thu Mar 30 09:45:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13193728 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 26C0EC6FD1D for ; Thu, 30 Mar 2023 09:47:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230327AbjC3JrC (ORCPT ); Thu, 30 Mar 2023 05:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230224AbjC3Jqc (ORCPT ); Thu, 30 Mar 2023 05:46:32 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF0257EED for ; Thu, 30 Mar 2023 02:46:02 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id h14so10942743pgj.7 for ; Thu, 30 Mar 2023 02:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1680169562; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9ErE+5i6C3SL9drLvjfIenDn3hMFuqaT24DhkYo7ZPU=; b=OITvTmHCF+sVoG3C0j1KiW0TrBrnB+KkJB+SJLBO+L293PTstR/wamdembs1O5TuTO 8O2ZhTSLi/HpqGul4By9R2Jw3DgWBDamJicedO5YWeYvLI7MIwHxotAoGlFNiP47QmP3 E5u/Xb3yu31IAwej7gyOvnUscjYRPtJAcOMkg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680169562; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9ErE+5i6C3SL9drLvjfIenDn3hMFuqaT24DhkYo7ZPU=; b=LtIHTnOlQzluuScouZt2/VnvslQ3Hha+xJcikOItkww6xaD/gBJ5Njw+Nk+hnV21f5 iialMb+AkoRC2/l2RqKA9I107Eg90Ztstg56/9Oszha9yhZUnWngWToCNR1gHiIV2XND oxRPTvNTscDxqKjXDElO0oTmjF9RNbFLDQacX/S+IlD443AajinePEt46TixKZVBOM/R 7NdfpzRmqk7kxJ8rX019BnKk1N5PNZxlhx/P0ouuKu8gE7Kw6opXjdKOibPCnqZHUzY/ pjTTrYU7rAnGmoKKlHLSeOX3lqQSkXaXv/8tr4ws/Cn2TQC3hI8g6Xct3gI7txR8B3Ls +E7Q== X-Gm-Message-State: AAQBX9eMvBBvFQA4wWjJy3RHFQXmquzB3mq4WDtjmGCqhK9muELJRlbs Efzhvq6LXpuV0IgcLXySKFdDvd83ZnHC0UzMWfU= X-Google-Smtp-Source: AKy350acaVq9pxxGorqlsSJg+GzQvkZbzcHqpdyxCHF7KgVEbUAANB3B8+mCF2HWcYlEOuiXpWq72g== X-Received: by 2002:aa7:9601:0:b0:624:2e60:f21e with SMTP id q1-20020aa79601000000b006242e60f21emr21980222pfg.29.1680169562129; Thu, 30 Mar 2023 02:46:02 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id c26-20020aa78e1a000000b00625616f59a1sm24468857pfr.73.2023.03.30.02.45.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Mar 2023 02:46:00 -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 v3 0/7] RDMA/bnxt_re: Enable Congestion control by default Date: Thu, 30 Mar 2023 02:45:33 -0700 Message-Id: <1680169540-10029-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 v2 -> v3: - Fix the sparse warnings 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