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 BC413423BA; Thu, 12 Jan 2023 20:36:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AAA0342DD9; Thu, 12 Jan 2023 20:36:20 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 1D29D42DAD; Thu, 12 Jan 2023 20:36:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673552179; x=1705088179; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ikDm4nGunVdicRPn+qF+AGHSLA4LeyLY2H5EKzxeqtY=; b=MdApj/0EQqvcs6TRvadZXbCUk7DC7hPg5wJC8o724i7nYF6B/fu4daPr KAoWORzyp7V9z6lhPUWNGjhFHStLi5KiWo3tfgMpLKv2CK/dm8iECqORp WN9+3JSbaP5Eb+6az+vK79aIK1HktZJ9xCzn8zZhfdU5HynmwrDxi246f S20evy7dJKd1lcTb4bBw11tnHO4BQBAhHVppRRUh+ubmm/W++2I2+MwBs b1uT9rYyzvgZYzi3TedKLdF5BPC0TQp+RRvNzyS/0iXrd7tcFtqSuy47P 9QrNzHlndTg39EnNQafkXNzPPPfbvz1CuaefI6mMKaiZmuSal6/NaFHK4 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="322502815" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="322502815" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 11:36:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="690245071" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="690245071" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga001.jf.intel.com with ESMTP; 12 Jan 2023 11:36:17 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas , stable@dpdk.org Subject: [PATCH v3 2/7] baseband/acc: acc100 fix iteration counter in TB Date: Thu, 12 Jan 2023 11:36:04 -0800 Message-Id: <20230112193609.273578-3-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230112193609.273578-1-hernan.vargas@intel.com> References: <20230112193609.273578-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 Use ldpc or turbo iteration counter based on the operation type. Fixes: 5ad5060f8f7 ("baseband/acc100: add LDPC processing functions") Cc: stable@dpdk.org Signed-off-by: Hernan Vargas --- drivers/baseband/acc/rte_acc100_pmd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index 146a22bd64..a00314c957 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -4033,8 +4033,12 @@ dequeue_dec_one_op_tb(struct acc_queue *q, struct rte_bbdev_dec_op **ref_op, /* CRC invalid if error exists */ if (!op->status) op->status |= rsp.crc_status << RTE_BBDEV_CRC_ERROR; - op->turbo_dec.iter_count = RTE_MAX((uint8_t) rsp.iter_cnt, - op->turbo_dec.iter_count); + if (q->op_type == RTE_BBDEV_OP_LDPC_DEC) + op->ldpc_dec.iter_count = RTE_MAX((uint8_t) rsp.iter_cnt, + op->ldpc_dec.iter_count); + else + op->turbo_dec.iter_count = RTE_MAX((uint8_t) rsp.iter_cnt, + op->turbo_dec.iter_count); /* Check if this is the last desc in batch (Atomic Queue) */ if (desc->req.last_desc_in_batch) { -- 2.37.1