From patchwork Thu Sep 21 20:43: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: 131808 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 028D74260E; Thu, 21 Sep 2023 22:47:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24C76402DC; Thu, 21 Sep 2023 22:47:01 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 871CC4029C for ; Thu, 21 Sep 2023 22:46:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695329218; x=1726865218; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2kh+xitBxlUfCSRW1SjRKT5vVSCXzIPjrY9jL8R1a/Q=; b=PE55R5SCAacc8HVGk3Fdl3hicmYvT4MoSW40D8Ntrh33kg9jOT0lIgFz 3L6FPqOUuWFiijBnMc77XODOD70psQ71D9D7WWEKfWVIhTr4FDoqa0bGO +/V9VM/FXXTLcQdJeybr4B/IWI1M0PIpMbH7h9AJ329l6NQH5HvBPVuIN /W+p0PeoLgrW+ERM/HmUeYt1bbkUaaClU35hY3n+wE8mC24CxF+gWIqdO sOHEsKT9JFLLBTJWD2Y+wVwO014PLRN5CzsBM0+k2exXTZiNMe7MMBi3i 097XMrz4m4GF/RdR1ha7cWioCiSa1YV9zYQdP+Bp3ZjGFuxphzhwTOa+f w==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="447138100" X-IronPort-AV: E=Sophos;i="6.03,166,1694761200"; d="scan'208";a="447138100" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 13:46:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="696907244" X-IronPort-AV: E=Sophos;i="6.03,166,1694761200"; d="scan'208";a="696907244" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by orsmga003.jf.intel.com with ESMTP; 21 Sep 2023 13:46:56 -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 v2 1/7] bbdev: add FFT version member in driver info Date: Thu, 21 Sep 2023 20:43:43 +0000 Message-Id: <20230921204349.3285318-2-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230921204349.3285318-1-nicolas.chautru@intel.com> References: <20230921204349.3285318-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 can be used to distinguish different version of the flexible pointwise windowing applied to the FFT and expose this platform configuration to the application. The SRS processing chain (https://doc.dpdk.org/guides/prog_guide/bbdev.html#bbdev-fft-operation) includes a pointwise multiplication by time window whose degrees of liberty cannot be exposed through a standard fixed API but through a hash matching a version of such window definition (not HW IP specific) defined as a long array of complex numbers. Using that mechanism user application can retrieve information related to what tables have been dynamically programmed on any bbdev device supporting FFT windowing operation. Signed-off-by: Nicolas Chautru --- lib/bbdev/rte_bbdev.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h index 2985c9f42b..e1ba038e0d 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; + /** Versioning number for the FFT configured on the device. */ + uint16_t fft_version; }; /** Macro used at end of bbdev PMD list */