Message ID | 20231210012455.20229-1-ajit.khaparde@broadcom.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1A4C4436BE; Sun, 10 Dec 2023 02:31:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C3C5402BA; Sun, 10 Dec 2023 02:31:42 +0100 (CET) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id F325940279 for <dev@dpdk.org>; Sun, 10 Dec 2023 02:31:40 +0100 (CET) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1d08a924fcfso30601555ad.2 for <dev@dpdk.org>; Sat, 09 Dec 2023 17:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1702171899; x=1702776699; darn=dpdk.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Pn50JWO0dlXwe7gZQ1sQd2WVgkXd5TJlu+zFsazkevg=; b=a0rkzOA+Fcvpn+Zp4PDpNMYQrA9GWVIBlYfs4T6dsSyr75dovFAlsj5f318Js942du w2aTr3NuaY46LM0vCJz/W+si0+3RaLeO+ym8xDdV6oI8pJevG9bvpw9oczBzO6rIwpRx wgHo2YPugA5yaTWOmoweSZmMceBN2n9JfQPDs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702171899; x=1702776699; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Pn50JWO0dlXwe7gZQ1sQd2WVgkXd5TJlu+zFsazkevg=; b=LI80rmflPW8JhJ10hqKSNl2gHzT6vrorHOIGKlueY+umy5U/9R6xVsWTGue6El6Pg7 +m+z0RtOmcuL9gbpLWks2bDpLX/QnRShTnn2icdyrXXkeSR+Q0GGPJWUiTRdigpNe+li HGuLUU/mvmgFyDRdmk5/L0setKE1ygifGJU2SUjj2cAfCd2sCJn6RN7zV5T3xICqH9VS yCrOciZZhdLXkdKJmnymZ0xfk43lGLg8+6pt9fBVfMw4m9WAbjIU15xyNJ06MPvNoYVq zgzvv/Q76CEClMCdWacuW5ohM66l2erXfbds1oFQx2st3r3OfP1nd8k/5lgZEMl3C4qm tUAQ== X-Gm-Message-State: AOJu0Ywbi8ClwAHUDuoW3GdUV8bcXXKsDf+7rd8AwzqKhQGEClyMaokx wNz1Xrq+Qt8IVE5htwJ84O4hcgAa3fccOZca52+zGyhGzLjSwaq39zuVuExOmHR3NZqfxgsyLWg aQOPGRbgDL7MyJQzbk4Y4BqNG1YefVRLdQhSj+T4cWQ4M4XeLkUFhh19rfWEf/OVHRZtx X-Google-Smtp-Source: AGHT+IE5waN2DXzG4tf9k8PioN3LeEb0DFz+bC2U3VDu8/emrr4rT0+QTD8B9eJlKIeF6fNV7wKafw== X-Received: by 2002:a17:903:11c7:b0:1d0:b9f4:800f with SMTP id q7-20020a17090311c700b001d0b9f4800fmr2558563plh.109.1702171899295; Sat, 09 Dec 2023 17:31:39 -0800 (PST) Received: from localhost.localdomain ([2605:a601:a780:1400:6d20:fff:e413:282a]) by smtp.gmail.com with ESMTPSA id q3-20020a170902f78300b001d083fed5f3sm4006050pln.60.2023.12.09.17.31.37 for <dev@dpdk.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 17:31:38 -0800 (PST) From: Ajit Khaparde <ajit.khaparde@broadcom.com> To: dev@dpdk.org Subject: [PATCH v2 00/14] support new 5760X P7 devices Date: Sat, 9 Dec 2023 17:24:41 -0800 Message-Id: <20231210012455.20229-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000071a750060c1dc7b2" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
support new 5760X P7 devices
|
|
Message
Ajit Khaparde
Dec. 10, 2023, 1:24 a.m. UTC
While some of the patches refactor and improve existing code, this series adds support for the new 5760X P7 device family. Follow-on patches will incrementally add more functionality. v1->v2: - Fixed unused variable error - Fixed some spellings - Code refactoring and fixes in backing store v2 Ajit Khaparde (12): net/bnxt: refactor epoch setting net/bnxt: update HWRM API net/bnxt: use the correct COS queue for Tx net/bnxt: refactor mem zone allocation net/bnxt: add support for p7 device family net/bnxt: refactor code to support P7 devices net/bnxt: fix array overflow net/bnxt: add support for backing store v2 net/bnxt: modify sending new HWRM commands to firmware net/bnxt: retry HWRM ver get if the command fails net/bnxt: cap ring resources for P7 devices net/bnxt: add support for v3 Rx completion Kalesh AP (1): net/bnxt: log a message when multicast promisc mode changes Kishore Padmanabha (1): net/bnxt: refactor the ulp initialization drivers/net/bnxt/bnxt.h | 97 +- drivers/net/bnxt/bnxt_cpr.h | 5 +- drivers/net/bnxt/bnxt_ethdev.c | 319 ++++- drivers/net/bnxt/bnxt_flow.c | 2 +- drivers/net/bnxt/bnxt_hwrm.c | 416 ++++++- drivers/net/bnxt/bnxt_hwrm.h | 15 + drivers/net/bnxt/bnxt_ring.c | 15 +- drivers/net/bnxt/bnxt_rxq.c | 2 +- drivers/net/bnxt/bnxt_rxr.c | 93 +- drivers/net/bnxt/bnxt_rxr.h | 92 ++ drivers/net/bnxt/bnxt_util.c | 10 + drivers/net/bnxt/bnxt_util.h | 1 + drivers/net/bnxt/bnxt_vnic.c | 58 +- drivers/net/bnxt/bnxt_vnic.h | 1 - drivers/net/bnxt/hsi_struct_def_dpdk.h | 1531 ++++++++++++++++++++++-- 15 files changed, 2408 insertions(+), 249 deletions(-)
Comments
On Sat, Dec 9, 2023 at 5:31 PM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote: > > While some of the patches refactor and improve existing code, > this series adds support for the new 5760X P7 device family. > Follow-on patches will incrementally add more functionality. > > v1->v2: > - Fixed unused variable error > - Fixed some spellings > - Code refactoring and fixes in backing store v2 Patchset applied to dpdk-next-net-brcm for-next-net branch. Thanks > > Ajit Khaparde (12): > net/bnxt: refactor epoch setting > net/bnxt: update HWRM API > net/bnxt: use the correct COS queue for Tx > net/bnxt: refactor mem zone allocation > net/bnxt: add support for p7 device family > net/bnxt: refactor code to support P7 devices > net/bnxt: fix array overflow > net/bnxt: add support for backing store v2 > net/bnxt: modify sending new HWRM commands to firmware > net/bnxt: retry HWRM ver get if the command fails > net/bnxt: cap ring resources for P7 devices > net/bnxt: add support for v3 Rx completion > > Kalesh AP (1): > net/bnxt: log a message when multicast promisc mode changes > > Kishore Padmanabha (1): > net/bnxt: refactor the ulp initialization > > drivers/net/bnxt/bnxt.h | 97 +- > drivers/net/bnxt/bnxt_cpr.h | 5 +- > drivers/net/bnxt/bnxt_ethdev.c | 319 ++++- > drivers/net/bnxt/bnxt_flow.c | 2 +- > drivers/net/bnxt/bnxt_hwrm.c | 416 ++++++- > drivers/net/bnxt/bnxt_hwrm.h | 15 + > drivers/net/bnxt/bnxt_ring.c | 15 +- > drivers/net/bnxt/bnxt_rxq.c | 2 +- > drivers/net/bnxt/bnxt_rxr.c | 93 +- > drivers/net/bnxt/bnxt_rxr.h | 92 ++ > drivers/net/bnxt/bnxt_util.c | 10 + > drivers/net/bnxt/bnxt_util.h | 1 + > drivers/net/bnxt/bnxt_vnic.c | 58 +- > drivers/net/bnxt/bnxt_vnic.h | 1 - > drivers/net/bnxt/hsi_struct_def_dpdk.h | 1531 ++++++++++++++++++++++-- > 15 files changed, 2408 insertions(+), 249 deletions(-) > > -- > 2.39.2 (Apple Git-143) >
On Wed, Dec 13, 2023 at 6:34 AM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote: > > On Sat, Dec 9, 2023 at 5:31 PM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote: > > > > While some of the patches refactor and improve existing code, > > this series adds support for the new 5760X P7 device family. > > Follow-on patches will incrementally add more functionality. > > > > v1->v2: > > - Fixed unused variable error > > - Fixed some spellings > > - Code refactoring and fixes in backing store v2 > > Patchset applied to dpdk-next-net-brcm for-next-net branch. > Thanks In case you did not read my mail about mirroring in github, this for-next-net branch has been mirrored (cool). And now GHA runs on this branch, but it failed (not cool). https://github.com/DPDK/dpdk/actions/runs/7191182897/job/19585464602 Looking at the error, I think you applied the v2 (series 30499) and not the v3 (series 30511) of this work. $ git diff ovsrobot/series_30499..ovsrobot/series_30511 diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 8aca3c6fba..75e968394f 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -1312,7 +1312,7 @@ bnxt_receive_function(struct rte_eth_dev *eth_dev) } static eth_tx_burst_t -bnxt_transmit_function(struct rte_eth_dev *eth_dev) +bnxt_transmit_function(__rte_unused struct rte_eth_dev *eth_dev) { #if defined(RTE_ARCH_X86) || defined(RTE_ARCH_ARM64) uint64_t offloads = eth_dev->data->dev_conf.txmode.offloads; @@ -2929,7 +2929,7 @@ bnxt_dev_set_mc_addr_list_op(struct rte_eth_dev *eth_dev, bp->nb_mc_addr = nb_mc_addr; if (nb_mc_addr > BNXT_MAX_MC_ADDRS) { - PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%d) exceeded Max supported (%d)\n", + PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%u) exceeded Max supported (%u)\n", nb_mc_addr, BNXT_MAX_MC_ADDRS); PMD_DRV_LOG(INFO, "Turning on Mcast promiscuous mode\n"); vnic->flags |= BNXT_VNIC_INFO_ALLMULTI; diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index c6d774bd14..e56f7693af 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -5653,8 +5653,6 @@ int bnxt_hwrm_func_backing_store_types_count(struct bnxt *bp) req.type = rte_cpu_to_le_16(type); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req), BNXT_USE_CHIMP_MB); HWRM_CHECK_RESULT(); - if (rc != 0) - return rc; flags = rte_le_to_cpu_32(resp->flags); type = rte_le_to_cpu_16(resp->next_valid_type);
On Tue, Dec 12, 2023 at 11:57 PM David Marchand <david.marchand@redhat.com> wrote: > > On Wed, Dec 13, 2023 at 6:34 AM Ajit Khaparde > <ajit.khaparde@broadcom.com> wrote: > > > > On Sat, Dec 9, 2023 at 5:31 PM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote: > > > > > > While some of the patches refactor and improve existing code, > > > this series adds support for the new 5760X P7 device family. > > > Follow-on patches will incrementally add more functionality. > > > > > > v1->v2: > > > - Fixed unused variable error > > > - Fixed some spellings > > > - Code refactoring and fixes in backing store v2 > > > > Patchset applied to dpdk-next-net-brcm for-next-net branch. > > Thanks > > In case you did not read my mail about mirroring in github, this > for-next-net branch has been mirrored (cool). > And now GHA runs on this branch, but it failed (not cool). > https://github.com/DPDK/dpdk/actions/runs/7191182897/job/19585464602 Hmm. It tested ok on my setup. Let me take a look. > > > Looking at the error, I think you applied the v2 (series 30499) and > not the v3 (series 30511) of this work. Let me check. > > $ git diff ovsrobot/series_30499..ovsrobot/series_30511 > diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c > index 8aca3c6fba..75e968394f 100644 > --- a/drivers/net/bnxt/bnxt_ethdev.c > +++ b/drivers/net/bnxt/bnxt_ethdev.c > @@ -1312,7 +1312,7 @@ bnxt_receive_function(struct rte_eth_dev *eth_dev) > } > > static eth_tx_burst_t > -bnxt_transmit_function(struct rte_eth_dev *eth_dev) > +bnxt_transmit_function(__rte_unused struct rte_eth_dev *eth_dev) > { > #if defined(RTE_ARCH_X86) || defined(RTE_ARCH_ARM64) > uint64_t offloads = eth_dev->data->dev_conf.txmode.offloads; > @@ -2929,7 +2929,7 @@ bnxt_dev_set_mc_addr_list_op(struct rte_eth_dev *eth_dev, > bp->nb_mc_addr = nb_mc_addr; > > if (nb_mc_addr > BNXT_MAX_MC_ADDRS) { > - PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%d) > exceeded Max supported (%d)\n", > + PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%u) > exceeded Max supported (%u)\n", > nb_mc_addr, BNXT_MAX_MC_ADDRS); > PMD_DRV_LOG(INFO, "Turning on Mcast promiscuous mode\n"); > vnic->flags |= BNXT_VNIC_INFO_ALLMULTI; > diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c > index c6d774bd14..e56f7693af 100644 > --- a/drivers/net/bnxt/bnxt_hwrm.c > +++ b/drivers/net/bnxt/bnxt_hwrm.c > @@ -5653,8 +5653,6 @@ int > bnxt_hwrm_func_backing_store_types_count(struct bnxt *bp) > req.type = rte_cpu_to_le_16(type); > rc = bnxt_hwrm_send_message(bp, &req, sizeof(req), > BNXT_USE_CHIMP_MB); > HWRM_CHECK_RESULT(); > - if (rc != 0) > - return rc; > > flags = rte_le_to_cpu_32(resp->flags); > type = rte_le_to_cpu_16(resp->next_valid_type); > > > -- > David Marchand >
On Wed, Dec 13, 2023 at 6:49 AM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote: > > On Tue, Dec 12, 2023 at 11:57 PM David Marchand > <david.marchand@redhat.com> wrote: > > > > On Wed, Dec 13, 2023 at 6:34 AM Ajit Khaparde > > <ajit.khaparde@broadcom.com> wrote: > > > > > > On Sat, Dec 9, 2023 at 5:31 PM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote: > > > > > > > > While some of the patches refactor and improve existing code, > > > > this series adds support for the new 5760X P7 device family. > > > > Follow-on patches will incrementally add more functionality. > > > > > > > > v1->v2: > > > > - Fixed unused variable error > > > > - Fixed some spellings > > > > - Code refactoring and fixes in backing store v2 > > > > > > Patchset applied to dpdk-next-net-brcm for-next-net branch. > > > Thanks > > > > In case you did not read my mail about mirroring in github, this > > for-next-net branch has been mirrored (cool). > > And now GHA runs on this branch, but it failed (not cool). > > https://github.com/DPDK/dpdk/actions/runs/7191182897/job/19585464602 > Hmm. It tested ok on my setup. Let me take a look. > > > > > > > Looking at the error, I think you applied the v2 (series 30499) and > > not the v3 (series 30511) of this work. > Let me check. I spent some time trying to dig this up. It turns out that I had not updated my staging branch after I mailed the v3 patchset. And that's how v2 ended up getting merged. Thanks for catching it and pointing it out. I pushed the v3 to the dpdk-next-net-brcm for-next-net branch and the GHA completed successfully. https://github.com/DPDK/dpdk/actions/runs/7199579031 Please pick this version from the subtree. ---- While some of the patches refactor and improve existing code, this series adds support for the new 5760X P7 device family. Follow-on patches will incrementally add more functionality. v1->v2: - Fixed unused variable error - Fixed some spellings - Code refactoring and fixes in backing store v2 v2->v3: - Addressed review comments - Fixed unused arg error > > > > > $ git diff ovsrobot/series_30499..ovsrobot/series_30511 > > diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c > > index 8aca3c6fba..75e968394f 100644 > > --- a/drivers/net/bnxt/bnxt_ethdev.c > > +++ b/drivers/net/bnxt/bnxt_ethdev.c > > @@ -1312,7 +1312,7 @@ bnxt_receive_function(struct rte_eth_dev *eth_dev) > > } > > > > static eth_tx_burst_t > > -bnxt_transmit_function(struct rte_eth_dev *eth_dev) > > +bnxt_transmit_function(__rte_unused struct rte_eth_dev *eth_dev) > > { > > #if defined(RTE_ARCH_X86) || defined(RTE_ARCH_ARM64) > > uint64_t offloads = eth_dev->data->dev_conf.txmode.offloads; > > @@ -2929,7 +2929,7 @@ bnxt_dev_set_mc_addr_list_op(struct rte_eth_dev *eth_dev, > > bp->nb_mc_addr = nb_mc_addr; > > > > if (nb_mc_addr > BNXT_MAX_MC_ADDRS) { > > - PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%d) > > exceeded Max supported (%d)\n", > > + PMD_DRV_LOG(INFO, "Number of Mcast MACs added (%u) > > exceeded Max supported (%u)\n", > > nb_mc_addr, BNXT_MAX_MC_ADDRS); > > PMD_DRV_LOG(INFO, "Turning on Mcast promiscuous mode\n"); > > vnic->flags |= BNXT_VNIC_INFO_ALLMULTI; > > diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c > > index c6d774bd14..e56f7693af 100644 > > --- a/drivers/net/bnxt/bnxt_hwrm.c > > +++ b/drivers/net/bnxt/bnxt_hwrm.c > > @@ -5653,8 +5653,6 @@ int > > bnxt_hwrm_func_backing_store_types_count(struct bnxt *bp) > > req.type = rte_cpu_to_le_16(type); > > rc = bnxt_hwrm_send_message(bp, &req, sizeof(req), > > BNXT_USE_CHIMP_MB); > > HWRM_CHECK_RESULT(); > > - if (rc != 0) > > - return rc; > > > > flags = rte_le_to_cpu_32(resp->flags); > > type = rte_le_to_cpu_16(resp->next_valid_type); > > > > > > -- > > David Marchand > >