From patchwork Thu May 2 20:45:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hernan Vargas X-Patchwork-Id: 139813 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 E92F443F6C; Thu, 2 May 2024 22:49:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB3D240648; Thu, 2 May 2024 22:49:27 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by mails.dpdk.org (Postfix) with ESMTP id AA232402B2 for ; Thu, 2 May 2024 22:49:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714682961; x=1746218961; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EwEUd5PRKrOy996xMNT+c86MND6U9DDV98j6nYuHNck=; b=dPVz/K89hCOh36ynRhJniZ3exEbIr8dhpFMNHnc69E8eQR4ujygOM/63 34+BbwT34EZW0gL3D+l64A0JtCM7pKlh94JsjU7CQu9fhcvWxd4NCT/+U QqthGV3PfFp63/YSdy1KnK91pRB0PnUPCqeh0KpFmyP2GxxfHUYoCXaqj 4/BcRJ4aK38+k9+b3XNMXSr7XxDFzUXww1ugdos3TVGsDljOXvN27VYUx VkyMSltSxDfdJ4rKgFtsyaUUlz0qLqZpSIJ5ZMW1Gg6WhoO5guYPFovXW xRl2pCdQ2K1IvJNF4ZYoXaqZUfGZiKf0kez2POchsLUWAo5CNNOvfcj6O Q==; X-CSE-ConnectionGUID: IA5ylBwJSQOMhFrEjAdwBg== X-CSE-MsgGUID: 8UHnKFoDS+aOp+a/SB9Ddw== X-IronPort-AV: E=McAfee;i="6600,9927,11062"; a="21032759" X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="21032759" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 13:49:19 -0700 X-CSE-ConnectionGUID: iNZJ3Dh6Souq4j+zL/uLjg== X-CSE-MsgGUID: TKiY+nH7ThydF6XxP0KTig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="27838134" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orviesa008.jf.intel.com with ESMTP; 02 May 2024 13:49:19 -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 4/5] baseband/acc: improve error description Date: Thu, 2 May 2024 13:45:47 -0700 Message-Id: <20240502204548.236729-5-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240502204548.236729-1-hernan.vargas@intel.com> References: <20240502204548.236729-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 Remove dead code for error and update description of one error print. Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/rte_acc100_pmd.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index f37722879c20..8ec521675f34 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -1152,7 +1152,6 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, uint16_t harq_out_length, harq_in_length, ncb_p, k0_p, parity_offset; uint32_t harq_index; uint32_t l; - uint32_t max_hc_in; fcw->qm = op->ldpc_dec.q_m; fcw->nfiller = op->ldpc_dec.n_filler; @@ -1222,21 +1221,6 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, fcw->hcin_size1 = 0; } - /* Enforce additional check on FCW validity */ - max_hc_in = RTE_ALIGN_CEIL(fcw->ncb - fcw->nfiller, ACC_HARQ_ALIGN_64B); - if ((fcw->hcin_size0 > max_hc_in) || - (fcw->hcin_size1 + fcw->hcin_offset > max_hc_in) || - ((fcw->hcin_size0 > fcw->hcin_offset) && - (fcw->hcin_size1 != 0))) { - rte_bbdev_log(ERR, " Invalid FCW : HCIn %d %d %d, Ncb %d F %d", - fcw->hcin_size0, fcw->hcin_size1, - fcw->hcin_offset, - fcw->ncb, fcw->nfiller); - /* Disable HARQ input in that case to carry forward */ - op->ldpc_dec.op_flags ^= RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE; - fcw->hcin_en = 0; - } - fcw->itmax = op->ldpc_dec.iter_max; fcw->itstop = check_bit(op->ldpc_dec.op_flags, RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE); @@ -1286,8 +1270,7 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, fcw->hcout_offset = 0; if (fcw->hcout_size0 == 0) { - rte_bbdev_log(ERR, " Invalid FCW : HCout %d", - fcw->hcout_size0); + rte_bbdev_log(ERR, " Disabling HARQ output as size is zero"); op->ldpc_dec.op_flags ^= RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE; fcw->hcout_en = 0; }