From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 14DE5455CA; Mon, 8 Jul 2024 21:14:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 046B0427A4; Mon, 8 Jul 2024 21:14:11 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mails.dpdk.org (Postfix) with ESMTP id AE118410FB; Mon, 8 Jul 2024 21:14:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720466051; x=1752002051; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=84PKxWrgiwzz/F3C7iVRaw8iwlL94MuYDvyLa8Jk02g=; b=PjYflQ52w2lQ7KYnJ18URRo1m3BcRHqOcns4jE16tl4b7RZcQmCXjqWc PCVU9h2r9p87eAtPL6uxWD1l41SuTArCAa51yfK3CUb1floCxmVW2sqHT kYKB8LEQg4Mu0oqD388M02SFw04BW6m4KbyPqgebxoMjlSYJskom6aQ50 8V/Bl8I1Esl8yJj58y4cZ92VX/x1SFw6SlUNoLDt/XRfrIbMWXHHOPWHQ Pp/sX0yV0erZtc4hkKxy8no/ru41kc5QKbp8lBW8np2KkD+IEum/gfUTk bFkJSjfMukzSfo57uMOD0p1edWOhp2NbizSWStLoUBM0zrozdcYJiQgKW Q==; X-CSE-ConnectionGUID: tPjvAUNzSWSQKNMAo8ucGA== X-CSE-MsgGUID: zdOg2KGMRQ6XWv8TbzLPxg== X-IronPort-AV: E=McAfee;i="6700,10204,11127"; a="17640537" X-IronPort-AV: E=Sophos;i="6.09,192,1716274800"; d="scan'208";a="17640537" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2024 12:14:07 -0700 X-CSE-ConnectionGUID: Cb75iUWaREq+07nVbLtYUw== X-CSE-MsgGUID: Ik32vyXhQ4upE3C4whhMIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,192,1716274800"; d="scan'208";a="48332964" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa008.jf.intel.com with ESMTP; 08 Jul 2024 12:14:06 -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 , stable@dpdk.org Subject: [PATCH v1 1/1] drivers/baseband: fix device queues initialization Date: Mon, 8 Jul 2024 12:09:41 -0700 Message-Id: <20240708190941.120461-2-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240708190941.120461-1-hernan.vargas@intel.com> References: <20240708190941.120461-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 To prevent incorrect readings, initialize FFT and MLDTS queues to 0. Fixes: 089148fc3f09 ("bbdev: add operation type for MLDTS processing") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- 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 bb754a539580..19039ba4ece1 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); -- 2.37.1