From patchwork Mon Oct 3 18:00:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Chautru X-Patchwork-Id: 117269 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 67834A04FD; Mon, 3 Oct 2022 20:33:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 502CA40E2D; Mon, 3 Oct 2022 20:33:38 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id B7FAB40041 for ; Mon, 3 Oct 2022 20:33:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664822016; x=1696358016; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EJkIT6BApg3oRsnDI/APyykL/nAsTpJqwkSj/06lToA=; b=jz+wa4J3BXpgXXRSnzJERnXGXK241+klxNiNinn9P1bZvb+/lUC3FCv2 2wlzP2UiQEUUZOSvR7QqPtak2BU9/qxBV811fPzhr9GmC+O43cbKIeX1j 6k4xXVGe8HRzkWAP1pueCwF1Zt1pfK9R+mo6U1VG1khWw9xTBVDbf24sP 3Oe4s4QHhpOvAA22RczH2xlssd2lffj9DX+XtnXpDyuNrREYE6D4UytWJ mFE7n9M7rpMwFgaVLF+fGeDuDe6eOt4Qyn61YutsED+j2Huw+w/ZZKpbH +LvvIqTUrwc+ddjI9qobko5IeAMlXdRonm4Y25MlxArMOH7Z8T/GowZ00 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="285907008" X-IronPort-AV: E=Sophos;i="5.93,366,1654585200"; d="scan'208";a="285907008" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2022 11:00:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10489"; a="618829384" X-IronPort-AV: E=Sophos;i="5.93,366,1654585200"; d="scan'208";a="618829384" Received: from unknown (HELO icx-npg-scs1-cp1.localdomain) ([10.233.180.245]) by orsmga007.jf.intel.com with ESMTP; 03 Oct 2022 11:00:34 -0700 From: Nicolas Chautru To: dev@dpdk.org, thomas@monjalon.net, gakhil@marvell.com Cc: maxime.coquelin@redhat.com, trix@redhat.com, mdr@ashroe.eu, bruce.richardson@intel.com, david.marchand@redhat.com, stephen@networkplumber.org, mingshan.zhang@intel.com, hemant.agrawal@nxp.com, Nicolas Chautru Subject: [PATCH v11 0/7] bbdev changes for 22.11 Date: Mon, 3 Oct 2022 11:00:16 -0700 Message-Id: <20221003180023.13362-1-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <1655491040-183649-6-git-send-email-nicolas.chautru@intel.com> References: <1655491040-183649-6-git-send-email-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 Hi Akhil, Thomas, v11: updated based on Thomas review notably on comments through the serie and ordering. Thanks. I have also updated rel_notes and deprecation through the serie this time. v10: replacing the _PADDED_MAX enum to _SIZE_MAX macro based on suggestion from Ferruh/Maxime/Akhil. Thanks v9: removing code snippet from documentation in 5/7 requested by Akhil. Thanks. v8: edit based on review by Akhil : typos, coding guidelines. No functional change. Thanks v7: couple of typos in documentation spotted by Maxime. Thanks. v6: added one comment in commit 2/7 suggested by Maxime. v5: update base on review from Tom Rix. Number of typos reported and resolved, removed the commit related to rw_lock for now, added a commit for code clean up from review, resolved one rebase issue between 2 commits, used size of array for some bound check implementation. Thanks. v4: update to the last 2 commits to include function to print the queue status and a fix to the rte_lock within the wrong structure v3: update to device status info to also use padded size for the related array. Adding also 2 additionals commits to allow the API struc to expose more information related to queues corner cases/warning as well as an optional rw lock. Hemant, Maxime, this is planned for DPDK 21.11 but would like review/ack early is possible to get this applied earlier and due to time off this summer. Thanks Nic Nicolas Chautru (7): bbdev: allow operation type enum for growth bbdev: add device status info bbdev: add device info on queue topology drivers/baseband: update PMDs to expose queue per operation bbdev: add new operation for FFT processing bbdev: add queue related warning and status information bbdev: remove unnecessary if-check app/test-bbdev/test_bbdev.c | 2 +- app/test-bbdev/test_bbdev_perf.c | 6 +- doc/guides/prog_guide/bbdev.rst | 103 +++++++++++ doc/guides/rel_notes/deprecation.rst | 13 -- doc/guides/rel_notes/release_22_11.rst | 14 ++ drivers/baseband/acc100/rte_acc100_pmd.c | 30 ++-- .../fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 9 + drivers/baseband/fpga_lte_fec/fpga_lte_fec.c | 9 + drivers/baseband/la12xx/bbdev_la12xx.c | 10 +- drivers/baseband/null/bbdev_null.c | 1 + .../baseband/turbo_sw/bbdev_turbo_software.c | 13 ++ examples/bbdev_app/main.c | 2 +- lib/bbdev/rte_bbdev.c | 57 +++++- lib/bbdev/rte_bbdev.h | 158 +++++++++++++++- lib/bbdev/rte_bbdev_op.h | 169 ++++++++++++++++-- lib/bbdev/version.map | 12 ++ 16 files changed, 560 insertions(+), 48 deletions(-)