[PATCH v2 0/7] event/dlb2: dlb2 hw resource management

2025-06-03 Thread Pravin Pathak
v2: [PATCH v1 3/7] Addressed issue with Fixes tag [PATCH v1 4/7] Renamed structure and Macros to avoid name space conflicts. [PATCH v1 4/7] Addressed Doxygen format feedback Pravin Pathak (6): event/dlb2: addresses deq failure

[PATCH v2 5/7] event/dlb2: avoid credit release race condition

2025-06-03 Thread Pravin Pathak
While unlinking ports, all associated credits should be released. This commit avoids race condition when main thread is unlinking while workers are running. Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v2 7/7] event/dlb2: return default credits based on HW version

2025-06-03 Thread Pravin Pathak
From: Tirthendu Sarkar dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should return the maximum available credits as supported by HW. Set maximum credits before device probing by checking HW version. Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/pf/dlb2_pf.c | 2 ++

[PATCH v2 4/7] event/dlb2: support managing history list resource

2025-06-03 Thread Pravin Pathak
B ports CQ depths * 2) * If alloc_hl_entries is not specified, then Total HL entries for the eventdev = num_ldb_ports * 64 Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 220 + drivers/event/dlb2/dl

[PATCH v2 6/7] event/dlb2: update qid depth xstat in vector path

2025-06-03 Thread Pravin Pathak
update QID depth xstats counter in vector dequeue path Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 6734e93eac..6dfb345de8 100644 --- a/drivers/event/dlb2/dlb2.c

[PATCH v2 1/7] event/dlb2: addresses deq failure when CQ depth <= 16

2025-06-03 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/dlb2/pf/dlb2_pf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v2 3/7] event/dlb2: return 96 single link ports for DLB2.5

2025-06-03 Thread Pravin Pathak
DLB 2.0 device has 64 single linked or directed ports. DLB 2.5 device has 96 single linked ports. API rte_event_dev_info_get() will return 64 directed ports for DLB 2.0 and 96 single linked ports for DLB2.5 Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed

[PATCH v2 2/7] event/dlb2: changes to correctly validate COS ID arguments

2025-06-03 Thread Pravin Pathak
: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 32 +++- drivers/event/dlb2/dlb2_priv.h | 1 - 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index a0e673b96b..58eb27f495 100644 --- a/drivers/event

[PATCH v1 4/7] event/dlb2: support managing history list resource

2025-05-08 Thread Pravin Pathak
B ports CQ depths * 2) * If alloc_hl_entries is not specified, then Total HL entries for the eventdev = num_ldb_ports * 64 Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 220 + drivers/event/dlb2/dl

[PATCH v1 1/7] event/dlb2: addresses deq failure when CQ depth <= 16

2025-05-08 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/dlb2/pf/dlb2_pf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v1 0/7] event/dlb2: dlb2 hw resource management

2025-05-08 Thread Pravin Pathak
resources management. Pravin Pathak (6): event/dlb2: addresses deq failure when CQ depth <= 16 event/dlb2: changes to correctly validate COS ID arguments event/dlb2: return 96 single link ports for DLB2.5 event/dlb2: support managing history list resource event/dlb2: avoid credit rele

[PATCH v1 7/7] event/dlb2: fix default credits in dlb2_eventdev_info_get()

2025-05-08 Thread Pravin Pathak
From: Tirthendu Sarkar dlb2_eventdev_info_get() that implements rte_event_dev_info_get() should return the maximum available credits as supported by HW. Set maximum credits before device probing by checking HW version. Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/pf/dlb2_pf.c | 2 ++

[PATCH v1 6/7] event/dlb2: update qid depth xstat in vector path

2025-05-08 Thread Pravin Pathak
update QID depth xstats counter in vector dequeue path Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index 5f3b816665..19fe973bff 100644 --- a/drivers/event/dlb2/dlb2.c

[PATCH v1 2/7] event/dlb2: changes to correctly validate COS ID arguments

2025-05-08 Thread Pravin Pathak
: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 32 +++- drivers/event/dlb2/dlb2_priv.h | 1 - 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c index a0e673b96b..58eb27f495 100644 --- a/drivers/event

[PATCH v1 5/7] event/dlb2: avoid credit release race condition

2025-05-08 Thread Pravin Pathak
While unlinking ports, all associated credits should be released. This commit avoids race condition when main thread is unlinking while workers are running. Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v1 3/7] event/dlb2: return 96 single link ports for DLB2.5

2025-05-08 Thread Pravin Pathak
DLB 2.0 device has 64 single linked or directed ports. DLB 2.5 device has 96 single linked ports. This commit fixes issue of rte_event_dev_info_get returning 64 instead of 96 single link ports for DLB2.5 Signed-off-by: Pravin Pathak --- drivers/event/dlb2/dlb2.c | 8 1 file changed, 4

[PATCH v1 0/7] event/dlb2: dlb2 hw resource management

2025-05-08 Thread Pravin Pathak
resources management. Pravin Pathak (6): event/dlb2: addresses deq failure when CQ depth <= 16 event/dlb2: changes to correctly validate COS ID arguments event/dlb2: return 96 single link ports for DLB2.5 event/dlb2: support managing history list resource event/dlb2: avoid credit rele

[PATCH v1 1/7] event/dlb2: addresses deq failure when CQ depth <= 16

2025-05-08 Thread Pravin Pathak
cachelines while dequeuing. Use PMD calculated CQ depth for cq_depth_mask calculation. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- drivers/event/dlb2/dlb2.c | 4 ++-- drivers/event/dlb2/pf/dlb2_pf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v1] event/dlb2: enhancement to DLB credit management

2025-02-25 Thread Pravin Pathak
Updates are added to enable releasing of unused credits by threads to avoid deadlock and starving of other active threads needing credits. It also adds compile time options to enable/disable credit checks. Signed-off-by: Pravin Pathak Signed-off-by: Tirthendu Sarkar --- .mailmap

[PATCH v2] eventdev: add port attribute for independent enqueue

2024-12-16 Thread pravin . pathak
From: Pravin Pathak Independent Enqueue support is added to DPDK 24.11. Adding support for RTE_EVENT_PORT_ATTR_INDEPENDENT_ENQ attribute to rte_event_port_attr_get() which was missing Signed-off-by: Pravin Pathak --- lib/eventdev/rte_eventdev.c | 8 lib/eventdev/rte_eventdev.h | 4

[PATCH v1] event/dlb2: add port attribute for independent enqueue

2024-12-12 Thread pravin . pathak
From: Pravin Pathak Independent Enqueue support is added to DPDK 24.11 Adding the attribute rte_event_port_attr_get() was missing This commit adds it to retrieve port attributes Signed-off-by: Pravin Pathak --- lib/eventdev/rte_eventdev.c | 8 lib/eventdev/rte_eventdev.h | 6