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 1B6E5460E4; Wed, 22 Jan 2025 11:20:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E0EC34027D; Wed, 22 Jan 2025 11:20:56 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 78EE940273 for ; Wed, 22 Jan 2025 11:20:55 +0100 (CET) Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50M92mQl018500; Wed, 22 Jan 2025 02:20:54 -0800 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2173.outbound.protection.outlook.com [104.47.57.173]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 44awpr04km-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Jan 2025 02:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RVZpgXr31NpMHfBKQwLCG4pCJZ/SvYkxrN5mR+Z+F/T9o6pfG8FFJ0ECDSlolI78RA+zvMkKFqjGTUukMT2kG4Ej0zpnEY/lE10WKK+uRPZXi4SUU8feNtBMb+Ud1haIRFQvRJzfrlag2DDvrK3T5AvrgxatXjE9Rvyr2c5MmDbEKwM4fw0AUvBE2sOaJZ/JkfTkznhnMwQqelY1LOg15DJI4Z5X7Gst42qfzzud/W8199X36+Ce0/EYv0q6IBZWAsvn/nW/vcB6JH2/unARJu4hHt3pk2pwY1ULnNWVGwMU8Zo41PRLtunZo9OpUxxxkVIa03pTac6ylXoKHNJK+w== 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=HwZwYBhr35BfLtmaQ3X4FqLv5JI6oU+FWb7jZXdHqsc=; b=xRNRtUMUxIdisByJHSCLxCh2AWDj8HnIcondXdjYB1Gx5zvDk9veT2Tid+NtZ4nfyplvds+GfWYctcqAqwjWzCVgBdQ8KC8j0gohKkY2kZw0uJy+hI9waE3TYFFRU/DLUo9H8EPHfjlKMHX26wxQX/ZcQYrm23tk2zxv2MzOsH01FqmAdiKSfa8BmralAViyqxxjX/TCbcWUkjtmz7h/iY/vTVis8h+fcG6vfD28GghkBI6mGK+0aI2t9pVMXbC8/cnlUZfj8F1VpIAQE7eUsqznnzwVLH5wDJ8ZDWefUJGnwomqSCxHhKbh5x4tlXGx289UUdN1JmUTx/DpVI91Ag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HwZwYBhr35BfLtmaQ3X4FqLv5JI6oU+FWb7jZXdHqsc=; b=GmraxXyDqVieBMZZflLUf7DHZayApl2RrbwVcOLGfLPfv5xiqBEevvI7kJCrLZ6zx0x/n5BPTM+W04O6Mag9hwLIX9SYHL7N/WamcweAjSql/I+5pEcp4TlDvojDtpZdpyykUfmSDknZMDLxQ+hEj4Pwlx8QYvwkns+yB/pi2hI= Received: from PH0PR18MB4086.namprd18.prod.outlook.com (2603:10b6:510:3::9) by BL1PR18MB4232.namprd18.prod.outlook.com (2603:10b6:208:316::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.16; Wed, 22 Jan 2025 10:20:51 +0000 Received: from PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::ed37:4ea0:6359:f717]) by PH0PR18MB4086.namprd18.prod.outlook.com ([fe80::ed37:4ea0:6359:f717%7]) with mapi id 15.20.8356.020; Wed, 22 Jan 2025 10:20:50 +0000 From: Pavan Nikhilesh Bhagavatula To: Luka Jankovic CC: "dev@dpdk.org" , "mattias.ronnblom@ericsson.com" , Jerin Jacob Subject: RE: [EXTERNAL] [RFC v5 1/2] eventdev: add atomic queue to test-eventdev app Thread-Topic: [EXTERNAL] [RFC v5 1/2] eventdev: add atomic queue to test-eventdev app Thread-Index: AQHbZ1LZFBCoElT6oEqlke8N0T0nnrMinp2Q Date: Wed, 22 Jan 2025 10:20:50 +0000 Message-ID: References: <20250113121733.2384990-1-luka.jankovic@ericsson.com> <20250115133844.1403623-1-luka.jankovic@ericsson.com> In-Reply-To: <20250115133844.1403623-1-luka.jankovic@ericsson.com> Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB4086:EE_|BL1PR18MB4232:EE_ x-ms-office365-filtering-correlation-id: 572d22c2-92d5-41f2-1593-08dd3ace71da x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?wRtG6zOqv3w6LWfbLELq0xK+iQA77pLG1RyHpq2ccAlgh8MJ16MSWFaNYHo7?= =?us-ascii?Q?SrGXWuMFP7wNY77RABnSFlt8RM1RPFXwGbBmOsiplhj2KWFrzTXFWm0MN9WD?= =?us-ascii?Q?eiWss7saKSyWfqh83Xc556iJSb3VHg47S5aQDSlrJ/zvVXq7Ep8xtUva04aW?= =?us-ascii?Q?ygups+3acW+3UftpGvVrIpfdb6sYNvU7h+raa0mpZUk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ZQ+1GpWY8s+rO5Qv2ArrqbYhkbdiFx+WgOAwqlHPd?= =?us-ascii?Q?IsXlR/SiTTA2l/ll/T5ZPgpkA8pwKN/CFaGJfB1MQMcu6psXoQ2TSfb0yLu0?= =?us-ascii?Q?CBjZ081H42HOXa+9msfm0kjuu/3hOj8vMr8j1JW9TZFkUxTGCfloia3AuQux?= =?us-ascii?Q?Sf1gVznfdFhYwpsSRwXNpC6YK7QhqBoaO4/ZW1fI0HeHsJK48xPFnXVwq2sO?= =?us-ascii?Q?pIKtrvyVhAgp6MFjKAlP8mH0rqR+E2n8vc2QUrTGmApeAVmTQJOJ/MyC3qW+?= =?us-ascii?Q?WgmetoXgbkWfQhyT8ZaXQ72ERuchIUIowJhQGI5J18/QjAFPvw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4086.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0f0jN5WBknAvpvSGtMQmNL7eI1wz/z28QJ2FDvFQMf9ne16m7gEMcsH3xk19?= =?us-ascii?Q?3l0QlUi/T+pSBHDIS5Yp2M08DzRkUz7vZyUuMQmdwSQlw6LktsKVwg05e4Qg?= =?us-ascii?Q?aL/m/1eAxrtWjtQQhzgJuFKjRX60BUt63YjCAthcE8biMQALCNI+G/0lP6j5?= =?us-ascii?Q?20ejwPBQnr7yAJ8EacalC8Gkd4rmdE6RlsQia9yyDBHePc0zKlu62Q6R9AC3?= =?us-ascii?Q?oYudUeOpHWQ2pCgD0cU5/4Y/EbCyikuwKSvBLktwBrlpNFHiTdBEANeudkTf?= =?us-ascii?Q?IvMX9DK/xh8WXps8W2RlECz6Nur+vvqMsp+q1bgPPgSkdmgxroAtsiqAHLpt?= =?us-ascii?Q?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kDpxHGV?= =?us-ascii?Q?UDane+sI+c66pTHWNyUFt9xDIL3tc5ctfpUlNX7UW/mwjwqZhoO0SZdJPSNj?= =?us-ascii?Q?14LPdetgHLRj16AkqBJe+50m/ed0USQdPYz6Kl0N2r1K7QBaMqXQYk/iT43F?= =?us-ascii?Q?Al+ZFjrFwvR0xXE8gp5jVF6PakPnAbci01BTJLBQ/qp6p1wcUJ2K3vWtR6HK?= =?us-ascii?Q?dtcY5/3cw5bCRTNVS+jSuOg7KI14aimsnYJyjaeIHStVm/mCttsb+KvRo1w1?= =?us-ascii?Q?0BPi1JpcxvbqcGRjALxmtNNki24g8tEjZfn0TiYgFirlZirlKBED5tTizBf1?= =?us-ascii?Q?B/0HDap7COHJVTZAcYmTATL4s9bWZnAgPd5Qk0lR?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4086.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 572d22c2-92d5-41f2-1593-08dd3ace71da X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jan 2025 10:20:50.4043 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: slhU3O5KVWDsTVwfk978DS+ZdCWAqCSKl+aik9MkbiKZruwK5C5a80LtXLA5uOC3S7OhwqQ/at8MOPRmy3MOQcWgOrQksE3wt99MapSR0eI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR18MB4232 X-Proofpoint-ORIG-GUID: DcabhngRcUdggsuCyyvnYExpqHPe8NQV X-Proofpoint-GUID: DcabhngRcUdggsuCyyvnYExpqHPe8NQV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-22_04,2025-01-22_02,2024-11-22_01 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 > Add an atomic queue test based on the order queue test that exclusively u= ses > atomic queues. > This makes it compatible with event devices such as the distributed softw= are > eventdev. >=20 > The test detects if port maintenance is required. >=20 > To verify atomicity, a spinlock is set up for each combination of queue a= nd > flow. > It is taken whenever an event is dequeued for processing and released whe= n > processing is finished. > The test will fail if a port attempts to take a lock which is already tak= en. >=20 > Signed-off-by: Luka Jankovic > --- > v5: > * Updated documentation for dpdk-test-eventdev > v4: > * Fix code style issues. > * Remove unused imports. > v3: > * Use struct to avoid bit operations when accessing event u64. > * Changed __rte_always_inline to inline for processing stages. > * Introduce idle timeout constant. > * Formatting and cleanup. > v2: > * Changed to only check queue, flow combination, not port, queue, flow. > * Lock is only held when a packet is processed. > * Utilize event u64 instead of mbuf. Hi Luka,=20 This test fails on Marvell CNXK platform because HW assumes that value of e= vent.u64=20 will be 8byte aligned and upper bits as per[1], for optimizations purposes.= =20 Could you go back to using mbuf similar to ordered_atq/queue Thanks, Pavan. > * General cleanup. [1] https://docs.kernel.org/arch/arm64/memory.html