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 2FDCD4553F; Mon, 1 Jul 2024 23:26:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 15F7B402D3; Mon, 1 Jul 2024 23:26:54 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by mails.dpdk.org (Postfix) with ESMTP id C24FC4021E for ; Mon, 1 Jul 2024 23:26:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719869212; x=1751405212; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XwgwHhEyN3ohuReJEsXYGNwI9+7Gva8y7YgmFSvJiIk=; b=IgIvdCc+tshER2CEgiJE2eyhq4a6fFC5PjNUDYwZxlCshOV8lSiukpyo Lzdf24BPYsLjCBYRD8JJE5pDgpAJo3fVDhBl1tBobdLwVfiZVVcH8c89m dlxG5l3XBXyc2jUxeHc+z9NNzdiT9jXwUVHJeAdWioLk0HOvV2f7dr2+6 LaSKr0I08TzgNVKj+znhbB5aJAK2Cfrp9o0FP9S9SVlIZMv30Y0UE+UbH rLWz7ABA9ZRqiWcSl+g9SaqebgcoSXbGnS9b2iMy1rLgdVEQ56x1oYkxA 3k5M7halwyixLkN6X+IhYjsI+nKBoq9FirvUfjP5GkK8GyMEm4mgy35Ad Q==; X-CSE-ConnectionGUID: IEOUnYMvQ+WQ1+ZKOi6MVw== X-CSE-MsgGUID: lYG1u79RT42HCD+xMnfyDg== X-IronPort-AV: E=McAfee;i="6700,10204,11120"; a="20834734" X-IronPort-AV: E=Sophos;i="6.09,177,1716274800"; d="scan'208";a="20834734" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2024 14:26:50 -0700 X-CSE-ConnectionGUID: tCKv+8w1RMmD09anSRHr6Q== X-CSE-MsgGUID: CKi0pbfHQ5S5+l45kPzZbg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,177,1716274800"; d="scan'208";a="45559925" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by orviesa010.jf.intel.com with ESMTP; 01 Jul 2024 14:26:50 -0700 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hemant.agrawal@nxp.com, david.marchand@redhat.com, hernan.vargas@intel.com, Nicolas Chautru Subject: [PATCH v1 1/3] bbdev: new k0 parameter for LDPC decoder operation Date: Mon, 1 Jul 2024 14:27:01 -0700 Message-Id: <20240701212703.417094-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240701212703.417094-1-nicolas.chautru@intel.com> References: <20240701212703.417094-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 In latest 3GPP 38.212, the k0 value is not necessaraly directly derived from rv_index, in that case a value can be provided in API. When this value is non null this would override the value which would be computed purely from rv_index. Signed-off-by: Nicolas Chautru --- doc/guides/prog_guide/bbdev.rst | 2 ++ lib/bbdev/rte_bbdev_op.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/doc/guides/prog_guide/bbdev.rst b/doc/guides/prog_guide/bbdev.rst index 09e5f0d990..e3f356450b 100644 --- a/doc/guides/prog_guide/bbdev.rst +++ b/doc/guides/prog_guide/bbdev.rst @@ -1021,6 +1021,8 @@ The LDPC decode parameters are set out in the table below. +----------------+------------+-------------------------------------------------------+ | |eb |Eb, length of the RM output sequence in bits r >= cab | +----------------+------------+-------------------------------------------------------+ +| |k0 |Optional k0 Rate matching starting position override | ++----------------+------------+-------------------------------------------------------+ The mbuf input ``input`` encoded CB data is mandatory for all BBDEV PMDs and is the Virtual Circular Buffer data stream with null padding. diff --git a/lib/bbdev/rte_bbdev_op.h b/lib/bbdev/rte_bbdev_op.h index 459631d0d0..b5dde116ab 100644 --- a/lib/bbdev/rte_bbdev_op.h +++ b/lib/bbdev/rte_bbdev_op.h @@ -562,6 +562,10 @@ struct rte_bbdev_op_ldpc_dec { /** Struct which stores Transport Block specific parameters */ struct rte_bbdev_op_dec_ldpc_tb_params tb_params; }; + /** Optional k0 Rate matching starting position, overrides rv_index when non null + * [3GPP TS38.212, section 5.4.2.1] + */ + uint16_t k0; }; /* >8 End of structure rte_bbdev_op_ldpc_dec. */ -- 2.34.1