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 E6137A0C42; Wed, 28 Apr 2021 15:04:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 616CB412AB; Wed, 28 Apr 2021 15:04:02 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2073.outbound.protection.outlook.com [40.107.21.73]) by mails.dpdk.org (Postfix) with ESMTP id 5CAE740697 for ; Wed, 28 Apr 2021 15:03:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YgCKvWW96he5DyqGpYG3JGq0vP90VuTqKBJ1Xo+AZJUTcFWEVwNvYLoCgGeeyRcvBOnUfswR0DvP6zCkOht+xtmTNLN8/eiLDu44zd7DtfVsU/E5ta+w00XrM4nora7O5BK7VF5KQPropP2coNVmtSePdSAqrMNTbeh3ltM3/eonpcaq7G2r1Wvu43R5wxCS0Z58UqmE3W3zn4mEX3OxJzD1z2k7rO5E+kds/1el/iNrMSxhiwQ3NLWU4w9A+QM2jKp4bvmdGl6qKYGBllUmG/5KO47eSXcyexHzXNqqMO9MWjEzTAOKfGQ3vgYV+aRvaaJslO2HjIreS+O/33b56A== 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=A5d2VpJPyftruMRBAZEo4i1pumQr7/TEbeSOc3AHFRg=; b=H8AZkhCd66Nr2Oodi5XBnfSXQFOfe6X17ZS3+JvF5kzHexfc6ATB4SemTe7IQaX2ZQDj4dqWYJdPT21rSFdEH+CmpXiNgbfV0i2u6E9KrOA+mSKwon+jtB7grjOxt/YMshYZ5WG4unm8XLbwYXfhuMbqsa+zfa61hLbdyx3TbeZZWpSdZX5rvc3vwdTFDehB5kvlyOqwMh3JXzV/mRJ2c8YIhTcJhDB3HdEWsm6iXgqqc5nYyMg0HdusbLoPPpHyjeBPFB7iASUsJyuM3P1YRCOFclPLEJBe5kPVwJQzEG/3HjjqeiBdxIuqkwYzqh/0hAYijXX7h92zylLE6HK3EQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A5d2VpJPyftruMRBAZEo4i1pumQr7/TEbeSOc3AHFRg=; b=Yw5PmsAuehSrj9mfyKKKoR+RjWKkBUJ5UHB0JbnaoQ/Y+Cl/7foutZcohxftrf/ITaYG3SovqnEVg9tbxJgNp7UXAHmf+A17fFBBdIo+2rGmGm2hmmiK6YDAUlxjGxxk3fjHyrM84i9gEQbBGWucgrudHY28QLoJqfZI9yxwJjw= Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) by AM5PR0401MB2561.eurprd04.prod.outlook.com (2603:10a6:203:37::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.22; Wed, 28 Apr 2021 13:03:56 +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.027; Wed, 28 Apr 2021 13:03:56 +0000 To: Dave Burley , Hemant Agrawal , "dev@dpdk.org" , "gakhil@marvell.com" , "nicolas.chautru@intel.com" Cc: "david.marchand@redhat.com" References: <20210413051715.26430-2-hemant.agrawal@nxp.com> <20210424103700.8098-1-hemant.agrawal@nxp.com> <20210424103700.8098-2-hemant.agrawal@nxp.com> From: Hemant Agrawal Message-ID: Date: Wed, 28 Apr 2021 18:33:44 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [223.178.219.73] X-ClientProxiedBy: HK2PR04CA0086.apcprd04.prod.outlook.com (2603:1096:202:15::30) To AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.2] (223.178.219.73) by HK2PR04CA0086.apcprd04.prod.outlook.com (2603:1096:202:15::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Wed, 28 Apr 2021 13:03:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d47fb1e6-a646-4aa7-d863-08d90a4614af X-MS-TrafficTypeDiagnostic: AM5PR0401MB2561: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7v+GCDcB42EXyEtsd1QWdJxER95OAMOgM5YZph1SGkd3QtkGtlkVGDDcbSMZTiNHu79WJAEGC+a4Ct9eu2/PGbaOrSkpJqki+kuQ41VDp4GDWRyfaaLKMeG4bXMmmZJdq70rc1a0rfmIA6yVHObx9r59pVHvqsDsDHF/BZl1fE0S1b98NpqyeQhnDl9yuzJYaRDYU5adTy6lOiIPFwe+dlYLeqHjbu9nngwNbHppBYWQa/xT5q3PWrmUGsrQkUxn07SuaHLWJklnUpKKTUr4v7UIXcPXB2104GMyC/1J2Aba9Po2513PxDC8o5qpgWBFPM8bb1pKYOj0AVCm2vlPKAXK490uBOSYRKhiFr6/nUeLXhTYxWm/5MJiLHiM+JGCBaZi6ZShJRA3LKVN2neZxs6Q8TLNSZa/c1ILpwXDZ13ocNDCB1ZH2tjHRmqptaF3zqvszQlbyaN1HWOCaC4YWB1qQwMQkz70qh3mRAN3JjDLvxJi9wTJLwq3RBO5yWGJ3VeN7dqwr3rJrGxj9IodzOXJ7moVBM6iKUBbda3HIHWet/7unAaeyXKGb83gP9n8iGUz3POsJmtxF3L/MVczShPRAU0Tv9r8pHKldMnJZEotSIhJVKVl0SxSkRY2EGc9ov1QY5li4qLarqxP8IANI/K49P8DOPPc8XRLhuELGtB1n+oNjtVNcB4FelfL+5TNLB+11Cb3ZtXZgJs9bLqooQ== 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)(136003)(376002)(366004)(346002)(39860400002)(396003)(8936002)(26005)(66476007)(53546011)(110136005)(66556008)(33964004)(956004)(21490400003)(186003)(83380400001)(6486002)(8676002)(86362001)(16526019)(478600001)(44832011)(316002)(31696002)(4326008)(16576012)(2616005)(6666004)(52116002)(66616009)(2906002)(31686004)(66946007)(38350700002)(38100700002)(5660300002)(43740500002)(45980500001)(579004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?SnAvNTd5a3VRTzBOaVRUTVcwVDVUa29RVWJ0R0NNV2wyUlFFdDJxUmhITzNO?= =?utf-8?B?MldkWGNneGw1bFg5eCtsdURHc21qNXhrdGljbmg0bzdDaXM4OXF1OC9WdTEy?= =?utf-8?B?L2dmcEVYWWZjQ2NObHBUWVhoVHdRdldHOWdOYkx2a1hzbHB0dmgzTlA5SE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ZYcnZjWnA4?= =?utf-8?B?MDc5bVA0NWpXMmE2UlFBNFdueUtMMjgwTDVWNC8xMnNiUDJFVURVS3dhZ3hp?= =?utf-8?B?cmVrYXowYTB0Tkh2ODV4K3d1OWIwdzBlaXRRMjh3Ykdna1Y1YlpvTi9MU3d0?= =?utf-8?B?ZVJrZi9ESmpjbmwwVE1ZWjRWSk15b2dPM2lsOVlnaXlFb1NuK3pUVHY0cnhQ?= =?utf-8?B?QXNWZUN6aUJwR3pqeVFpQkl6SWNnZm1YOXlkelgvMlJ3aEcrci9qLzZzdi9E?= =?utf-8?B?aHZicUZxU0J6VjBxZy9qbkdMUWtLMFhLMElhT1JkRHJSdlN3WEFLYXUvZW5N?= =?utf-8?B?OUQxZHdzUU5uMTlyMkVjOWdFM0VHMWNSbllULzQ1SGEydkcySDI4RGduRDVK?= =?utf-8?B?dSttTU5Ka1RBcFFkTkVwN3pCdHhmRUR4Mm8vMjFaeEFGWXhNNklWeGhxQk13?= =?utf-8?B?V3hraURIcGdPR0RCK01EemZLeHljZkMveXo0cmJOeDBPSDFpejVCeE80b3FL?= =?utf-8?B?a3hoQ2NrZGtnUVVSTkhPVnloL0RxK0hEUEFXOGRkbUFGME5CcFVMSytUWHJM?= =?utf-8?B?dWlvZ3dVQndXdHBzaVpWanhPa3I0UXZYZFdZUDZ3YnpYRTJXaHh1M1U2djVy?= =?utf-8?B?bnpDeUpZU0czbnAyUWJwSWh4bmZiUkxSL3dSbzVQbVcvU0dyWlA4WnR2Vm10?= =?utf-8?Q?6yAOpP5JnRKbmrVFPBxMwUVAqHjSczvUAy+nD1q?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d47fb1e6-a646-4aa7-d863-08d90a4614af X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4456.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2021 13:03:56.8348 (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: pjaqsWOLDkURv4c1w8Ahcc+3XmWQAm6JarTKdoHKcmMRqPk0VxzaTGWBarXPfNqJ+Am9Y/E1FS2os5LWWbABEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2561 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v4 1/8] bbdev: add network order 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: , Reply-To: hemant.agrawal@nxp.com Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Dave, If we go back to the data providing source i.e. FAPI interface, it is implementation specific. As per SCF222: Our customers do use BE data in network and at FAPI interface. In LA12xx, at present, we use u8 Big-endian data for processing to FECA engine.  We do see that other drivers in DPDK are using Little Endian *(with u32 data)* but standards is open for both. Regards, Hemant On 4/26/2021 10:31 PM, Dave Burley wrote: > Hi Hemant > > Can I ask what the usage case is for RTE_BBDEV_LDPC_ENC_NETWORK_ORDER/RTE_BBDEV_LDPC_DEC_NETWORK_ORDER ? > > Thanks > > Dave > > > > ________________________________ > From: dev on behalf of Hemant Agrawal > Sent: 24 April 2021 11:36 > To: dev@dpdk.org ; gakhil@marvell.com ; nicolas.chautru@intel.com > Cc: david.marchand@redhat.com ; Hemant Agrawal > Subject: [dpdk-dev] [PATCH v4 1/8] bbdev: add network order data capability > > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. > > This patch intoduces a new capability of the bbdev device > to process the LDPC data in network byte order. > > Signed-off-by: Hemant Agrawal > --- > doc/guides/bbdevs/features/default.ini | 1 + > doc/guides/prog_guide/bbdev.rst | 6 ++++++ > lib/bbdev/rte_bbdev_op.h | 8 ++++++-- > 3 files changed, 13 insertions(+), 2 deletions(-) > > diff --git a/doc/guides/bbdevs/features/default.ini b/doc/guides/bbdevs/features/default.ini > index 5fe267a625..e5da644099 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 = > +Network Order Data = > diff --git a/doc/guides/prog_guide/bbdev.rst b/doc/guides/prog_guide/bbdev.rst > index 6b2bd54e1a..89a86d10fb 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_NETWORK_ORDER | > +| Set if a device supports network order 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_NETWORK_ORDER | > +| Set if a device supports network order 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..8fab617768 100644 > --- a/lib/bbdev/rte_bbdev_op.h > +++ b/lib/bbdev/rte_bbdev_op.h > @@ -186,7 +186,9 @@ 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 network order data processing */ > + RTE_BBDEV_LDPC_DEC_NETWORK_ORDER = (1ULL << 19) > }; > > /** Flags for LDPC encoder operation and capability structure */ > @@ -206,7 +208,9 @@ 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 network order data processing */ > + RTE_BBDEV_LDPC_ENC_NETWORK_ORDER = (1ULL << 8) > }; > > /** Flags for the Code Block/Transport block mode */ > -- > 2.17.1 >