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 D13EC45625; Mon, 15 Jul 2024 11:00:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B2E1402B0; Mon, 15 Jul 2024 11:00:52 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2089.outbound.protection.outlook.com [40.107.21.89]) by mails.dpdk.org (Postfix) with ESMTP id 09B6640281 for ; Mon, 15 Jul 2024 11:00:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=C3SG3Bs/5BazB9/INOXlEgZTWtF8FNf8j3YUypQHYI/jdNCcXJ0Yzf/tLWYZprs+tryD09/gjcuDVbZJPaaX4E74fleaq4ZXd6IAuYW4NczXKIz4cgStZhztQcCyJOdb6P7drucLfHSmJ2kZyb5U8F1w9+t6N7JfSeoNnTGWGgrAPdnTRB5h8Hhn+fmfV43ZpoaWiHt6Jij5RpKwVoJzt9X2mwjMhwmdui2y4F27uKPWBfCLjWEGMhvNz/2STYYQYqQIW1O+dn+PpxVZfM2MonCKboYG5oQsWDBSiR0/qAwfabIzCdSsSixmwDUoc1Rj/cJ2p5i7hTpi3ll2KmzEiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AwSYq6w5ZZ4tiWUHxiIBRkBUDdm4NLsGrRsoF0Mzqz8=; b=jWB6qCmHLLoiDbRFbsWrIsnBe7f/R7hCLzY0dv5bgku151o7q+N0ne6fdH2Ebu5Schcb7eia5Lg1SxC6TU/OSme7gmK8vT325hZJoGK3PRvqpbomptpCSGE0TjjPNsaeWqMhY51tSaEjubO5ReFIYvnH6LrE2f3UYdiYJN0kVo1XMM3HlE0pVRJRTlP917eTBNf8J8UZnzXiSEnKp698ZAob0q8MohdLMclVzwcXV0QdwxETtKP/ex6Tjiq44GrB8g6c/oGwC+FPhDVUBbFLytcnsWum5sT08z9H2sPL9IaxO0BFDheXAK7tdnZbHuIokmgGW4GyqmxyNfmX2WATZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AwSYq6w5ZZ4tiWUHxiIBRkBUDdm4NLsGrRsoF0Mzqz8=; b=v6PoOqfwr8Ek3/hPwRni/GXPaxmnRZYZkG5ZSgevs/OAM+nYzgHhiDzBq8Di0bsgzEzixD8DlrEG1E3WDgjzK4wdWD/MNq20J7dfwiUTh4qFtyutGVW0yyqXkP05kzU4gVooSq4V2B7ZUZnHretf+/VSMZ+7pobkOWoabgvPw7gF1UWDyqCyZqWVr9Xe4KwlDYT5OXJ00XjGY0LjovUOkiThYcUoSx7hk9keFODQqfVydYg8upQDSmfJ91PKxJrA/lnBoIl7viK3mX2R+8RovzVil0kGSVIw8MnMELuWDE3JS/QohPsutEYPAwg3ofWase49s03/RpFIFv++DTQD0g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from DU2PR07MB9522.eurprd07.prod.outlook.com (2603:10a6:10:49a::12) by AM9PR07MB7764.eurprd07.prod.outlook.com (2603:10a6:20b:300::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.13; Mon, 15 Jul 2024 09:00:47 +0000 Received: from DU2PR07MB9522.eurprd07.prod.outlook.com ([fe80::3bcc:6d1b:6257:819]) by DU2PR07MB9522.eurprd07.prod.outlook.com ([fe80::3bcc:6d1b:6257:819%4]) with mapi id 15.20.7784.010; Mon, 15 Jul 2024 09:00:47 +0000 Message-ID: <14049702-f077-4e5b-aaad-aa625d8bffd7@nokia.com> Date: Mon, 15 Jul 2024 11:00:46 +0200 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Mattia Milani Subject: [Help - BBDev] Operations executions shouldn't be asynchronous from enqueuing? To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR4P281CA0444.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:c6::6) To DU2PR07MB9522.eurprd07.prod.outlook.com (2603:10a6:10:49a::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR07MB9522:EE_|AM9PR07MB7764:EE_ X-MS-Office365-Filtering-Correlation-Id: 24737dd1-4511-4def-37c0-08dca4ac9dee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RURMOW1hSmFGb1pHSU5VdmlRbWV5SS9DWjN3M29rMFVqd01hUm9ybFFKQ1Br?= =?utf-8?B?ZEVsMjlDdEZpSXA2N0NONkNKNkRrMFkxa3lKckx3SnpTR3I0NXhmNTJuNS9u?= =?utf-8?B?a3VNYkhYc3RRbTg3WURYQ3hsT1o2VVFCMS9UVjQ5ek9IempQSEZrUkhvNzZ6?= =?utf-8?B?V0UvTzlzajBSM1F5SVE0ZkRqL0plekdCcjIwWWhJMVVjek52NnZDRlpnYkdQ?= =?utf-8?B?Yk55bGtwOXBVM3c3YmhybWs4bXpkcHdBVnVzMW94Qm9Mc0xYT0N0YTdkZjhC?= =?utf-8?B?K1NJdk9CbEVVS3lOcjZObCtrR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dKZXBnaVhQRjdidEdRb2tmRkFUaHNkSVVnUVNKZ1p1N2xwNGRWaitrRUUx?= =?utf-8?B?REFaZFU0V1VMczRpekR1dzBYVGdpVmZPTmg4eThSeFdPdWhXM1ZHN0pGUmpB?= =?utf-8?B?WEMydjYvb3hVWkZTUnBGWDI2WVJXOEQvVGZZa2ZEdTBocTlkZk9jdXRyWG1L?= =?utf-8?B?Z2tmOFRnQ0g0VTRYbEpGK0xmcTIxZFFhaWJMZUV4VzZUc2Qxb3c1MFlsQlFo?= =?utf-8?B?VW13RDR3S1JSbC9zZVdkVHlTRVpDU1FIQnhvZVd3Y3E3YWpjVVFiOUZFZ0lH?= =?utf-8?B?dEFKNE11VWhwY0lHQ0tDNU5RYmtQQ3pPbE1nUTZReUFEVUp2K1VGWXNlcGd4?= =?utf-8?B?VnEydnc3d3pNZlEwcC9VT2FZMVlhMlhqdk5VbGVYMUNXdFZ4MUVEMEY3SGRm?= =?utf-8?B?Njl0RlRSOTFOcmc0WTRJQ0ZqQ1VEOWZDdTMxeG5kMmh1ZTNackZlTXJ3ZEdm?= =?utf-8?B?TUtER0c4WFRCSTJzVCtLUHhROUl6SE1wekFQYnhLQ2toRk0wS0xwQVE4RDlj?= =?utf-8?B?QnBRRGFCQTY1eWtoRTMvb1MyQTFaN3o3Tkh1cUlZcE9BVm5hNmlnRmd3d3Bt?= =?utf-8?B?bGM1RFlDN3NtUE9jRG43dz09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR07MB9522.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V3pkVnZ6dUtxTXo0Uk5SVTZ0TVB3dTRieG1sQXBpWVdjYkFPSWxjQ1E1WkF0?= =?utf-8?B?V2FlY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Sis3UDQ5WjNu?= =?utf-8?B?WWZkSmdqTm5ZOFJMNzlFdVZSYldPYWlhbmtMMitEY2Y3OXFtSVBCeEhXY01t?= =?utf-8?B?dEZUcjA3Z3JreURVRTVJdHBYTk0wd054Q1MvbEk4NXN1a0lIU0pVUm1lOCta?= =?utf-8?B?cVZDVDhiK3E1UnVCK1F4bUx2QStaVXZ6MWJyRHlqWkg1cmIxL1ErUjd5cDg1?= =?utf-8?B?YVI1dnRvbVRTQ2tCZjFXWFRTUW1aTU1zZEc1UU93U2tobGNhUjY3b0NiVWpu?= =?utf-8?B?M0ZFSlJLdVFIMTd1TjJrcmczN0l1QXd2Y0xNZ2pLd3Jianh5KzZsYm04aVZ1?= =?utf-8?B?WWc9PQ==?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24737dd1-4511-4def-37c0-08dca4ac9dee X-MS-Exchange-CrossTenant-AuthSource: DU2PR07MB9522.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2024 09:00:47.1838 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /Te5PAd/l5HVVEksP64nUBoCHTfzv4GxV/T6PE7sPXYGHEyhjLh4AVYlw4NyXE5tKhEHpzpXV1dJbjBFx4SFFw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR07MB7764 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 Dear Developers, I'm currently experimenting with BBDev, in particular with the decoding operations and there is something that is puzzling me. I'm sorry if in reality this is just a misunderstanding from my side, but I would really appreciate some clarifications. What I expected was the following: Once I call the function `rte_bbdev_enqueue_dec_ops` with a certain number of operations and a specific queue_id I expect the function to append the operations to a queue and return, after that I can use `rte_bbdev_dequeue_dec_ops` to read an "output_queue" structure to obtain the operations already processed by the decoder (the number of op. returned could differ from the number of op. enqueued). My assumption is that the decoder works in an asynchronous way in respect to the process that it's enqueuing operations, and dequeuing the once concluded (this last one could even be another separate process from the op. producer). Such that, if the queues are empty the decoder has nothing to do, but if there are operations in the queue the decoder is going to execute them, while the producer(s) and consumer(s) can do something else. What I've understood from the source code: Once the function `rte_bbdev_enqueue_dec_ops` is called then, there is a sequence of functions calls, up to the point where, in `enqueue_dec_all_ops` (drivers/baseband/turbo_sw/bbdev_turbo_software.c:1724), there is a for loop that take care of each operation one by one. At this point, for each operation, the `enqueue_dec_one_op` cycles until there is nothing more to decode calling `process_dec_cb`. This last function executes both `bblib_turbo_adapter_ul` and later `bblib_turbo_decoder`. This sequence of calls never gives back the control to the original function which called `rte_bbdev_enqueue_dec_ops`, that has to wait for all the operations to be concluded before continuing. The same logic applies for both Turbo and LDPC, from what I've see in `enqueue_ldpc_dec_all_ops`. Now my question is, shouldn't the decoder being built with the first approach in mind? By any chance, is the asynchronous part controlled by FlexRAN? I've to admit that I didn't check more deeply. Am I missing something in the code that invalidate what I've understood? I'm of the opinion that an approach like the first one would be more resilient and ductile, separating the logic that controls the queue(s) from the one that executes the actual processing. This way we could simulate more stressful situations where the growing rate of the operations is greater that the outgoing rate from the decoder. Thank you very much for your help. Best regards, Mattia Milani