Re: [RFC] eventdev: add atomic queue to test-eventdev app

2024-12-16 Thread Luka Jankovic
Thank you for the feedback. I will re-implement the test by not checking port-flow-queue combination and generally clean-up the code based on your comments. On Tue, 2024-12-10 at 11:37 +0100, Mattias Rönnblom wrote: > > > +{ > > +   struct rte_event_dev_info dev_info; > > + > > +   rte_

[RFC v2 1/1] eventdev: add atomic queue to test-eventdev app

2024-12-19 Thread Luka Jankovic
From 2e55ecd0e522f50cbb3635f53b025e165db7cf3e Mon Sep 17 00:00:00 2001 In-Reply-To: <228d44a6f2f1f6a4fb5519d9a91c99973f8d7352.ca...@ericsson.com> References: <228d44a6f2f1f6a4fb5519d9a91c99973f8d7352.ca...@ericsson.com> From: Luka Jankovic Date: Thu, 19 Dec 2024 13:31:26 + Subjec

Re: [RFC] eventdev: add atomic queue to test-eventdev app

2024-12-19 Thread Luka Jankovic
On Tue, 2024-12-10 at 11:37 +0100, Mattias Rönnblom wrote: > > > +{ > > + struct rte_event_dev_info dev_info; > > + > > + rte_event_dev_info_get(dev_id, &dev_info); > > + return (dev_info.event_dev_cap & > > RTE_EVENT_DEV_CAP_MAINTENANCE_FREE) ? > > + true :

[RFC] eventdev: add atomic queue to test-eventdev app

2024-12-05 Thread Luka Jankovic
From 753273ab9af49e16d7f7b577d6263e3db51257d7 Mon Sep 17 00:00:00 2001 From: Luka Jankovic Date: Thu, 5 Dec 2024 13:05:35 + Subject: [RFC] eventdev: add atomic queue to test-eventdev app Add an atomic queue test based on the order queue test but use exclusively atomic queues. This makes it

Re: [EXTERNAL] [RFC v5 1/2] eventdev: add atomic queue to test-eventdev app

2025-01-22 Thread Luka Jankovic
t; The test will fail if a port attempts to take a lock which is already taken. > > > > Signed-off-by: Luka Jankovic > > --- > > v5: > > * Updated documentation for dpdk-test-eventdev > > v4: > > * Fix code style issues. > > * Remove unused im

[RFC PATCH v6 1/2] eventdev: add atomic queue to test-eventdev app

2025-01-24 Thread Luka Jankovic
is used for each combination of queue and flow. It is acquired whenever an event is dequeued for processing and released when processing is finished. The test will fail if a port attempts to acquire a lock which is already held. Signed-off-by: Luka Jankovic --- v6: * Revert the use of event.u64

[RFC PATCH v6 2/2] eventdev: documentation for atomic queue test

2025-01-24 Thread Luka Jankovic
Add relevant documentation to the tools/testeventdev page. Signed-off-by: Luka Jankovic --- .../tools/img/eventdev_atomic_queue_test.svg | 1701 + doc/guides/tools/testeventdev.rst | 92 + 2 files changed, 1793 insertions(+) create mode 100644 doc/guides/tools

[RFC v4 1/1] eventdev: add atomic queue to test-eventdev app

2025-01-13 Thread Luka Jankovic
queue and flow. It is taken whenever an event is dequeued for processing and released when processing is finished. The test will fail if a port attempts to take a lock which is already taken. Signed-off-by: Luka Jankovic --- v4: * Fix code style issues. * Remove unused imports. v3: * Use

[RFC v5 1/2] eventdev: add atomic queue to test-eventdev app

2025-01-15 Thread Luka Jankovic
queue and flow. It is taken whenever an event is dequeued for processing and released when processing is finished. The test will fail if a port attempts to take a lock which is already taken. Signed-off-by: Luka Jankovic --- v5: * Updated documentation for dpdk-test-eventdev v4: * Fix code

[RFC v5 2/2] eventdev: documentation for atomic queue test

2025-01-15 Thread Luka Jankovic
Signed-off-by: Luka Jankovic --- .../tools/img/eventdev_atomic_queue_test.svg | 1701 + doc/guides/tools/testeventdev.rst | 92 + 2 files changed, 1793 insertions(+) create mode 100644 doc/guides/tools/img/eventdev_atomic_queue_test.svg diff --git a/doc/guides

Re: [RFC v2 1/1] eventdev: add atomic queue to test-eventdev app

2025-01-09 Thread Luka Jankovic
On Mon, 2024-12-23 at 12:16 +0100, Mattias Rönnblom wrote: > > > +static __rte_always_inline void > > Why is this __rte_always_inline? > The stage functions are based on the ones defined in test_order_queue.c and the test_order_common.h respectively, where they were defined with __rte_always_

Re: [EXTERNAL] [RFC PATCH v6 1/2] eventdev: add atomic queue to test-eventdev app

2025-02-14 Thread Luka Jankovic
; > released when processing is finished. > > > > The test will fail if a port attempts to acquire a lock which is already > > held. > > > > Signed-off-by: Luka Jankovic > > It would be great if you could add atomic-atq test too. I will add atomic-atq, but I only have access to sw and dsw, so I am unable to test it locally.

[RFC v7 1/4] eventdev: atomic common for test-eventdev app

2025-02-19 Thread Luka Jankovic
Introduce changes required for atomic tests to run atomic tests. - Producer port maintenance - Common spinlock implementation Signed-off-by: Luka Jankovic --- app/test-eventdev/evt_common.h | 9 ++ app/test-eventdev/meson.build | 1 + app/test-eventdev/test_atomic_common.c

[RFC v7 2/4] eventdev: add atomic queue test to test-evnetdev app

2025-02-19 Thread Luka Jankovic
Add an atomic queue test to the test-eventdev app, which is based on the order queue test that exclusively uses atomic queues. Signed-off-by: Luka Jankovic --- app/test-eventdev/meson.build | 1 + app/test-eventdev/test_atomic_queue.c | 230 ++ 2 files changed

[RFC v7 0/4] eventdev: atomic tests to test-eventdev app

2025-02-19 Thread Luka Jankovic
each combination of stage and flow. It is acquired whenever an event is dequeued for processing and released when processing is finished. The tests will fail if a port attempts to acquire a lock which is already held. Luka Jankovic (4): eventdev: atomic common for test-eventdev app eventdev

[RFC v7 3/4] eventdev: add atomic atq to test-eventdev app

2025-02-19 Thread Luka Jankovic
Add an atomic atq test to the test-eventdev app. The test works in the same way as atomic queue, the difference being that only one queue capable of all types for both stages. Signed-off-by: Luka Jankovic --- app/test-eventdev/meson.build | 1 + app/test-eventdev/test_atomic_atq.c | 216

Re: [PATCH v9 0/3] eventdev: atomic tests to test-eventdev app

2025-03-06 Thread Luka Jankovic
I accidentally sent the last version (v9) with an incorrect git name, but the commits are signed correctly. Will this be an issue or should I upload a new version with the correct name?

[PATCH v10 3/3] eventdev: add atomic atq to test-eventdev app

2025-03-06 Thread Luka Jankovic
Add an atomic atq test to the test-eventdev app. The test works in the same way as atomic queue, the difference being that only one queue capable of all types for both stages. Signed-off-by: Luka Jankovic Tested-by: Pavan Nikhilesh --- app/test-eventdev/meson.build |1

[PATCH v10 0/3] eventdev: atomic tests to test-eventdev app

2025-03-06 Thread Luka Jankovic
each combination of stage and flow. It is acquired whenever an event is dequeued for processing and released when processing is finished. The tests will fail if a port attempts to acquire a lock which is already held. Luka Jankovic (3): eventdev: atomic common for test-eventdev app eventdev

[PATCH v10 2/3] eventdev: add atomic queue test to test-evnetdev app

2025-03-11 Thread Luka Jankovic
Add an atomic queue test to the test-eventdev app, which is based on the order queue test that exclusively uses atomic queues. Signed-off-by: Luka Jankovic Tested-by: Pavan Nikhilesh --- app/test-eventdev/meson.build |1 + app/test-eventdev/test_atomic_queue.c

[PATCH v10 1/3] eventdev: atomic common for test-eventdev app

2025-03-11 Thread Luka Jankovic
Introduce changes required for atomic tests to run atomic tests. - Producer port maintenance - Common spinlock implementation Signed-off-by: Luka Jankovic Tested-by: Pavan Nikhilesh --- app/test-eventdev/evt_common.h | 9 ++ app/test-eventdev/meson.build | 1 + app/test

[PATCH v8 2/3] eventdev: add atomic queue test to test-evnetdev app

2025-03-05 Thread Luka Jankovic
Add an atomic queue test to the test-eventdev app, which is based on the order queue test that exclusively uses atomic queues. Signed-off-by: Luka Jankovic Tested-by: Pavan Nikhilesh --- app/test-eventdev/meson.build |1 + app/test-eventdev/test_atomic_queue.c

[PATCH v8 3/3] eventdev: add atomic atq to test-eventdev app

2025-03-05 Thread Luka Jankovic
Add an atomic atq test to the test-eventdev app. The test works in the same way as atomic queue, the difference being that only one queue capable of all types for both stages. Signed-off-by: Luka Jankovic Tested-by: Pavan Nikhilesh --- app/test-eventdev/meson.build |1

[PATCH v8 0/3] eventdev: atomic tests to test-eventdev app

2025-03-05 Thread Luka Jankovic
each combination of stage and flow. It is acquired whenever an event is dequeued for processing and released when processing is finished. The tests will fail if a port attempts to acquire a lock which is already held. Luka Jankovic (3): eventdev: atomic common for test-eventdev app eventdev

[PATCH] eventdev: atomic common for test-eventdev app

2025-03-05 Thread Luka Jankovic
Introduce changes required for atomic tests to run atomic tests. - Producer port maintenance - Common spinlock implementation Signed-off-by: Luka Jankovic Tested-by: Pavan Nikhilesh --- app/test-eventdev/evt_common.h | 9 ++ app/test-eventdev/meson.build | 1 + app/test

[PATCH] eventdev: fix dereferencing null atomic locks pointer in test-eventdev

2025-03-26 Thread Luka Jankovic
Update atomic_init_locks to immediately return if memory allocation fails. Atomic queue and atq tests updated to handle atomic locks being null. Coverity issue: 457876 Fixes: 9d619f82321b ("app/eventdev: introduce atomic tests") Signed-off-by: Luka Jankovic --- app/tes