DPDK patches and discussions
 help / color / mirror / Atom feed
From: Nicolas Chautru <nicolas.chautru@intel.com>
To: dev@dpdk.org, maxime.coquelin@redhat.com
Cc: hemant.agrawal@nxp.com, david.marchand@redhat.com,
	hernan.vargas@intel.com,
	Nicolas Chautru <nicolas.chautru@intel.com>
Subject: [PATCH v4 01/12] bbdev: add FFT window width member in driver info
Date: Thu,  5 Oct 2023 02:18:43 +0000	[thread overview]
Message-ID: <20231005021854.109096-2-nicolas.chautru@intel.com> (raw)
In-Reply-To: <20231005021854.109096-1-nicolas.chautru@intel.com>

This exposes the width of each windowing shape being configured on
the device. This allows to distinguish different version of the
flexible pointwise windowing applied to the FFT and expose
this platform configuration to the application.
This also add the total number of windows supported in the capability.

The SRS processing chain
(https://doc.dpdk.org/guides/prog_guide/bbdev.html#bbdev-fft-operation)
includes a pointwise multiplication by time window whose shape width
needs to be exposed, notably for accurate SNR estimate.
Using that mechanism user application can retrieve information related
to what has been dynamically programmed on any bbdev device
supporting FFT windowing operation.

Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
---
 lib/bbdev/rte_bbdev.h    | 2 ++
 lib/bbdev/rte_bbdev_op.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h
index 2985c9f42b..d12e2e7fbc 100644
--- a/lib/bbdev/rte_bbdev.h
+++ b/lib/bbdev/rte_bbdev.h
@@ -349,6 +349,8 @@ struct rte_bbdev_driver_info {
 	const struct rte_bbdev_op_cap *capabilities;
 	/** Device cpu_flag requirements */
 	const enum rte_cpu_flag_t *cpu_flag_reqs;
+	/** FFT windowing width for 2048 FFT - size defined in capability. */
+	uint16_t *fft_window_width;
 };
 
 /** Macro used at end of bbdev PMD list */
diff --git a/lib/bbdev/rte_bbdev_op.h b/lib/bbdev/rte_bbdev_op.h
index 693baa8386..369ac331bf 100644
--- a/lib/bbdev/rte_bbdev_op.h
+++ b/lib/bbdev/rte_bbdev_op.h
@@ -905,6 +905,8 @@ struct rte_bbdev_op_cap_fft {
 	uint16_t num_buffers_src;
 	/** Num output code block buffers. */
 	uint16_t num_buffers_dst;
+	/** Number of FFT windows supported. */
+	uint16_t fft_windows_num;
 };
 
 /** List of the capabilities for the MLD */
-- 
2.34.1


  reply	other threads:[~2023-10-05  2:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-05  2:18 [PATCH v4 00/12] VRB2 bbdev PMD introduction Nicolas Chautru
2023-10-05  2:18 ` Nicolas Chautru [this message]
2023-10-05  2:18 ` [PATCH v4 02/12] baseband/acc: add FFT window width in the VRB PMD Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 03/12] baseband/acc: remove the 4G SO capability for VRB1 Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 04/12] baseband/acc: allocate FCW memory separately Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 05/12] baseband/acc: add support for MLD operation Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 06/12] baseband/acc: refactor to allow unified driver extension Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 07/12] baseband/acc: adding VRB2 device variant Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 08/12] baseband/acc: add FEC capabilities for the VRB2 variant Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 09/12] baseband/acc: add FFT support to " Nicolas Chautru
2023-10-10  9:07   ` Maxime Coquelin
2023-10-05  2:18 ` [PATCH v4 10/12] baseband/acc: add MLD support in " Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 11/12] baseband/acc: add support for VRB2 engine error detection Nicolas Chautru
2023-10-05  2:18 ` [PATCH v4 12/12] baseband/acc: add configure helper for VRB2 Nicolas Chautru

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231005021854.109096-2-nicolas.chautru@intel.com \
    --to=nicolas.chautru@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=hemant.agrawal@nxp.com \
    --cc=hernan.vargas@intel.com \
    --cc=maxime.coquelin@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).