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 43AFA43284; Sat, 4 Nov 2023 00:52:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A47140EE1; Sat, 4 Nov 2023 00:52:31 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 8366940281; Sat, 4 Nov 2023 00:52:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699055547; x=1730591547; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YX+Mb2c4cMCVO7rjucNIm9BiBwJy/MlOH+nFcp0OVjg=; b=SV6B9lL6f2sGQBGXqF3+yaam7YWxPymqxp9SMlxYQuYq/ryg4+nYrAi2 BS4PuwnNx3U0K7Y+4Vc2Fo/X6Y/s++OH/eDhsnV6C/AHBOhs5+obuBckE tzNpGESereF0CN9El58uk0MXrBZJ1V7HEHP4TZfCLcHt7N/g9dZy7BAH4 t6hcVVZSEyPZ+jR0FOjYPcgnUdakH7nWzC6ofJbv+cu+gzYX3UllvuSF7 XpMx3Op/6sHcCCr6JioMSNbvpnUKtG15loLUX+f0m/4Lw/ppiDy+hfxbQ /Z0JHtgrPI4wFa+QNk+yd3VlUx9uSipT1OiHIPV4xN3/IKRlF5MF3dBno A==; X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="392931806" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="392931806" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 16:52:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="1093225694" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="1093225694" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmsmga005.fm.intel.com with ESMTP; 03 Nov 2023 16:52:25 -0700 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hernan.vargas@intel.com, stable@dpdk.org, Nicolas Chautru Subject: [PATCH v1 1/1] baseband/acc: fix for TB mode on VRB1 Date: Fri, 3 Nov 2023 23:45:12 +0000 Message-Id: <20231103234512.758086-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231103234512.758086-1-nicolas.chautru@intel.com> References: <20231103234512.758086-1-nicolas.chautru@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 The input size is computed incorrectly for the LDPC encoder TB processing. Fixes: e640f6cdfa84 ("baseband/acc200: add LDPC processing") Cc: stable@dpdk.org Signed-off-by: Nicolas Chautru --- drivers/baseband/acc/rte_vrb_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/baseband/acc/rte_vrb_pmd.c b/drivers/baseband/acc/rte_vrb_pmd.c index ae230b828a..686e086a5c 100644 --- a/drivers/baseband/acc/rte_vrb_pmd.c +++ b/drivers/baseband/acc/rte_vrb_pmd.c @@ -2218,7 +2218,8 @@ vrb1_enqueue_ldpc_enc_one_op_tb(struct acc_queue *q, struct rte_bbdev_enc_op *op uint16_t init_enq_descs = enq_descs; uint32_t in_offset = 0, out_offset = 0; - input_len_B = ((op->ldpc_enc.basegraph == 1 ? 22 : 10) * op->ldpc_enc.z_c) >> 3; + input_len_B = ((op->ldpc_enc.basegraph == 1 ? 22 : 10) * op->ldpc_enc.z_c + - op->ldpc_enc.n_filler) >> 3; if (check_bit(op->ldpc_enc.op_flags, RTE_BBDEV_LDPC_CRC_24B_ATTACH)) input_len_B -= 3; -- 2.34.1