From patchwork Thu Oct 5 02:18:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chautru, Nicolas" X-Patchwork-Id: 132309 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 E1B3E426BB; Thu, 5 Oct 2023 04:26:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FE334028A; Thu, 5 Oct 2023 04:25:59 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 9CDF340283 for ; Thu, 5 Oct 2023 04:25:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696472755; x=1728008755; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Y50KlDTBX6Z+rSdmodYHsOyvk/Ayo8ZDhrO+Dm0SsXw=; b=Anv8FI85OCMhIo82i4P7pdh0r0iLzgr1WTrdqw+5gKxyWKUiPYy/K1ZP EDlfD0eGkGxQohJP10uZzjtS7dPV3Xe8H2QuFlNSf0cyXXhdykh64WeoK tB/s1GZt6qZ78vGdvX/U6qSmboCUbv10tzQJt/scr+3+FVe4dz7rnhGDH 6YwTC16FFDgKVq1DWsrtHZE2OKPookdc4TaBai9+dgFEFAeZOGVQ+kQi3 LktSfqLwCwxdFgb9sWlF7Ccw1U9EU2yZ2f/DomqTWpWwnx0Sg3YnIFwqZ 58MhxlTDxkiJSLULi6hp6lgtA7/eSK+qOOHSCMP0uQa2M8HhWCVKp0TUY w==; X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="363657667" X-IronPort-AV: E=Sophos;i="6.03,201,1694761200"; d="scan'208";a="363657667" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 19:25:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10853"; a="781063004" X-IronPort-AV: E=Sophos;i="6.03,201,1694761200"; d="scan'208";a="781063004" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by orsmga008.jf.intel.com with ESMTP; 04 Oct 2023 19:25:52 -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 v4 01/12] bbdev: add FFT window width member in driver info Date: Thu, 5 Oct 2023 02:18:43 +0000 Message-Id: <20231005021854.109096-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231005021854.109096-1-nicolas.chautru@intel.com> References: <20231005021854.109096-1-nicolas.chautru@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 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 --- 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 */