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 70A4DA00C2 for ; Thu, 5 Jan 2023 22:49:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 601B042D2C; Thu, 5 Jan 2023 22:49:46 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 6F9F040A82; Thu, 5 Jan 2023 22:49:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672955381; x=1704491381; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Y6GNgI5WaUjcZfze+Etw1l/KX97trqHIHP081L3KUKM=; b=XPxmdifNcoYoM4uYY+h85CJlJwTHmmJy3o29NljPVnJl+SGjUQniBWrl DNov9OgxOkXZTyKnrg77ID2Z5If6v5s5axnswvFz2SmhAb4w/q9zfwBHE l8BHVpArI+y3PsUfg5x4TP1jeGNCKwmduhUS7w3PZGCnCV5h1Ibc8OJfc LlIV6aIGQvhvnm+5R5iXvC0zo0OkqJF5oMLWi+/Zf0prNklc/dbcffRcl uXLVqlatE0oYXyDPDM/4B6O9dL3/KLqpG0MB1ipuR8lwMjZbPfcOQ6E7E TW6/ibAboh9JXblNePZE33wbvpjYh+JID4WaLlCYW+P/D5Nu4ZyibXgvG g==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="302700470" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="302700470" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 13:49:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="686264709" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="686264709" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga008.jf.intel.com with ESMTP; 05 Jan 2023 13:49:36 -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 v2 2/7] baseband/acc: acc100 fix iteration counter in TB Date: Thu, 5 Jan 2023 21:44:38 -0800 Message-Id: <20230106054443.199473-3-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230106054443.199473-1-hernan.vargas@intel.com> References: <20230106054443.199473-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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 0177a9e0ea..d77d3b77b5 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -4035,8 +4035,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