From patchwork Thu Oct 5 19:48:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chautru, Nicolas" X-Patchwork-Id: 132333 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 377C8426C5; Thu, 5 Oct 2023 21:56:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E85D24067A; Thu, 5 Oct 2023 21:56:08 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id DD1484014F for ; Thu, 5 Oct 2023 21:56:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696535766; x=1728071766; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Y50KlDTBX6Z+rSdmodYHsOyvk/Ayo8ZDhrO+Dm0SsXw=; b=iGMIBZk1BFYNKq1XFAq614alUR9/QniRMryZskuv02iMxoI42IAHI7zS dZRAH21exi85asY7SStJ72G0MKYIenuSedvn30GVWLiAjTNqv/v7ikHFf VMAPkL3ZnaczkH+X5/RWgKR9dZrBcLiDgZhPEBzptqihqCEzRe9SI5Cpu wbazGBbvTaCLbEJAsknnQnUn5ltJLmCM9Cu7JcdZ2faIpCHCEuJH1+vvm 8OduPG/NuxSGhy1kXBjpdecps7cSGXJVNnptNQ82dIVgZRtnLoHfmoufl SUj5pwFWKpq6mr+QOaF1xqoS/SeIYAlrr0ctvXDUJ4yOVLhtMcS/iNI7I g==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="386432632" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="386432632" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 12:56:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="755600262" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="755600262" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by fmsmga007.fm.intel.com with ESMTP; 05 Oct 2023 12:56:03 -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 v5 01/12] bbdev: add FFT window width member in driver info Date: Thu, 5 Oct 2023 19:48:56 +0000 Message-Id: <20231005194907.557517-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231005194907.557517-1-nicolas.chautru@intel.com> References: <20231005194907.557517-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 Reviewed-by: Maxime Coquelin --- 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 */