* [PATCH v1 0/2] app/bbdev: minor application updates
@ 2024-10-25 17:57 Nicolas Chautru
2024-10-25 17:57 ` [PATCH v1 1/2] app/bbdev: add capture of queue dump Nicolas Chautru
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Nicolas Chautru @ 2024-10-25 17:57 UTC (permalink / raw)
To: dev, maxime.coquelin; +Cc: hemant.agrawal, hernan.vargas, Nicolas Chautru
Hi Maxime, all,
Adding a couple of changes to the built in test application for bbdev
test on top of previous changes.
Thanks,
Nic
Nicolas Chautru (2):
app/bbdev: add capture of queue dump
app/bbdev: add support for interrupt disable
app/test-bbdev/test_bbdev_perf.c | 40 ++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v1 1/2] app/bbdev: add capture of queue dump
2024-10-25 17:57 [PATCH v1 0/2] app/bbdev: minor application updates Nicolas Chautru
@ 2024-10-25 17:57 ` Nicolas Chautru
2024-10-28 9:37 ` Hemant Agrawal
2024-11-08 9:00 ` Maxime Coquelin
2024-10-25 17:57 ` [PATCH v1 2/2] app/bbdev: add support for interrupt disable Nicolas Chautru
2024-11-08 10:32 ` [PATCH v1 0/2] app/bbdev: minor application updates Maxime Coquelin
2 siblings, 2 replies; 8+ messages in thread
From: Nicolas Chautru @ 2024-10-25 17:57 UTC (permalink / raw)
To: dev, maxime.coquelin; +Cc: hemant.agrawal, hernan.vargas, Nicolas Chautru
Capturing additional queue dump information in the
bbdev-test application using the api introduced earlier.
Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
---
app/test-bbdev/test_bbdev_perf.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
index 9be360b225..405c22de44 100644
--- a/app/test-bbdev/test_bbdev_perf.c
+++ b/app/test-bbdev/test_bbdev_perf.c
@@ -111,6 +111,8 @@ static uint32_t ldpc_cap_flags;
/* FFT window width predefined on device and on vector. */
static int fft_window_width_dev;
+bool dump_ops = true;
+
/* Represents tested active devices */
static struct active_device {
const char *driver_name;
@@ -3109,6 +3111,20 @@ run_test_case_on_device(test_case_function *test_case_func, uint8_t dev_id,
/* Run test case function */
t_ret = test_case_func(ad, op_params);
+ if (dump_ops) {
+ /* Dump queue information in local file. */
+ static FILE *fd;
+ fd = fopen("./dump_bbdev_queue_ops.txt", "w");
+ if (fd == NULL) {
+ printf("Open dump file error.\n");
+ return -1;
+ }
+ rte_bbdev_queue_ops_dump(ad->dev_id, ad->queue_ids[i], fd);
+ fclose(fd);
+ /* Run it once only. */
+ dump_ops = false;
+ }
+
/* Free active device resources and return */
free_buffers(ad, op_params);
return t_ret;
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v1 2/2] app/bbdev: add support for interrupt disable
2024-10-25 17:57 [PATCH v1 0/2] app/bbdev: minor application updates Nicolas Chautru
2024-10-25 17:57 ` [PATCH v1 1/2] app/bbdev: add capture of queue dump Nicolas Chautru
@ 2024-10-25 17:57 ` Nicolas Chautru
2024-10-28 9:38 ` Hemant Agrawal
2024-11-08 9:00 ` Maxime Coquelin
2024-11-08 10:32 ` [PATCH v1 0/2] app/bbdev: minor application updates Maxime Coquelin
2 siblings, 2 replies; 8+ messages in thread
From: Nicolas Chautru @ 2024-10-25 17:57 UTC (permalink / raw)
To: dev, maxime.coquelin; +Cc: hemant.agrawal, hernan.vargas, Nicolas Chautru
Adding support for calling the interrupt disable api
for coverage.
Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
---
app/test-bbdev/test_bbdev_perf.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
index 405c22de44..6ee1ca34b2 100644
--- a/app/test-bbdev/test_bbdev_perf.c
+++ b/app/test-bbdev/test_bbdev_perf.c
@@ -3535,6 +3535,10 @@ throughput_intr_lcore_ldpc_dec(void *arg)
rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
}
+ TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
+ "Failed to disable interrupts for dev: %u, queue_id: %u",
+ tp->dev_id, queue_id);
+
return TEST_SUCCESS;
}
@@ -3629,6 +3633,10 @@ throughput_intr_lcore_dec(void *arg)
rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
}
+ TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
+ "Failed to disable interrupts for dev: %u, queue_id: %u",
+ tp->dev_id, queue_id);
+
return TEST_SUCCESS;
}
@@ -3718,6 +3726,10 @@ throughput_intr_lcore_enc(void *arg)
rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
}
+ TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
+ "Failed to disable interrupts for dev: %u, queue_id: %u",
+ tp->dev_id, queue_id);
+
return TEST_SUCCESS;
}
@@ -3810,6 +3822,10 @@ throughput_intr_lcore_ldpc_enc(void *arg)
rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
}
+ TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
+ "Failed to disable interrupts for dev: %u, queue_id: %u",
+ tp->dev_id, queue_id);
+
return TEST_SUCCESS;
}
@@ -3901,6 +3917,10 @@ throughput_intr_lcore_fft(void *arg)
rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
}
+ TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
+ "Failed to disable interrupts for dev: %u, queue_id: %u",
+ tp->dev_id, queue_id);
+
return TEST_SUCCESS;
}
@@ -3986,6 +4006,10 @@ throughput_intr_lcore_mldts(void *arg)
rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
}
+ TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
+ "Failed to disable interrupts for dev: %u, queue_id: %u",
+ tp->dev_id, queue_id);
+
return TEST_SUCCESS;
}
--
2.34.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 1/2] app/bbdev: add capture of queue dump
2024-10-25 17:57 ` [PATCH v1 1/2] app/bbdev: add capture of queue dump Nicolas Chautru
@ 2024-10-28 9:37 ` Hemant Agrawal
2024-11-08 9:00 ` Maxime Coquelin
1 sibling, 0 replies; 8+ messages in thread
From: Hemant Agrawal @ 2024-10-28 9:37 UTC (permalink / raw)
To: dev
Reviewed-by: Hemant Agrawal <hemant.agrawal@nxp.com>
On 25-10-2024 23:27, Nicolas Chautru wrote:
> Capturing additional queue dump information in the
> bbdev-test application using the api introduced earlier.
>
> Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
> ---
> app/test-bbdev/test_bbdev_perf.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
> index 9be360b225..405c22de44 100644
> --- a/app/test-bbdev/test_bbdev_perf.c
> +++ b/app/test-bbdev/test_bbdev_perf.c
> @@ -111,6 +111,8 @@ static uint32_t ldpc_cap_flags;
> /* FFT window width predefined on device and on vector. */
> static int fft_window_width_dev;
>
> +bool dump_ops = true;
> +
> /* Represents tested active devices */
> static struct active_device {
> const char *driver_name;
> @@ -3109,6 +3111,20 @@ run_test_case_on_device(test_case_function *test_case_func, uint8_t dev_id,
> /* Run test case function */
> t_ret = test_case_func(ad, op_params);
>
> + if (dump_ops) {
> + /* Dump queue information in local file. */
> + static FILE *fd;
> + fd = fopen("./dump_bbdev_queue_ops.txt", "w");
> + if (fd == NULL) {
> + printf("Open dump file error.\n");
> + return -1;
> + }
> + rte_bbdev_queue_ops_dump(ad->dev_id, ad->queue_ids[i], fd);
> + fclose(fd);
> + /* Run it once only. */
> + dump_ops = false;
> + }
> +
> /* Free active device resources and return */
> free_buffers(ad, op_params);
> return t_ret;
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 2/2] app/bbdev: add support for interrupt disable
2024-10-25 17:57 ` [PATCH v1 2/2] app/bbdev: add support for interrupt disable Nicolas Chautru
@ 2024-10-28 9:38 ` Hemant Agrawal
2024-11-08 9:00 ` Maxime Coquelin
1 sibling, 0 replies; 8+ messages in thread
From: Hemant Agrawal @ 2024-10-28 9:38 UTC (permalink / raw)
To: dev
Reviewed-by: Hemant Agrawal <hemant.agrawal@nxp.com>
On 25-10-2024 23:27, Nicolas Chautru wrote:
> Adding support for calling the interrupt disable api
> for coverage.
>
> Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
> ---
> app/test-bbdev/test_bbdev_perf.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
> index 405c22de44..6ee1ca34b2 100644
> --- a/app/test-bbdev/test_bbdev_perf.c
> +++ b/app/test-bbdev/test_bbdev_perf.c
> @@ -3535,6 +3535,10 @@ throughput_intr_lcore_ldpc_dec(void *arg)
> rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
> }
>
> + TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
> + "Failed to disable interrupts for dev: %u, queue_id: %u",
> + tp->dev_id, queue_id);
> +
> return TEST_SUCCESS;
> }
>
> @@ -3629,6 +3633,10 @@ throughput_intr_lcore_dec(void *arg)
> rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
> }
>
> + TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
> + "Failed to disable interrupts for dev: %u, queue_id: %u",
> + tp->dev_id, queue_id);
> +
> return TEST_SUCCESS;
> }
>
> @@ -3718,6 +3726,10 @@ throughput_intr_lcore_enc(void *arg)
> rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
> }
>
> + TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
> + "Failed to disable interrupts for dev: %u, queue_id: %u",
> + tp->dev_id, queue_id);
> +
> return TEST_SUCCESS;
> }
>
> @@ -3810,6 +3822,10 @@ throughput_intr_lcore_ldpc_enc(void *arg)
> rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
> }
>
> + TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
> + "Failed to disable interrupts for dev: %u, queue_id: %u",
> + tp->dev_id, queue_id);
> +
> return TEST_SUCCESS;
> }
>
> @@ -3901,6 +3917,10 @@ throughput_intr_lcore_fft(void *arg)
> rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
> }
>
> + TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
> + "Failed to disable interrupts for dev: %u, queue_id: %u",
> + tp->dev_id, queue_id);
> +
> return TEST_SUCCESS;
> }
>
> @@ -3986,6 +4006,10 @@ throughput_intr_lcore_mldts(void *arg)
> rte_atomic_store_explicit(&tp->nb_dequeued, 0, rte_memory_order_relaxed);
> }
>
> + TEST_ASSERT_SUCCESS(rte_bbdev_queue_intr_disable(tp->dev_id, queue_id),
> + "Failed to disable interrupts for dev: %u, queue_id: %u",
> + tp->dev_id, queue_id);
> +
> return TEST_SUCCESS;
> }
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 1/2] app/bbdev: add capture of queue dump
2024-10-25 17:57 ` [PATCH v1 1/2] app/bbdev: add capture of queue dump Nicolas Chautru
2024-10-28 9:37 ` Hemant Agrawal
@ 2024-11-08 9:00 ` Maxime Coquelin
1 sibling, 0 replies; 8+ messages in thread
From: Maxime Coquelin @ 2024-11-08 9:00 UTC (permalink / raw)
To: Nicolas Chautru, dev; +Cc: hemant.agrawal, hernan.vargas
On 10/25/24 19:57, Nicolas Chautru wrote:
> Capturing additional queue dump information in the
> bbdev-test application using the api introduced earlier.
>
> Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
> ---
> app/test-bbdev/test_bbdev_perf.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
> index 9be360b225..405c22de44 100644
> --- a/app/test-bbdev/test_bbdev_perf.c
> +++ b/app/test-bbdev/test_bbdev_perf.c
> @@ -111,6 +111,8 @@ static uint32_t ldpc_cap_flags;
> /* FFT window width predefined on device and on vector. */
> static int fft_window_width_dev;
>
> +bool dump_ops = true;
> +
> /* Represents tested active devices */
> static struct active_device {
> const char *driver_name;
> @@ -3109,6 +3111,20 @@ run_test_case_on_device(test_case_function *test_case_func, uint8_t dev_id,
> /* Run test case function */
> t_ret = test_case_func(ad, op_params);
>
> + if (dump_ops) {
> + /* Dump queue information in local file. */
> + static FILE *fd;
> + fd = fopen("./dump_bbdev_queue_ops.txt", "w");
> + if (fd == NULL) {
> + printf("Open dump file error.\n");
> + return -1;
> + }
> + rte_bbdev_queue_ops_dump(ad->dev_id, ad->queue_ids[i], fd);
> + fclose(fd);
> + /* Run it once only. */
> + dump_ops = false;
> + }
> +
> /* Free active device resources and return */
> free_buffers(ad, op_params);
> return t_ret;
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 2/2] app/bbdev: add support for interrupt disable
2024-10-25 17:57 ` [PATCH v1 2/2] app/bbdev: add support for interrupt disable Nicolas Chautru
2024-10-28 9:38 ` Hemant Agrawal
@ 2024-11-08 9:00 ` Maxime Coquelin
1 sibling, 0 replies; 8+ messages in thread
From: Maxime Coquelin @ 2024-11-08 9:00 UTC (permalink / raw)
To: Nicolas Chautru, dev; +Cc: hemant.agrawal, hernan.vargas
On 10/25/24 19:57, Nicolas Chautru wrote:
> Adding support for calling the interrupt disable api
> for coverage.
>
> Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
> ---
> app/test-bbdev/test_bbdev_perf.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 0/2] app/bbdev: minor application updates
2024-10-25 17:57 [PATCH v1 0/2] app/bbdev: minor application updates Nicolas Chautru
2024-10-25 17:57 ` [PATCH v1 1/2] app/bbdev: add capture of queue dump Nicolas Chautru
2024-10-25 17:57 ` [PATCH v1 2/2] app/bbdev: add support for interrupt disable Nicolas Chautru
@ 2024-11-08 10:32 ` Maxime Coquelin
2 siblings, 0 replies; 8+ messages in thread
From: Maxime Coquelin @ 2024-11-08 10:32 UTC (permalink / raw)
To: Nicolas Chautru, dev; +Cc: hemant.agrawal, hernan.vargas
On 10/25/24 19:57, Nicolas Chautru wrote:
> Hi Maxime, all,
>
> Adding a couple of changes to the built in test application for bbdev
> test on top of previous changes.
>
> Thanks,
> Nic
>
> Nicolas Chautru (2):
> app/bbdev: add capture of queue dump
> app/bbdev: add support for interrupt disable
>
> app/test-bbdev/test_bbdev_perf.c | 40 ++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
Applied to next-baseband/for-main
Thanks,
Maxime
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-11-08 10:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-25 17:57 [PATCH v1 0/2] app/bbdev: minor application updates Nicolas Chautru
2024-10-25 17:57 ` [PATCH v1 1/2] app/bbdev: add capture of queue dump Nicolas Chautru
2024-10-28 9:37 ` Hemant Agrawal
2024-11-08 9:00 ` Maxime Coquelin
2024-10-25 17:57 ` [PATCH v1 2/2] app/bbdev: add support for interrupt disable Nicolas Chautru
2024-10-28 9:38 ` Hemant Agrawal
2024-11-08 9:00 ` Maxime Coquelin
2024-11-08 10:32 ` [PATCH v1 0/2] app/bbdev: minor application updates Maxime Coquelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).