From patchwork Sun Sep 12 12:15:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nipun Gupta X-Patchwork-Id: 509483 Delivered-To: patch@linaro.org Received: by 2002:a02:8629:0:0:0:0:0 with SMTP id e38csp2954840jai; Sun, 12 Sep 2021 05:15:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOT5dhhoxzlVn2ecz/nKZB0WJqOso5U/uGbBXTh+UcWkCCQLXsrngOKtouInCzvGZdj6JE X-Received: by 2002:a17:906:478d:: with SMTP id cw13mr6960672ejc.227.1631448939831; Sun, 12 Sep 2021 05:15:39 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id b25si4219274edr.544.2021.09.12.05.15.39; Sun, 12 Sep 2021 05:15:39 -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=pfl7ngCc; 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 CD30D40041; Sun, 12 Sep 2021 14:15:38 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70087.outbound.protection.outlook.com [40.107.7.87]) by mails.dpdk.org (Postfix) with ESMTP id A37B84003D for ; Sun, 12 Sep 2021 14:15:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GqfIOCKLac/oPqVANYWWH1lfHhbbSqreMWPNEDyutsz8opBqJ4Q8V5p0QpjxYeeIQgmkDft6C900BFgBhvELjTqBHA9fW+tbK9w7eYbE+BEBby0CYTc5EsSvGbk6gDLVEprEdJuXMZfoyOxVKlBqZBJM4J8UZD7iGnDrU5g671KivO6oGvgx27kCJ/LxEdTUA7+KEFGoIC7puCGC9+jI2UJynjc7AqB7aR63Qa8r2qukgKM3ZK95CFZ7A3ND9pIaLS5F0fvPbaAphykmLg7McP33DSsA7RxhfpNzTTWYyS7yY4+Gt6k8WUMZl/ffJsj6wyrdAu/SLRCSDGi6KStXmw== 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; bh=TgPidIQM1AK5DHyLcCSCqG6DYJaWE0o1gupZOtksZvQ=; b=YRmdoUisfhXQTMZMZJgtDS0Cq85zDg78r0O3pan0qvhFsp2kzb8hrwazy7/Wv+BonaC8auekC46iDfEaoadxTFD75bTvOK41nGus05UzPf9Xk0P84uDkaZpueWtkEGxiX++kpiGuripCox+IItd9Kv8pFKu+TciSjSAh0B+INnvcQuhmvG8t95UmtepZWgtLVyKnr8DLi4Fve2mS1+JiJ7HSoTa/HtAsxd4GtAfvRJPpOoLdsJZkjfTk8aWvOe2jEtRE9sZWDuTJ+8oE+EgaHMgx879vIsBhBR0HVyEQeHDuqocFa8vrYZGAAAU4Z5Lz0k2IKHe8gzLfj+iZRrwf8Q== 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=TgPidIQM1AK5DHyLcCSCqG6DYJaWE0o1gupZOtksZvQ=; b=pfl7ngCc8pH4j372yPBjw4iyBIGOzoxfAJbZVhdWfZ470ork7gfHvCIiGzFWpYPk5TnRALC0xy5+XA2lhvs+mcVgix9YfcYwOsENZVIJlfSWjvBmNtYpxXQAfR4xM+GOenF2dtYAgGOZ5vtezeTOrW0g3XBUpE1jKfkgoQgcxE0= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8429.eurprd04.prod.outlook.com (2603:10a6:10:24e::23) by DB7PR04MB3962.eurprd04.prod.outlook.com (2603:10a6:5:1a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.18; Sun, 12 Sep 2021 12:15:36 +0000 Received: from DB9PR04MB8429.eurprd04.prod.outlook.com ([fe80::dcda:93c2:47e7:19b4]) by DB9PR04MB8429.eurprd04.prod.outlook.com ([fe80::dcda:93c2:47e7:19b4%9]) with mapi id 15.20.4500.018; Sun, 12 Sep 2021 12:15:36 +0000 From: Nipun Gupta To: dev@dpdk.org, gakhil@marvell.com, nicolas.chautru@intel.com Cc: david.marchand@redhat.com, hemant.agrawal@nxp.com, Nipun Gupta Date: Sun, 12 Sep 2021 17:45:01 +0530 Message-Id: <20210912121510.22699-1-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210318063421.14895-1-hemant.agrawal@nxp.com> References: <20210318063421.14895-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR0601CA0003.apcprd06.prod.outlook.com (2603:1096:3::13) To DB9PR04MB8429.eurprd04.prod.outlook.com (2603:10a6:10:24e::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03274.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR0601CA0003.apcprd06.prod.outlook.com (2603:1096:3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Sun, 12 Sep 2021 12:15:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ecb27c60-6d83-4433-e262-08d975e706b9 X-MS-TrafficTypeDiagnostic: DB7PR04MB3962: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5jE7aLV/voj/9ik8ELPm0OqiTCeCntS7mO7zns91dSWnIn/bvTHugEij8SNVC2TqKccD6iBng9ebAXAVDGmxmPrxD7CLVc+v9o2C/0bwP9cNzKxz1XqHQsQohXXMGDDmb3ASB/hjC6bS04/498YPFtkZp2sdo1946SjN26jEQ5Fk2yj5fmrQ5k5Ph4fSB1JZcOKX/XCmyQScOCTbAtJUZyM8Yq9Z+4SFCKs4PsFU34sRexzFD2w82bBBB0SJUaZ7ZkFIkVs96YMdM3+vNFEd1ORqe8sdUdAHUt2zwm2TBLG8YkgSPCKOWQaEJVRjrPhZt4zsf/Tac7abNv+lc4+Fz8XuQGiP4DDcWBqAcZXu/my1XU6k5+/EUHnAhOfxnxo0/D/2IbWNx7/bqejicmtj6PFCFO/HS4m40+3T5lazTGVeag50/Rgjd85vr0wRob2nKrSmdLUHCAAlUplt69KDBM3N18UNxBfAWRH3dcqgf7+coCDWXM9v+kdU0kewtRr/ArzCy32+8ULNhzYZOGXocCTdeEY9JhSM7VJ+YT3+IFTlDBCjadjYww5g43zraHTaTx3YeT2W2MzjCuNjFO5aVhl3asbd9bYcq4+hd/D3iEabO1Ra/nTbTwxCOKwp+ZyOne9dq15PydPBw4PWZ5kkS/zdMi23LG7tMCly0E4cNI5sg4ST7kmyPzSeJqpkRrNaRzkcVsyVSw1VF5onMuedSqez+46WF4P9mQC+vXR6UpM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8429.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(2616005)(83380400001)(8676002)(956004)(66556008)(66476007)(316002)(7696005)(52116002)(508600001)(38350700002)(2906002)(66946007)(4326008)(55236004)(36756003)(26005)(5660300002)(38100700002)(186003)(6666004)(1006002)(6486002)(44832011)(8936002)(86362001)(1076003)(110426009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gLu2uIsfbRLr4UTFL0QE1MAfu5yrQgHmY9+Z9Q8a9Twk/vwZKhmCIJW4uZYOKakJcaQiDNv1Gm1BVRyGrs3a7FPD3g1f2sdsCEmtEZ/e4PgOr0tAzZevmj3K10r/jCZ3jFNTDANItUb036uYB5FKLip6tBi1P3akoo6FAJpWon3yjFspHcTsQlOmqU9N6X/IARFs87AOlKFl9XdjDQL9GyZHl29zUXn/SZFvDw99x8t/cKzuHKwH5GFB07/cLnJJOjYABxkSn5mHZ7TSKEtnWKNns/2krA+e6UAQdgqGgJhtzE/YeqdOpkfWRwH9yk+pK9PT0fR/jXOfw0+5rbNVVotoGIj8pQRQJtCO2dWlHXcfTJw1WKWDQXRijx8JNnxCkpx/lnb6eErU+FUq53m6rvsSR5+NHNMum43wbned4TV5StxpNHIi7ItiKeXj+iiXbyv/tMR3q+ddUFE1RLfCUrpgmoUHDRzpponKWAyEgTQMNqLzWHz3tyIIMjoGx/RJXx2Jqbq3tF3+RXniQC2YcuAux+CtOEv2aQmn65fxSWJ4HE7enmH3v2UT0PZJYUb88s6XuNYJG/GpGj9EA/oXL4WyshIc21frsYPkzT35SGa0s1LQzZ2RJYr1+LF2qm+237yNbWjkyZjdUs8Jo2+TrhgIt1E3Cdxa2OsXkU2eQuDHFZLaGu5QMJhpSauiQKlyjRRMBe9hdTwkOCxfRcRXSfhUimGJe7T9qhgN/MDP0DrA+zZ5NqczHFRxIYlKuxUaZacysc0Gk2F6M2h72RLmSK6Vzd0bmRrpXjIvvpqv5A/9+iDI71EgGiiiYyTaUeUHaPKdaX88lO6YsLBY8C5eRjZST9MTf/cbb8y/1cmOvYFDzaN2KQyoZwIEOVSf7UmcJtnjX7AtHNhlHhblu6jXySPGkrtXqkNmMYew38QuQGSAD0N6np8kzfkznzZlBJRWx0a91K+1uIL+E+yTHJ0PKFI7Hpye4WvIFqUkuIYwh1fdzoUIxw7EEoAu1PAQaFSxcxA2+lMqMEjtWaEff6VySvy0h9kF456IcSdfIlMbDstrYqZIpCZPcxA0rEyoFywzyKgTwViqetkgoYtlXxROeIog+OPpcp64CqKlVgcAk4ClSyILn9DnxBpeYLDddgVtU43f/eYtTd5IZ75N6FNnN2LRJncrPmP6aiYEHXaAqQaUiG3GTyVRMeAJONMh/WFho0hjI/vHPvFWQ4ne475u9+ZkiTkWCm9yF6D9wWPyjJnOjIqctopRNpwmofNYccyNuxPZ9nxx5ndVJY3Vtl3eCjeYJ/C6lt+o/zfRYQ/5l8sElML6NFomMOynE7zFswad X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecb27c60-6d83-4433-e262-08d975e706b9 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8429.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2021 12:15:36.2173 (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: P8a9WOvN93mtMNv3d1Of9xHAyK0tP4zwpH7k9qsug/atxSuQEI6nYV+79PGCaA+YHDOKfSqS5EC1iDPrJ2vITw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB3962 Subject: [dpdk-dev] [PATCH v5 0/9] 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. v5: add llr_size and llr_decimals, removed LLR compression flag, update testbbdev to handle endianness, rebased on top of 20.08 Hemant Agrawal (6): 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 (3): bbdev: add big endian processing data capability app/bbdev: handle endianness of test data app/bbdev: add test vectors for transport blocks MAINTAINERS | 10 + app/test-bbdev/meson.build | 3 + app/test-bbdev/test_bbdev_perf.c | 84 ++ app/test-bbdev/test_bbdev_vector.c | 4 + 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_11.rst | 5 + drivers/baseband/la12xx/bbdev_la12xx.c | 1100 +++++++++++++++++ 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 | 14 +- 20 files changed, 1880 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