From patchwork Sat Apr 24 10:36:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 426811 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2062140jao; Sat, 24 Apr 2021 03:38:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJhesF6aRsqmpOKw2sO+alXCXI/72xf8GvK3NrmASPCLcDOMmSQylCfmbJRNleuwlMb3if X-Received: by 2002:adf:8b02:: with SMTP id n2mr9929337wra.259.1619260709762; Sat, 24 Apr 2021 03:38:29 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id c9si10939099wrr.27.2021.04.24.03.38.29; Sat, 24 Apr 2021 03:38:29 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=Nicl7Kna; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA011406FF; Sat, 24 Apr 2021 12:38:28 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20040.outbound.protection.outlook.com [40.107.2.40]) by mails.dpdk.org (Postfix) with ESMTP id 960F940693 for ; Sat, 24 Apr 2021 12:38:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I4u9euu25egHrCbGD6lPIgpCtzFzCkkg/hbh2NolOxpjQy9CKpIRAi3ynRalCMcp8urPSXcpfkhSNF32KoMZ+RdDiTLw1hM9/qTziXoyi8ac01IE+SVWJFCDOwvkUTtqiYHd9i9ykDPAors8VdF2oNcTrZy50q6e6mJuTwnnJZ7mZqqQbardbBuL8Vf/z7PmasjGtVJ5ath7/O9ZexRs6xvDAqzowKMp1wg9lvBvJUsQ1kCPOgDHlHiOns1phJO+3v8kCD5gAqolc1+Mm1q2m3f8oSVdiYKU77W/ctjZil3Tnug4xHIvBqOmZiN68/0wajeZygtd60E4B5ikIWLx2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2BkbfctmkM4pU5tp3S7lxRm+mU12bDBLKUXupm8ys70=; b=finuDjd6or+ChtjMEb5yay88ausQWrfIXxz6zigv4jhEWe2z/KgxBG4EZDMpsogChfVqSWfyoeifQGY5kW+R5A+UX2Y3CBVudbYpeWLnfWNJe/D1h7eN302RAy7CxuZZNoxXiz44xxLAaDq6PwWbUzGopX+8cr+Z7hY82bteGV5ILZYhhOau73ocHbTraxK3s5lae6SBlWghjyU91R5FHmwBYglMdzudWLN6zxgrA7++rEouDD7L/gzJz1ZWj6iyIgZBMivt2UvWJK20kpSW+5rMGLjJGvrQmtMFNodbqpKHQ1JB4jbYYdNiW5lWnN8xAxB7hQhLYSqrwAM2Mxm2JA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2BkbfctmkM4pU5tp3S7lxRm+mU12bDBLKUXupm8ys70=; b=Nicl7KnamJuBKlcpP8yd54eY+MmI5ZnqgwHbfzjZC7vr+umHOCoX0Jo9B9oSaScwbReUyAIS55l6k5TZw0AMm2M/kLzM2oL43uzQRG4NmsEbrwsLQXH+n3l9DzzY2MrsBGhn1/y96CED/ZYI9t07t7B3exiX7CghqHtXVO1j/zY= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) by AM5PR0401MB2564.eurprd04.prod.outlook.com (2603:10a6:203:38::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Sat, 24 Apr 2021 10:38:26 +0000 Received: from AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55]) by AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55%6]) with mapi id 15.20.4065.023; Sat, 24 Apr 2021 10:38:26 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com, nicolas.chautru@intel.com Cc: david.marchand@redhat.com, Hemant Agrawal Date: Sat, 24 Apr 2021 16:06:52 +0530 Message-Id: <20210424103700.8098-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210413051715.26430-2-hemant.agrawal@nxp.com> References: <20210413051715.26430-2-hemant.agrawal@nxp.com> X-Originating-IP: [92.120.0.67] X-ClientProxiedBy: HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) To AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Sat, 24 Apr 2021 10:38:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d63c9780-04cf-458e-22be-08d9070d1725 X-MS-TrafficTypeDiagnostic: AM5PR0401MB2564: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gpEKU3inPh5HCFrPguqcTG+8he0b4oIP6u9U1BcMNEB0SLHuoGiHjyakxs0iVqYubp++ryvE77oYuJgIiHoyBB7fY4IZ+j0sRy6tMCwcrrCKYuHwpSTW2Zs0am3EJERtwNsG2HnPiXKNyfTxR5j6Yv6oP9EyZOPpxlDkbMuzQiqozMQzh/dszSg+JFbhEYWVDXXcQ0s8+E/PscQK5sdZOQUk4o9Ct8aXD3zU/itla7jBuUH636PbZjD+3k3pA602DRo7aJRw3FG0pVmt1HUPFwdNRyfZmS6bUugVbjkfnccxG1NrqpT6YzrofhrLyBSjPklbAQ5Drt+kp57ta3BgUCwkv9eMwo2RVnUyvzrWj+5s+HHI+z7bvW9uMO2HGRbRRAlap0eJgiKlrtNahzg4ihBBiLDgmyfPwRg3bNs0kSbKVnu5MwEmlAvciXMYDiz6u8EIIw0dsOBfX+EqKIM/kmtKk11ffSVxgMCY/7QvfeuFQlxHO311x77NCvEp+G+PtjsUXE+6vea9Sx4nkYszBPcipUjaFgjqtkntEkPw6O0CoDvGnGiREQkWoU+xOYoWkEKXCT5Vd10CJ3X/gBpNcjxQqaMXQhO/GetK2CW95aGrBqmwLjfoM3gPNfxseAzU/hNwL0iLbtyJ7/cSgbKdHqlQjDyZemgfso1ASMT9FHo= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4456.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(6506007)(5660300002)(38100700002)(1076003)(52116002)(44832011)(316002)(38350700002)(4326008)(478600001)(83380400001)(2616005)(956004)(6486002)(6512007)(8936002)(36756003)(86362001)(66946007)(2906002)(26005)(66556008)(66476007)(186003)(8676002)(16526019)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: mGUPChZ9niH+/xKMhtLo7rSHTM8F/jMn54s1H+4Z0LnOICPVZK1ahDa/ZC1odfOevd7mIZho3hnjczR7rMcfeI07+z7Rz8TFBNF8hHiDX6Dm1KYwN8Jxf8Tl2a2HCGLywZ0qQO7qIPTRZHPFzLaL6YDC4tqjtKOLKuee47/ei0QYguIhunTq+tC2FzXb//yJXKkALw/AKNPbYF/voKbfAAZwgj97C23fdMl74ysErUPWcfOTR9kulQmHH4XaizqhyDje2WkXa4kNHtl2MvctfzGyitRGQEnypfqjUQ4yO/cb5VxCgIWrp4rffpGjM4KONOH3R+nUK/a3bxkUlpmmtAoS83Thhe02jQzg84g/o7dGW4RUe9kzwfonD9pUl4lCwXcWkHpx1eZdhQqyukvXk2pLEseOkNMX/W8nHvjXwxu/Z3+iG63oSCRZvv5/vjsJi8Xq16fbRvnYo4xo0O8xLZb//jy2ioi8RE3VVyUwgmmW5upiJ/H4Vp2YLkGfE0Gu+W3MhSO9myc8s55WuedBnIMONdF6HSPvA/S8vovSDG/Hd6Nu4baf+dQtrcR0opUFXr9/C0Z0DZZ06JeTxUGbLy2VrxjXQVs9UV8yZ4zEL+PSMj4vjt2PY74dAayWtJmG7vK6KMdttGuy5oWOgsSLSJOZFhr9XI3/Dzif8QKjCHobZpuC/UhZBL2uA0KlZZ8oADnInN2VDHfPITdJ2quRqAeDJFHcdwSULDS11SDVE2g4WF/fsXOMysTyREaYgGMwTbsKJCL7ATQttZWRGRXzindOKT7KlJ5LncaYUBo7ke5/X6ttV3i1075Ayq9wwyyc88090YLsUQELaVdlIj+QAYMIyd7e//FBohPvt7sQUwNOYFHiL/kISY2KWP6bj51VjRCvQbBio54Q8CgR8jNQa4nXTCiVHd1LnUaPH7/q9fHh8SdSU9GDPG7PZMQ4LAsfw42VlvcGxMCFw6ZHeWrdr3ZJ9Bu50yuVgxL1ksrzIPqnDGW8+9BWUd1VpbkmtsUBwF6z68yKx6lIXMvH2bjr8/pDDvDpP77u+v/NibxSJiT5a8vRU8GexiGtM/gqibLR9hbSYHnPrkbGpwM/4taqxEH0oP7j7SpGePRayNv3qOILLrLy8iH2OpdEMYRAJqSnzurCwNxyRb3nMsSpBYTJpBO8xo9z8LV0qtX/NizX6ZpEO9IXZ8sULwSZMyTDBIw6p/qovV5S6WNrntdSgEKaiw3JtZ7sPeXTonTtYYI0DVjORWuOWkRstibxbcEfsyHG9FKPWK25rdIG4vLcdgDrccQV84DePi9Xoq38f7/XWmBz8z2G8vETmVm24xTalN0Z X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d63c9780-04cf-458e-22be-08d9070d1725 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4456.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2021 10:38:25.8991 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +wkyu3Ttr3QwZKX7q9HkaUn3HPcHhivXOtfQyWUY0Uh1ADP/nrbRCOBQVFtweHYnw3m35/MoFd0ndS/6ki94Cg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2564 Subject: [dpdk-dev] [PATCH v4 0/8] baseband: add NXP LA12xx driver 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 Sender: "dev" This series introduces the BBDEV LA12xx poll mode driver (PMD) to support an implementation for offloading High Phy processing functions like LDPC Encode / Decode 5GNR wireless acceleration function, using PCI based LA12xx Software defined radio. Please check the documentation patch for more info. The driver currently implements basic feature to offload only the 5G LDPC encode/decode. A new capability has been added to check if the driver can support the input data in network byte order. Two test vectors are also added as an example with input data in network byte. v2: add test case changes v3: fix 32 bit compilation v4: capability for network byte order, doc patch merged inline. Hemant Agrawal (7): bbdev: add network order data capability baseband: introduce NXP LA12xx driver baseband/la12xx: add devargs for max queues baseband/la12xx: add support for multiple modems baseband/la12xx: add queue and modem config support baseband/la12xx: add enqueue and dequeue support app/bbdev: enable la12xx for bbdev Nipun Gupta (1): app/bbdev: add test vectors for transport blocks app/test-bbdev/meson.build | 3 + app/test-bbdev/test_vectors/ldpc_dec_tb.data | 122 ++ app/test-bbdev/test_vectors/ldpc_enc_tb.data | 60 + doc/guides/bbdevs/features/default.ini | 1 + doc/guides/bbdevs/features/la12xx.ini | 14 + doc/guides/bbdevs/index.rst | 1 + doc/guides/bbdevs/la12xx.rst | 127 ++ doc/guides/prog_guide/bbdev.rst | 6 + doc/guides/rel_notes/release_21_05.rst | 5 + drivers/baseband/la12xx/bbdev_la12xx.c | 1099 +++++++++++++++++ drivers/baseband/la12xx/bbdev_la12xx.h | 51 + drivers/baseband/la12xx/bbdev_la12xx_ipc.h | 244 ++++ .../baseband/la12xx/bbdev_la12xx_pmd_logs.h | 26 + drivers/baseband/la12xx/meson.build | 6 + drivers/baseband/la12xx/version.map | 3 + drivers/baseband/meson.build | 1 + lib/bbdev/rte_bbdev_op.h | 8 +- 17 files changed, 1775 insertions(+), 2 deletions(-) create mode 100644 app/test-bbdev/test_vectors/ldpc_dec_tb.data create mode 100644 app/test-bbdev/test_vectors/ldpc_enc_tb.data create mode 100644 doc/guides/bbdevs/features/la12xx.ini create mode 100644 doc/guides/bbdevs/la12xx.rst create mode 100644 drivers/baseband/la12xx/bbdev_la12xx.c create mode 100644 drivers/baseband/la12xx/bbdev_la12xx.h create mode 100644 drivers/baseband/la12xx/bbdev_la12xx_ipc.h create mode 100644 drivers/baseband/la12xx/bbdev_la12xx_pmd_logs.h create mode 100644 drivers/baseband/la12xx/meson.build create mode 100644 drivers/baseband/la12xx/version.map -- 2.17.1