From patchwork Fri Aug 23 14:56:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hernan Vargas X-Patchwork-Id: 143379 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: 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 20F9A4578F; Fri, 23 Aug 2024 17:01:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C53D24336F; Fri, 23 Aug 2024 17:01:26 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mails.dpdk.org (Postfix) with ESMTP id 7365540295 for ; Fri, 23 Aug 2024 17:01:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724425285; x=1755961285; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GNgsrrNbMTkhvYqgTDNmCgJgnWmmecHxtOmgBQrZ6qQ=; b=fGHYKenN03ZpzhpUkgKEKYKSaqR2uH4Tmet5OSjPrIGvwYNoAoUYd6SZ +SKbzQ44UqzaFcDxx8mVNAO7XKQXx7OvSwwVpP21Xg9Vn4AItYJskXPLc PC/s6YVeJe9ZqW1xi9lKa4phDcsktCoo3igBrQ4nFXt6UfW5YurcBiorn dws8c+Hi9+7/5ERfpgJa37SX8OZQWTVeymnC0ZLQ/WwzDF/h73OXJc01R wD2Dar56+XojciyyIFqSjU5Dbs3rRPD4vBu9eY8fVWj0sVwqhCOLcBFoo TU5cBjR9dRBgxQQTEmU2fnwIMhqR3c4fPnzF6Hwwha2BU8IGODHZpgW5C g==; X-CSE-ConnectionGUID: KbTClYhbR6m9OPRYcb+LPw== X-CSE-MsgGUID: Eys65q4uROuSXIRk/NTGYA== X-IronPort-AV: E=McAfee;i="6700,10204,11172"; a="22419228" X-IronPort-AV: E=Sophos;i="6.10,170,1719903600"; d="scan'208";a="22419228" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2024 08:01:23 -0700 X-CSE-ConnectionGUID: fQ5Pn0JPR+qpvI4RkeE/9w== X-CSE-MsgGUID: MMBKtqPSTFqJwBVzapKA4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,170,1719903600"; d="scan'208";a="62119680" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa006.jf.intel.com with ESMTP; 23 Aug 2024 08:01:22 -0700 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com, maxime.coquelin@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v2 1/1] drivers/baseband: device queues initialization Date: Fri, 23 Aug 2024 07:56:37 -0700 Message-Id: <20240823145637.202025-2-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240823145637.202025-1-hernan.vargas@intel.com> References: <20240823145637.202025-1-hernan.vargas@intel.com> MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Cosmetic change to keep code consistency in PMD for queue initialization set to zero. No functional impact. Signed-off-by: Hernan Vargas Acked-by: Hemant Agrawal Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/rte_acc100_pmd.c | 1 + drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 2 ++ drivers/baseband/fpga_lte_fec/fpga_lte_fec.c | 2 ++ drivers/baseband/la12xx/bbdev_la12xx.c | 2 ++ 4 files changed, 7 insertions(+) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index ab69350080f0..9b12fa7048c2 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -1030,6 +1030,7 @@ acc100_dev_info_get(struct rte_bbdev *dev, dev_info->num_queues[RTE_BBDEV_OP_LDPC_ENC] = d->acc_conf.q_dl_5g.num_aqs_per_groups * d->acc_conf.q_dl_5g.num_qgroups; dev_info->num_queues[RTE_BBDEV_OP_FFT] = 0; + dev_info->num_queues[RTE_BBDEV_OP_MLDTS] = 0; dev_info->queue_priority[RTE_BBDEV_OP_TURBO_DEC] = d->acc_conf.q_ul_4g.num_qgroups; dev_info->queue_priority[RTE_BBDEV_OP_TURBO_ENC] = d->acc_conf.q_dl_4g.num_qgroups; dev_info->queue_priority[RTE_BBDEV_OP_LDPC_DEC] = d->acc_conf.q_ul_5g.num_qgroups; diff --git a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c index 9b253cde280d..dad16ad422b5 100644 --- a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c +++ b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c @@ -625,6 +625,8 @@ fpga_5gnr_dev_info_get(struct rte_bbdev *dev, struct rte_bbdev_driver_info *dev_ dev_info->num_queues[RTE_BBDEV_OP_TURBO_ENC] = 0; dev_info->num_queues[RTE_BBDEV_OP_LDPC_DEC] = dev_info->max_num_queues / 2; dev_info->num_queues[RTE_BBDEV_OP_LDPC_ENC] = dev_info->max_num_queues / 2; + dev_info->num_queues[RTE_BBDEV_OP_FFT] = 0; + dev_info->num_queues[RTE_BBDEV_OP_MLDTS] = 0; dev_info->queue_priority[RTE_BBDEV_OP_LDPC_DEC] = 1; dev_info->queue_priority[RTE_BBDEV_OP_LDPC_ENC] = 1; } diff --git a/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c b/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c index a4a963f74dbf..c6a3c3805a04 100644 --- a/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c +++ b/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c @@ -659,6 +659,8 @@ fpga_dev_info_get(struct rte_bbdev *dev, dev_info->num_queues[RTE_BBDEV_OP_TURBO_ENC] = dev_info->max_num_queues / 2; dev_info->num_queues[RTE_BBDEV_OP_LDPC_DEC] = 0; dev_info->num_queues[RTE_BBDEV_OP_LDPC_ENC] = 0; + dev_info->num_queues[RTE_BBDEV_OP_FFT] = 0; + dev_info->num_queues[RTE_BBDEV_OP_MLDTS] = 0; dev_info->queue_priority[RTE_BBDEV_OP_TURBO_DEC] = 1; dev_info->queue_priority[RTE_BBDEV_OP_TURBO_ENC] = 1; } diff --git a/drivers/baseband/la12xx/bbdev_la12xx.c b/drivers/baseband/la12xx/bbdev_la12xx.c index 1a56e73abdab..c13eabbf4b6e 100644 --- a/drivers/baseband/la12xx/bbdev_la12xx.c +++ b/drivers/baseband/la12xx/bbdev_la12xx.c @@ -108,6 +108,8 @@ la12xx_info_get(struct rte_bbdev *dev __rte_unused, dev_info->num_queues[RTE_BBDEV_OP_TURBO_ENC] = 0; dev_info->num_queues[RTE_BBDEV_OP_LDPC_DEC] = LA12XX_MAX_QUEUES / 2; dev_info->num_queues[RTE_BBDEV_OP_LDPC_ENC] = LA12XX_MAX_QUEUES / 2; + dev_info->num_queues[RTE_BBDEV_OP_FFT] = 0; + dev_info->num_queues[RTE_BBDEV_OP_MLDTS] = 0; dev_info->queue_priority[RTE_BBDEV_OP_LDPC_DEC] = 1; dev_info->queue_priority[RTE_BBDEV_OP_LDPC_ENC] = 1; rte_bbdev_log_debug("got device info from %u", dev->data->dev_id);