From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E35BA0C4B; Sun, 12 Sep 2021 14:15:47 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 481BB410EB; Sun, 12 Sep 2021 14:15:41 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2079.outbound.protection.outlook.com [40.107.21.79]) by mails.dpdk.org (Postfix) with ESMTP id EA8A740DF8 for ; Sun, 12 Sep 2021 14:15:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E3Etq4tWF3mnjrZX5DtoTnPVvLAETQYsYnysuKWGhmVQMKPOEFRXJSyQvnW7WEzjuqCk1f5HH5/1UbMcwDUS90Bx02jCbAHi0z25sv9Xq6yEFQYyRjFr2e3hwxubN9ELqMPsHPsYXx+bOS8y5bPDEd5EvEQut3+611EFoLedpnN+5xMD08sw/BIeneA2FIItVLTEXaCBTCAEgwQZ6Tn9P/ZjjHyaJcaYjbImIE84u65p9LHuHdS8Q7QdqUVZTUVIc59w4Or2XVIvkMkUDoN/dQ8bYgrZ8yaHDR6QOd/GNo2SzLru2n8GJzzHWIut4PL4IycU9TmCwA010eJ/JhxrHQ== 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=acEioj7A9EGQ1CAJVTkKmUHV9RXK5FaBDppIbjFUOUU=; b=SwbCvjvcjnoFtOkkJNrgYdG5WRz0uibvid1b7o8daoeO4TCRbXP98C0v/SfN9iF74d7t0d9pvyY+6OYphdNWtMJbZjSf/OoTnHYhw0P7Py/XlUNypG3g8sRq9AcZMR6qkbRvZMRVl9emDZf80uazfGLVJthJrX+o9rcUwUOLgCD476tL6rvtHbbiwx7EWg1ZeY0vEnWufL3fy0xTBQoVOkm1RpD9uoEgRGFC2YA4XjzfRccgis2x66dscftALflD+DdGlP5cYF2nd6wxpNN0t5yTetlsE0JpfaEj3FBDxgOOeHCIhEcO8a7xgMaNXxqKGogJW6+KejLeUoV2DPEARg== 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=acEioj7A9EGQ1CAJVTkKmUHV9RXK5FaBDppIbjFUOUU=; b=KY7AQiKswq9YN7a5d5QuhH5U5sNy3vVvRwqm9Wmjto+ePbd2jHP4sx5d2TlL2P5AbD9ZNoNL390AV8ki/PDJflKtSofWxtju4FYesPgsJyV22F74Tt4SsroU8g+PenrT6NSfcm87QureCtAknMEKUOsfDWbSwu3YlToRRbtOruI= 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 DB7PR04MB4778.eurprd04.prod.outlook.com (2603:10a6:10:18::17) 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:38 +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:38 +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:02 +0530 Message-Id: <20210912121510.22699-2-nipun.gupta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210912121510.22699-1-nipun.gupta@nxp.com> References: <20210318063421.14895-1-hemant.agrawal@nxp.com> <20210912121510.22699-1-nipun.gupta@nxp.com> Content-Type: text/plain 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:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ecc9daa-39b5-43a8-a053-08d975e707fd X-MS-TrafficTypeDiagnostic: DB7PR04MB4778: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WUGoRWHke470b1kap5qO8v3a3lVA+OfAFd9rH3vxcRNhqnrfyOZCr4oUnwWCyriAniEbVIjjyJk6/bwcebMNN4BAoXpfOCRa1Ccv/r0GfNujouhIY1yBE/vG6SD8Z29uVR0o/A97MWMgcYZ5NIMxBrX21poL5gCUo1wnUk/I+nU6pwVw6tl8DkM55sTxZ1R+nBO4Pg+5xFRysRESNxH/cKM1hCadc7VSZMArwlUQ0/Eha2NokWX2o/JooB9DvBZjNZ2gVLxYU4BZ238zws/HWIm4uRXJoZhmeMIZgym3VamdlFIoaSPMe7cspPVL/LhedpUc8TQu+06kMEDyFOQYH/JFfzYHmA5Q3/Wy0/lG8lju4soF17lqb7+RNyM5ahzOMkuHwyfLb8qhBESJdR08KQvIMkWLVIRPWtlsdmiPcwTgCBNlS8CeSlLRlr6GWFUlzTcYK5hP9oxtwuiFWK+XGwjeTvEpvsn24pPEZQ/+YlKSbpX37PlQjTuEGt3wuVvCU7gyAj57U0U+3R9wS7lkphn8h02xAg8OVCjD2ML1XVV0/FE+FMVLomKwShKMtEJZnn+VxbaSIdwFcrUr+i3FwZwzq9Xd9INqGbkgkmgy/gVvMnOxwdG4wbhEXz71fo4CScq5s42Q+6yaooc9l169EPHd6c6Ho7d1BUBagAC1i+MttK1IVGOEtanTB2w5KyOj/M0QtG08NYpmfHgzk6laf68pMc57Bw0bYzgTtKV6w88= 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)(346002)(396003)(366004)(136003)(39860400002)(376002)(66946007)(36756003)(1076003)(66556008)(38350700002)(38100700002)(8676002)(8936002)(186003)(4326008)(956004)(2616005)(52116002)(6486002)(316002)(55236004)(86362001)(5660300002)(44832011)(478600001)(1006002)(6666004)(83380400001)(7696005)(2906002)(26005)(66476007)(110426009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?hqbFAo/9JIW12LhdmnRT4YPaxhd3U5LkwR91d7ihQw+AxnbObCYBUYzbLd+L?= =?us-ascii?Q?y21bpev/AY1q/8KkgAogizmyce4CEvkH114iUN5+dLH9tq0CVph0jKM/j1Bb?= =?us-ascii?Q?3qiLsAPD1W1VN+TTQKTIt//NGdxHTRF3PJiJiC+KHOlrz2lc1+1MgaQV+KUy?= =?us-ascii?Q?h6HrdSP7y1S0vil1NTMQrzAIz6rx7hYExwNnGj9aXc+B7fhYexILsaR9wcSa?= =?us-ascii?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nk2Juc4XZoApI/Qpln692T?= =?us-ascii?Q?+d/7B9vPRK19jv8ZDO55oUfdIPPseop2WE0NO3if8q2TUjXzXz80UyVsxO9L?= =?us-ascii?Q?Z/69PSJlRKZJsU2AK3pcdLzAGJfgsvd9fEMlCHut7hY8gekoHsxhCRbUdwp/?= =?us-ascii?Q?Uiq+hFiwII1BYrFGnmno0oa68dtMY7Ct1BkljXkPoC97BB5q0XrTHjc98S0+?= =?us-ascii?Q?cnIe5uBjqAFcLGgwefD77ABy?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ecc9daa-39b5-43a8-a053-08d975e707fd 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:38.2977 (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: l5XK5ayK/nIqdVlWBopFV2BBC1V4oHeUejMEWOwlilxHBsRCfY6L1H7Rv+2mcs/RWMhjXQyzwRiZ4iwG7xEGBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4778 Subject: [dpdk-dev] [PATCH v5 1/9] bbdev: add big endian processing data capability 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 patch intoduces a new capability of the bbdev device to process the LDPC data in big endian order. Signed-off-by: Hemant Agrawal Signed-off-by: Nipun Gupta --- doc/guides/bbdevs/features/default.ini | 1 + doc/guides/prog_guide/bbdev.rst | 6 ++++++ lib/bbdev/rte_bbdev_op.h | 14 ++++++++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/guides/bbdevs/features/default.ini b/doc/guides/bbdevs/features/default.ini index 5fe267a625..ae5aacf8f7 100644 --- a/doc/guides/bbdevs/features/default.ini +++ b/doc/guides/bbdevs/features/default.ini @@ -14,3 +14,4 @@ LLR/HARQ Compression = External DDR Access = HW Accelerated = BBDEV API = +Big Endian Processing = diff --git a/doc/guides/prog_guide/bbdev.rst b/doc/guides/prog_guide/bbdev.rst index 9619280ffc..6540b514bb 100644 --- a/doc/guides/prog_guide/bbdev.rst +++ b/doc/guides/prog_guide/bbdev.rst @@ -747,6 +747,9 @@ given below. |RTE_BBDEV_LDPC_ENC_CONCATENATION | | Set if a device supports concatenation of non byte aligned output | +--------------------------------------------------------------------+ +|RTE_BBDEV_LDPC_ENC_BIG_ENDIAN | +| Set if a device supports Big Endian data processing | ++--------------------------------------------------------------------+ The structure passed for each LDPC encode operation is given below, with the operation flags forming a bitmask in the ``op_flags`` field. @@ -942,6 +945,9 @@ given below. |RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK | | Set if a device supports loopback access to HARQ internal memory | +--------------------------------------------------------------------+ +|RTE_BBDEV_LDPC_DEC_BIG_ENDIAN | +| Set if a device supports Big Endian data processing | ++--------------------------------------------------------------------+ The structure passed for each LDPC decode operation is given below, with the operation flags forming a bitmask in the ``op_flags`` field. diff --git a/lib/bbdev/rte_bbdev_op.h b/lib/bbdev/rte_bbdev_op.h index f946842727..9e9b5be81f 100644 --- a/lib/bbdev/rte_bbdev_op.h +++ b/lib/bbdev/rte_bbdev_op.h @@ -186,7 +186,12 @@ enum rte_bbdev_op_ldpcdec_flag_bitmasks { * for HARQ memory. If not set, it is assumed the filler bits are not * in HARQ memory and handled directly by the LDPC decoder. */ - RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS = (1ULL << 18) + RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS = (1ULL << 18), + /** Set if a device supports Big Endian data processing. + * If not set Little Endian data processing is supported by + * default. + */ + RTE_BBDEV_LDPC_DEC_BIG_ENDIAN = (1ULL << 8) }; /** Flags for LDPC encoder operation and capability structure */ @@ -206,7 +211,12 @@ enum rte_bbdev_op_ldpcenc_flag_bitmasks { /** Set if a device supports scatter-gather functionality. */ RTE_BBDEV_LDPC_ENC_SCATTER_GATHER = (1ULL << 6), /** Set if a device supports concatenation of non byte aligned output */ - RTE_BBDEV_LDPC_ENC_CONCATENATION = (1ULL << 7) + RTE_BBDEV_LDPC_ENC_CONCATENATION = (1ULL << 7), + /** Set if a device supports Big Endian data processing + * If not set Little Endian data processing is supported by + * default. + */ + RTE_BBDEV_LDPC_ENC_BIG_ENDIAN = (1ULL << 8) }; /** Flags for the Code Block/Transport block mode */ -- 2.17.1