[PATCH v5] event/cnxk: add event vector adapter support

2025-06-13 Thread pbhagavatula
From: Pavan Nikhilesh Add event vector adapter support to CN20K event device. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Add depends on series tag. - Fix compilation. v3 Changes: - Rebase. - Fix errors from check-meson.py v4 Changes: - Rebase. v5 Changes: - Update documentation and

[PATCH] doc: fix missing feature matrix for event device

2025-06-13 Thread pbhagavatula
From: Pavan Nikhilesh Fix missing feature matrix addition for event device DMA and vector adapters. Fixes: 66a30a29387a ("eventdev/dma: introduce DMA adapter") Fixes: e12c3754da7a ("eventdev/vector: introduce event vector adapter") Signed-off-by: Pavan Nikhilesh --- .gitignore

[PATCH v4] event/cnxk: add event vector adapter support

2025-06-12 Thread pbhagavatula
From: Pavan Nikhilesh Add event vector adapter support to CN20K event device. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Add depends on series tag. - Fix compilation. v3 Changes: - Rebase. - Fix errors from check-meson.py v4 Changes: - Rebase. drivers/common/cnxk/roc_sso.c

[PATCH] test/event: fix event vector adapter timeouts

2025-06-11 Thread pbhagavatula
From: Pavan Nikhilesh Update event vector adapter test to depend on service core cycles instead of system cycles when waiting for events. Reorder event_type check to make sure event received is a vector before dereferencing vector structure. Bugzilla ID: 1720 Fixes: de09387f1313 ("eventdev/vecto

[PATCH v3] event/cnxk: add event vector adapter support

2025-06-04 Thread pbhagavatula
From: Pavan Nikhilesh Add event vector adapter support to CN20K event device. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Add depends on series tag. - Fix compilation. v3 Changes: - Rebase. - Fix errors from check-meson.py drivers/common/cnxk/roc_sso.c | 4 +- drivers/comm

[PATCH v2] event/cnxk: add event vector adapter support

2025-06-01 Thread pbhagavatula
From: Pavan Nikhilesh Add event vector adapter support to CN20K event device. Signed-off-by: Pavan Nikhilesh --- Depends-on: series-35336 (introduce event vector adapter) v2 Changes: - Add depends on series tag. - Fix compilation. drivers/common/cnxk/roc_sso.c | 4 +- drivers/c

[PATCH v3 2/3] eventdev: add default software vector adapter

2025-05-30 Thread pbhagavatula
From: Pavan Nikhilesh When event device PMD doesn't support vector adapter, the library will fallback to software implementation which relies on service core to check for timeouts and vectorizes the objects on enqueue. Signed-off-by: Pavan Nikhilesh --- app/test/meson.build

[PATCH] event/cnxk: add event vector adapter support

2025-05-30 Thread pbhagavatula
From: Pavan Nikhilesh Add event vector adapter support to CN20K event device. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_sso.c | 4 +- drivers/common/cnxk/roc_sso.h | 2 +- drivers/event/cnxk/cn20k_eventdev.c| 4 + drivers/event/cnxk/cnxk_vector_adpt

[PATCH v3 0/3] introduce event vector adapter

2025-05-30 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading the creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). An event vector adapter has the following working model: ┌──┐ Enqueue│ Vector ├─┐ ───►│ adapter 0│ │ └──┘

[PATCH v3 3/3] app/eventdev: add vector adapter performance test

2025-05-30 Thread pbhagavatula
From: Pavan Nikhilesh Add performance test for event vector adapter. Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/evt_common.h | 9 +- app/test-eventdev/evt_options.c| 14 ++ app/test-eventdev/evt_options.h| 1 + app/test-eventdev/test_perf_atq.c | 61

[PATCH v3 1/3] eventdev: introduce event vector adapter

2025-05-30 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter offloads creation of event vectors i.e., aggregation of 8B objects (mbufs/ptrs/u64s) into a rte_event_vector from the CPU thereby reducing the overhead of allocating the vector and maintaining vector state. Applications can create a vector adapter a

[PATCH v2 3/3] app/eventdev: add vector adapter performance test

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh Add performance test for event vector adapter. Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/evt_common.h | 9 +- app/test-eventdev/evt_options.c| 14 ++ app/test-eventdev/evt_options.h| 1 + app/test-eventdev/test_perf_atq.c | 61

[PATCH v2 2/3] eventdev: add default software vector adapter

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh When event device PMD doesn't support vector adapter, the library will fallback to software implementation which relies on service core to check for timeouts and vectorizes the objects on enqueue. Signed-off-by: Pavan Nikhilesh --- app/test/meson.build

[PATCH v2 1/3] eventdev: introduce event vector adapter

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). Applications can create a vector adapter associated with an event queue and enqueue objects to be vectorized. When the vector reaches the configured size or when

[PATCH v2 0/3] introduce event vector adapter

2025-05-29 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading the creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). An event vector adapter has the following working model: ┌──┐ │ Vector ├─┐ │ adapter0 │ │ └──┘ │

[25.11 PATCH v3 2/5] test/dma: add enqueue dequeue operations

2025-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add enqueue dequeue operations tests. Signed-off-by: Pavan Nikhilesh --- app/test/test_dmadev.c | 160 + app/test/test_dmadev_api.c | 76 -- 2 files changed, 228 insertions(+), 8 deletions(-) diff --git a/app/test/

[25.11 PATCH v3 5/5] eventdev: refactor DMA adapter ops

2025-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Migrate all invocations of rte_event_dma_adapter_op API to rte_dma_op. Signed-off-by: Pavan Nikhilesh Acked-by: Amit Prakash Shukla --- app/test-eventdev/test_perf_common.c | 6 +- app/test-eventdev/test_perf_common.h | 4 +- app/test/test_event_dma_a

[25.11 PATCH v3 4/5] dma/cnxk: implement enqueue dequeue ops

2025-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Implement DMA enqueue/dequeue operations when application enables it via configuration. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 78 drivers/dma/cnxk/cnxk_dmadev.h| 7 ++ drivers/dma/cnxk/cnxk_dmadev_fp.c | 189 +++

[25.11 PATCH v3 1/5] dmadev: add enqueue dequeue operations

2025-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Add enqueue/dequeue operations that use struct rte_dma_op to communicate with the DMA device. These operations need to be enabled at DMA device configuration time by setting the flag rte_dma_conf::enable_enq_deq if the device supports RTE_DMA_CAPA_OPS_ENQ_DEQ capability. W

[25.11 PATCH v3 3/5] app/dma-perf: add option to measure enq deq ops

2025-05-24 Thread pbhagavatula
From: Pavan Nikhilesh This patch adds a option to measure performanc of enq/deq operations in the benchmark app. Signed-off-by: Pavan Nikhilesh --- app/test-dma-perf/benchmark.c | 137 +++--- app/test-dma-perf/config.ini | 3 + app/test-dma-perf/main.c | 13

[25.11 PATCH v3 0/5] Introduce DMA enqueue/dequeue operations

2025-05-24 Thread pbhagavatula
From: Pavan Nikhilesh Introduce DMA enqueue/dequeue operations to the DMA device library. Add configuration flags to rte_dma_config instead of boolean for individual features. The enqueue/dequeue operations allow applications to communicate with the DMA device using the rte_dma_op structure, pr

[PATCH] eal: fix return value of lcore role

2025-05-20 Thread pbhagavatula
From: Pavan Nikhilesh Update rte_lcore_has_role() to return false instead of a negative value for invalid lcore IDs, removing the need for callers to pre-validate the ID. Fixes: b0a1502a277c ("eal: make semantics of lcore role function more intuitive") Cc: sta...@dpdk.org Suggested-by: Morten

[25.11 PATCH v2 5/5] eventdev: refactor DMA adapter ops

2025-05-19 Thread pbhagavatula
From: Pavan Nikhilesh Migrate all invocations of rte_event_dma_adapter_op API to rte_dma_op. Signed-off-by: Pavan Nikhilesh Acked-by: Amit Prakash Shukla --- app/test-eventdev/test_perf_common.c | 6 +- app/test-eventdev/test_perf_common.h | 4 +- app/test/test_event_dma_a

[25.11 PATCH v2 4/5] dma/cnxk: implement enqueue dequeue ops

2025-05-19 Thread pbhagavatula
From: Pavan Nikhilesh Implement DMA enqueue/dequeue operations when application enables it via configuration. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 78 drivers/dma/cnxk/cnxk_dmadev.h| 7 ++ drivers/dma/cnxk/cnxk_dmadev_fp.c | 189 +++

[25.11 PATCH v2 3/5] app/dma-perf: add option to measure enq deq ops

2025-05-19 Thread pbhagavatula
From: Pavan Nikhilesh This patch adds a option to measure performanc of enq/deq operations in the benchmark app. Signed-off-by: Pavan Nikhilesh --- app/test-dma-perf/benchmark.c | 137 +++--- app/test-dma-perf/config.ini | 3 + app/test-dma-perf/main.c | 13

[25.11 PATCH v2 2/5] test/dma: add enqueue dequeue operations

2025-05-19 Thread pbhagavatula
From: Pavan Nikhilesh Add enqueue dequeue operations tests. Signed-off-by: Pavan Nikhilesh --- app/test/test_dmadev.c | 160 + app/test/test_dmadev_api.c | 76 -- 2 files changed, 228 insertions(+), 8 deletions(-) diff --git a/app/test/

[25.11 PATCH v2 1/5] dmadev: add enqueue dequeue operations

2025-05-19 Thread pbhagavatula
From: Pavan Nikhilesh Add enqueue/dequeue operations that use struct rte_dma_op to communicate with the DMA device. These operations need to be enabled at DMA device configuration time by setting the flag rte_dma_conf::enable_enq_deq if the device supports RTE_DMA_CAPA_OPS_ENQ_DEQ capability. W

[25.11 PATCH v2 0/5] Introduce DMA enqueue/dequeue operations

2025-05-19 Thread pbhagavatula
From: Pavan Nikhilesh Introduce DMA enqueue/dequeue operations to the DMA device library. Add configuration flags to rte_dma_config instead of boolean for individual features. The enqueue/dequeue operations allow applications to communicate with the DMA device using the rte_dma_op structure, pr

[PATCH v2] cnxk: use stdatomic API

2025-05-12 Thread pbhagavatula
From: Pavan Nikhilesh Replace GCC inbuilt atomic functions with rte_atomic_xxx API. Signed-off-by: Pavan Nikhilesh --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 68 +-- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 25 + drivers/net/cnxk/cn10k_ethdev.c |

[PATCH] doc: announce DMA configuration structure changes

2025-04-16 Thread pbhagavatula
From: Pavan Nikhilesh Deprecate rte_dma_conf structure to allow for a more flexible configuration of DMA devices. The new structure will have a flags field instead of multiple boolean fields for each feature. Signed-off-by: Pavan Nikhilesh --- doc/guides/rel_notes/deprecation.rst | 6 ++ 1

[25.11 PATCH 3/3] eventdev: refactor DMA adapter ops

2025-04-16 Thread pbhagavatula
From: Pavan Nikhilesh Migrate all invocations of rte_event_dma_adapter_op API to rte_dma_op. Signed-off-by: Pavan Nikhilesh Acked-by: Amit Prakash Shukla --- app/test-eventdev/test_perf_common.c | 6 +- app/test-eventdev/test_perf_common.h | 4 +- app/test/test_event_dma_a

[25.11 PATCH 2/3] dma/cnxk: implement enqueue dequeue ops

2025-04-16 Thread pbhagavatula
From: Pavan Nikhilesh Implement DMA enqueue/dequeue operations when application enables it via configuration. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 58 ++--- drivers/dma/cnxk/cnxk_dmadev.h| 7 ++ drivers/dma/cnxk/cnxk_dmadev_fp.c | 140 ++

[25.11 PATCH 1/3] dmadev: add enqueue dequeue operations

2025-04-16 Thread pbhagavatula
From: Pavan Nikhilesh Add enqueue/dequeue operations that use struct rte_dma_op to communicate with the dma device. These operations need to be enabled at dma device configuration time by setting the flag rte_dma_conf::enable_enq_deq if the device supports RTE_DMA_CAPA_OPS_ENQ_DEQ capability. The

[25.11 PATCH 0/3] Introduce DMA enqueue/dequeue operations

2025-04-16 Thread pbhagavatula
From: Pavan Nikhilesh Introduce DMA enqueue/dequeue operations to the DMA device library. Add configuration flags to rte_dma_config instead of boolean for individual features. The enqueue/dequeue operations allow applications to communicate with the DMA device using the rte_dma_op structure, pr

[PATCH 0/3] introduce event vector adapter

2025-04-10 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading the creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). An event vector adapter has the following working model: ??? Vector ? ??? adapter0

[PATCH] event/cnxk: update timer arm routine

2025-04-10 Thread pbhagavatula
From: Pavan Nikhilesh Add additional HW state checks in timer arm routine to ensure HW-SW synchronization. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_worker.h | 140 ++- 1 file changed, 73 insertions(+), 67 deletions(-) diff --git a/drivers/event/cn

[PATCH 3/3] app/eventdev: add vector adapter performance test

2025-04-10 Thread pbhagavatula
From: Pavan Nikhilesh Add performance test for event vector adapter. Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/evt_common.h | 9 +- app/test-eventdev/evt_options.c| 14 ++ app/test-eventdev/evt_options.h| 1 + app/test-eventdev/test_perf_atq.c | 61

[PATCH 2/3] eventdev: add default software vector adapter

2025-04-10 Thread pbhagavatula
From: Pavan Nikhilesh When event device PMD doesn't support vector adapter, the library will fallback to software implementation which relies on service core to check for timeouts and vectorizes the objects on enqueue. Signed-off-by: Pavan Nikhilesh --- app/test/meson.build

[PATCH 1/3] eventdev: introduce event vector adapter

2025-04-10 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). Applications can create a vector adapter associated with an event queue and enqueue objects to be vectorized. When the vector reaches the configured size or when

[PATCH] devtools: exclude atomic checks for common cnxk

2025-03-27 Thread pbhagavatula
From: Pavan Nikhilesh Since driver/common/cnxk has common code that is used across multiple platforms, allow use of GCC builtin atomic functions. Signed-off-by: Pavan Nikhilesh --- Rest of drivers i.e., drivers/*/cnxk have been migrated to use stdatomics in: https://patchwork.dpdk.org/projec

[PATCH] cnxk: use stdatomic API

2025-03-27 Thread pbhagavatula
From: Pavan Nikhilesh Replace GCC inbuilt atomic functions with rte_atomic_xxx API. Signed-off-by: Pavan Nikhilesh --- drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 36 ++- drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 20 +-- drivers/net/cnxk/cn10k_tx.h | 42

[RFC v2 2/3] dma/cnxk: implement enqueue dequeue ops

2025-03-26 Thread pbhagavatula
From: Pavan Nikhilesh Implement DMA enqueue/dequeue operations when application enables it via configuration. Signed-off-by: Pavan Nikhilesh --- drivers/dma/cnxk/cnxk_dmadev.c| 25 +- drivers/dma/cnxk/cnxk_dmadev.h| 7 ++ drivers/dma/cnxk/cnxk_dmadev_fp.c | 140 +

[RFC v2 0/3] Introduce DMA enqueue/dequeue operations

2025-03-26 Thread pbhagavatula
From: Pavan Nikhilesh Introduce DMA enqueue/dequeue operations to the DMA device library. The enqueue/dequeue operations allow applications to communicate with the DMA device using the rte_dma_op structure, providing a more flexible and efficient way to manage DMA operations. The programming mo

[RFC v2 3/3] eventdev: refactor DMA adapter ops

2025-03-26 Thread pbhagavatula
From: Pavan Nikhilesh Migrate all invocations of rte_event_dma_adapter_op API to rte_dma_op. Signed-off-by: Pavan Nikhilesh Acked-by: Amit Prakash Shukla --- app/test-eventdev/test_perf_common.c | 6 +- app/test-eventdev/test_perf_common.h | 4 +- app/test/test_event_dma_a

[RFC v2 1/3] dmadev: add enqueue dequeue operations

2025-03-26 Thread pbhagavatula
From: Pavan Nikhilesh Add enqueue/dequeue operations that use struct rte_dma_op to communicate with the dma device. These operations need to be enabled at dma device configuration time by setting the flag rte_dma_conf::enable_enq_deq if the device supports RTE_DMA_CAPA_OPS_ENQ_DEQ capability. The

[RFC 1/2] eventdev: introduce event vector adapter

2025-03-26 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). Applications can create a vector adapter associated with an event queue and enqueue objects to be vectorized. When the vector reaches the configured size or when

[RFC 2/2] eventdev: add default software vector adapter

2025-03-26 Thread pbhagavatula
From: Pavan Nikhilesh When event device PMD doesn't support vector adapter, the library will fallback to software implementation which relies on service core to check for timeouts and vectorizes the objects on enqueue. Signed-off-by: Pavan Nikhilesh --- lib/eventdev/eventdev_pmd.h

[RFC 0/2] introduce event vector adapter

2025-03-26 Thread pbhagavatula
From: Pavan Nikhilesh The event vector adapter supports offloading the creation of event vectors by vectorizing objects (mbufs/ptrs/u64s). An event vector adapter has the following working model: ┌──┐ │ Vector ├─┐ │ adapter0 │ │ └──┘ │

[PATCH] config/arm: add crypto to cn9k soc

2025-03-08 Thread pbhagavatula
From: Pavan Nikhilesh Add crypto as extra march feature to cn9k soc. Signed-off-by: Pavan Nikhilesh --- config/arm/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/config/arm/meson.build b/config/arm/meson.build index 7f85b088c9..a97a28ebb7 100644 --- a/config/arm/meson.build ++

[PATCH] config/arm: fix march features not being set

2025-03-08 Thread pbhagavatula
From: Pavan Nikhilesh Fix extra_march_features not being added to mcpu flags when SoC configuration advertises them. Fixes: c02c01dbf907 ("config/arm: prefer strict use of -mcpu if supported") Signed-off-by: Pavan Nikhilesh --- config/arm/meson.build | 11 --- 1 file changed, 8 insert

[PATCH v2] devtools: fix regex of skip files

2025-03-06 Thread pbhagavatula
From: Pavan Nikhilesh SKIP_FILES should include the path of the file along with the name. Update the regex to match the entire path. Fixes: dd88f51a5725 ("devtools: forbid DPDK API in cnxk base driver") Fixes: 2b843cac232e ("drivers: use per line logging in helpers") Signed-off-by: Pavan Nikhil

[PATCH] devtools: fix regex of cnxk skip files

2025-03-06 Thread pbhagavatula
From: Pavan Nikhilesh SKIP_FILES should include the path of the file. Update the regex to match the path. Fixes: dd88f51a5725 ("devtools: forbid DPDK API in cnxk base driver") Signed-off-by: Pavan Nikhilesh --- devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] event/cnxk: fix incorrect template macros

2024-11-04 Thread pbhagavatula
From: Pavan Nikhilesh Fix incorrect template macros used for dual workslot functions. Fixes: a83fc0f4e118 ("event/cnxk: remove single event enqueue and dequeue") Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn9k_worker.h | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH v2] graph: fix memory leak in node clone

2024-11-01 Thread pbhagavatula
From: Pavan Nikhilesh Free memory allocated for the node when xstats memory allocation fails. Coverity issue: 445529 Fixes: 070db97e017b ("graph: support node xstats") Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Fix one more leak. (Huichao cai) lib/graph/node.c | 4 ++-- 1 file changed,

[PATCH] graph: fix memory leak in node clone

2024-10-30 Thread pbhagavatula
From: Pavan Nikhilesh Free memory allocated for the node when xstats memory allocation fails. Coverity issue: 445529 Fixes: 070db97e017b ("graph: support node xstats") Signed-off-by: Pavan Nikhilesh --- lib/graph/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/g

[PATCH v8 10/22] event/cnxk: add CN20K event port profile switch

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event port profile switch. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 1 + drivers/event/cnxk/cn20k_worker.c | 11 +++ drivers/event/cnxk/cn20k_worker.h | 1 + 3 files changed, 13 insertions(+) diff --git a/drivers/ev

[PATCH v8 02/22] common/cnxk: implement SSO HW info

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO HW info mbox to get hardware capabilities, and reuse them instead of depending on hardcoded values. Remove redundant includes. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_mbox.h | 28 ++ drivers/common/cnxk/roc_sso.c

[PATCH v8 13/22] event/cnxk: add CN20K device stop and close

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add event device stop and close callback functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/event/cnxk/cn20k_eventdev.c b/drivers/event/cnxk/cn20k_eventdev.c

[PATCH v8 12/22] event/cnxk: add CN20K device start

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K start function along with few cleanup API's to maintain sanity. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 103 +-- drivers/event/cnxk/cn20k_eventdev.c | 76 drivers/event/cnxk/cnxk_comm

[PATCH v8 09/22] event/cnxk: add CN20K event port quiesce

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event port quiesce function. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 60 + 1 file changed, 60 insertions(+) diff --git a/drivers/event/cnxk/cn20k_eventdev.c b/drivers/event/cnxk/cn20k_eventdev.c inde

[PATCH v8 21/22] common/cnxk: update timer base code

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Update event timer base code to support configuring HW accelerated timer arm and cancel. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/hw/tim.h| 5 ++ drivers/common/cnxk/roc_mbox.h | 38 - drivers/common/cnxk/roc_tim.c | 84 ++

[PATCH v8 05/22] event/cnxk: add CN20k event queue configuration

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add setup and release functions for event queues i.e. SSO HWGRPs. Allocate buffers in DRAM that hold inflight events. Register device args to modify inflight event buffer count, HWGRP QoS and stash. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c |

[PATCH v8 11/22] event/cnxk: add CN20K event port preschedule

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event port preschedule modify and preschedule functions. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/hw/ssow.h | 1 + drivers/event/cnxk/cn20k_eventdev.c | 2 ++ drivers/event/cnxk/cn20k_worker.c | 30 + drivers/e

[PATCH v8 04/22] event/cnxk: add CN20K device config

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event device configuration that attaches the requested number of SSO HWS(event ports) and HWGRP(event queues) LFs to the RVU PF/VF. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 36 + 1 file changed, 36 inse

[PATCH v8 19/22] common/cnxk: add SSO event aggregator

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add configuration APIs for CN20K SSO event aggregator which allows SSO to generate event vectors. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/hw/sso.h| 33 drivers/common/cnxk/roc_mbox.h | 21 +++ drivers/common/cnxk/roc_model.h | 13 ++

[PATCH v8 01/22] event/cnxk: use stdatomic API

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Replace gcc inbuilt __atomic_xxx intrinsics with rte_atomic_xxx API. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Rebase and remove single dequeue and enqueue functions. v3 Changes: - Remove __atomic builtins. v4 Changes: - Rebase onto next-event tree. v5 Changes: - Re

[PATCH v8 07/22] event/cnxk: add CN20K SSO enqueue fast path

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K SSO GWS fastpath event device enqueue functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 20 +- drivers/event/cnxk/cn20k_worker.c | 384 drivers/event/cnxk/cn20k_worker.h | 21 ++ drivers/event/

[PATCH v8 06/22] event/cnxk: add CN20K event port configuration

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO HWS a.k.a event port setup, release, link, unlink functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 63 ++- drivers/event/cnxk/cn20k_eventdev.c | 174 drivers/event/cnxk/cn20k_eventdev.h

[PATCH v8 03/22] event/cnxk: add CN20K specific device probe

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add platform specific event device probe and remove, also add event device info get function. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 23 --- doc/guides/rel_notes/release_24_11.rst | 4 ++ drivers/common/cnxk/roc_sso.c | 1

[PATCH v8 08/22] event/cnxk: add CN20K SSO dequeue fast path

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K SSO GWS event dequeue fastpath functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 5 + drivers/event/cnxk/cn20k_worker.c | 54 +++ drivers/event/cnxk/cn20k_worker.h | 137 +++- 3 files chang

[PATCH v8 22/22] event/cnxk: add CN20K timer adapter

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add event timer adapter support for CN20K platform. Implement new HWWQE insertion feature supported by CN20K platform. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_tim.c| 6 +- drivers/event/cnxk/cn20k_eventdev.c | 16 ++- drivers/event/cnxk/cn20

[PATCH v8 20/22] event/cnxk: add Rx/Tx event vector support

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add Event vector support for CN20K Rx/Tx adapter. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 185 ++- drivers/event/cnxk/cn20k_tx_worker.h | 84 ++ drivers/event/cnxk/cn20k_worker.h| 63

[PATCH v8 17/22] event/cnxk: support CN20K Tx adapter

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 126 +++ drivers/event/cnxk/cn20k_eventdev.h | 4 + drivers/event/cnxk/cn20k_tx_worker.h | 16 3 files changed, 146 insertions(

[PATCH v8 18/22] event/cnxk: support CN20K Tx adapter fast path

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 29 +++ drivers/event/cnxk/cn20k_tx_worker.h | 176 +++ drivers/event/cnxk/meson.build | 20

[PATCH v8 16/22] event/cnxk: support CN20K Rx adapter fast path

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Rx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 122 - drivers/event/cnxk/cn20k_worker.c | 54 -- drivers/event/cnxk/cn20k_worker.h | 165

[PATCH v8 15/22] event/cnxk: support CN20K Rx adapter

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add support for CN20K event eth Rx adapter. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 121 +++- drivers/event/cnxk/cn20k_eventdev.h | 4 + 2 files changed, 124 insertions(+), 1 deletion(-) diff --git a/drivers/even

[PATCH v8 14/22] event/cnxk: add CN20K xstats, selftest and dump

2024-10-28 Thread pbhagavatula
From: Pavan Nikhilesh Add selftest to verify SSO, xstats to get queue specific stats and add function to dump internal state of SSO. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c| 7 +++ drivers/event/cnxk/cn20k_eventdev.c | 12 drive

[PATCH v7 16/22] event/cnxk: support CN20K Rx adapter fast path

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Rx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 122 - drivers/event/cnxk/cn20k_worker.c | 54 -- drivers/event/cnxk/cn20k_worker.h | 165

[PATCH v7 22/22] event/cnxk: add CN20K timer adapter

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add event timer adapter support for CN20K platform. Implement new HWWQE insertion feature supported by CN20K platform. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_tim.c| 6 +- drivers/event/cnxk/cn20k_eventdev.c | 16 ++- drivers/event/cnxk/cn20

[PATCH v7 03/22] event/cnxk: add CN20K specific device probe

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add platform specific event device probe and remove, also add event device info get function. Signed-off-by: Pavan Nikhilesh --- doc/guides/eventdevs/cnxk.rst | 23 --- doc/guides/rel_notes/release_24_11.rst | 4 ++ drivers/common/cnxk/roc_sso.c | 1

[PATCH v7 18/22] event/cnxk: support CN20K Tx adapter fast path

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter fastpath operations. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 29 +++ drivers/event/cnxk/cn20k_tx_worker.h | 176 +++ drivers/event/cnxk/meson.build | 20

[PATCH v7 08/22] event/cnxk: add CN20K SSO dequeue fast path

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K SSO GWS event dequeue fastpath functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 5 + drivers/event/cnxk/cn20k_worker.c | 54 +++ drivers/event/cnxk/cn20k_worker.h | 137 +++- 3 files chang

[PATCH v7 14/22] event/cnxk: add CN20K xstats, selftest and dump

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add selftest to verify SSO, xstats to get queue specific stats and add function to dump internal state of SSO. Signed-off-by: Pavan Nikhilesh --- app/test/test_eventdev.c| 7 +++ drivers/event/cnxk/cn20k_eventdev.c | 12 drive

[PATCH v7 15/22] event/cnxk: support CN20K Rx adapter

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add support for CN20K event eth Rx adapter. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 121 +++- drivers/event/cnxk/cn20k_eventdev.h | 4 + 2 files changed, 124 insertions(+), 1 deletion(-) diff --git a/drivers/even

[PATCH v6 15/22] event/cnxk: support CN20K Rx adapter

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add support for CN20K event eth Rx adapter. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 121 +++- drivers/event/cnxk/cn20k_eventdev.h | 4 + 2 files changed, 124 insertions(+), 1 deletion(-) diff --git a/drivers/even

[PATCH v7 05/22] event/cnxk: add CN20k event queue configuration

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add setup and release functions for event queues i.e. SSO HWGRPs. Allocate buffers in DRAM that hold inflight events. Register device args to modify inflight event buffer count, HWGRP QoS and stash. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c |

[PATCH v7 19/22] common/cnxk: add SSO event aggregator

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add configuration APIs for CN20K SSO event aggregator which allows SSO to generate event vectors. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/hw/sso.h| 33 drivers/common/cnxk/roc_mbox.h | 21 +++ drivers/common/cnxk/roc_model.h | 13 ++

[PATCH v7 20/22] event/cnxk: add Rx/Tx event vector support

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add Event vector support for CN20K Rx/Tx adapter. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 185 ++- drivers/event/cnxk/cn20k_tx_worker.h | 84 ++ drivers/event/cnxk/cn20k_worker.h| 63

[PATCH v7 21/22] common/cnxk: update timer base code

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Update event timer base code to support configuring HW accelerated timer arm and cancel. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/hw/tim.h| 5 ++ drivers/common/cnxk/roc_mbox.h | 38 - drivers/common/cnxk/roc_tim.c | 84 ++

[PATCH v7 17/22] event/cnxk: support CN20K Tx adapter

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add support for event eth Tx adapter. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 126 +++ drivers/event/cnxk/cn20k_eventdev.h | 4 + drivers/event/cnxk/cn20k_tx_worker.h | 16 3 files changed, 146 insertions(

[PATCH v7 11/22] event/cnxk: add CN20K event port preschedule

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event port preschedule modify and preschedule functions. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/hw/ssow.h | 1 + drivers/event/cnxk/cn20k_eventdev.c | 2 ++ drivers/event/cnxk/cn20k_worker.c | 30 + drivers/e

[PATCH v7 13/22] event/cnxk: add CN20K device stop and close

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add event device stop and close callback functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/event/cnxk/cn20k_eventdev.c b/drivers/event/cnxk/cn20k_eventdev.c

[PATCH v7 12/22] event/cnxk: add CN20K device start

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K start function along with few cleanup API's to maintain sanity. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 103 +-- drivers/event/cnxk/cn20k_eventdev.c | 76 drivers/event/cnxk/cnxk_comm

[PATCH v7 10/22] event/cnxk: add CN20K event port profile switch

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event port profile switch. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 1 + drivers/event/cnxk/cn20k_worker.c | 11 +++ drivers/event/cnxk/cn20k_worker.h | 1 + 3 files changed, 13 insertions(+) diff --git a/drivers/ev

[PATCH v7 09/22] event/cnxk: add CN20K event port quiesce

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event port quiesce function. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 60 + 1 file changed, 60 insertions(+) diff --git a/drivers/event/cnxk/cn20k_eventdev.c b/drivers/event/cnxk/cn20k_eventdev.c inde

[PATCH v7 07/22] event/cnxk: add CN20K SSO enqueue fast path

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K SSO GWS fastpath event device enqueue functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 20 +- drivers/event/cnxk/cn20k_worker.c | 384 drivers/event/cnxk/cn20k_worker.h | 21 ++ drivers/event/

[PATCH v7 06/22] event/cnxk: add CN20K event port configuration

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO HWS a.k.a event port setup, release, link, unlink functions. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_eventdev.c | 63 ++- drivers/event/cnxk/cn20k_eventdev.c | 174 drivers/event/cnxk/cn20k_eventdev.h

[PATCH v7 01/22] event/cnxk: use stdatomic API

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Replace gcc inbuilt __atomic_xxx intrinsics with rte_atomic_xxx API. Signed-off-by: Pavan Nikhilesh --- Depends-on: series-33602 ("event/cnxk: fix getwork write data on reconfig") v2 Changes: - Rebase and remove single dequeue and enqueue functions. v3 Changes: - Remove _

[PATCH v7 04/22] event/cnxk: add CN20K device config

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add CN20K event device configuration that attaches the requested number of SSO HWS(event ports) and HWGRP(event queues) LFs to the RVU PF/VF. Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn20k_eventdev.c | 36 + 1 file changed, 36 inse

[PATCH v7 02/22] common/cnxk: implement SSO HW info

2024-10-25 Thread pbhagavatula
From: Pavan Nikhilesh Add SSO HW info mbox to get hardware capabilities, and reuse them instead of depending on hardcoded values. Remove redundant includes. Signed-off-by: Pavan Nikhilesh --- drivers/common/cnxk/roc_mbox.h | 28 ++ drivers/common/cnxk/roc_sso.c

  1   2   3   4   5   6   7   8   9   10   >