[PATCH 1/1] accel-config/test: Remove pasid_enabled restriction from test script
by Tony Zhu
Kernel removed the restriction because it broken accel-config. Failure
will happen during wq enable. Remove the checking from test script too.
Signed-off-by: Tony Zhu <tony.zhu(a)intel.com>
---
test/dsa_user_test_runner.sh | 5 -----
1 file changed, 5 deletions(-)
diff --git a/test/dsa_user_test_runner.sh b/test/dsa_user_test_runner.sh
index dfaa930..ae9010d 100755
--- a/test/dsa_user_test_runner.sh
+++ b/test/dsa_user_test_runner.sh
@@ -19,11 +19,6 @@ check_min_kver "5.6" || do_skip "kernel does not support idxd"
# skip if no pasid support as dsa_test does not support operation w/o pasid yet.
[ ! -f "/sys/bus/dsa/devices/$DSA/pasid_enabled" ] && echo "No SVM support" && exit "$EXIT_SKIP"
-pasid_en=$(cat /sys/bus/dsa/devices/$DSA/pasid_enabled)
-if [ "$pasid_en" -ne 1 ]; then
- exit "$EXIT_SKIP"
-fi
-
start_dsa()
{
configurable=$(cat /sys/bus/dsa/devices/$DSA/configurable)
--
2.27.0
1 month, 1 week
[PATCH v2 1/1] accel-config/test: Fix dsa_test reports opposite WQ mode output info
by Tony Zhu
Current output information to indicate a wq is shared or dedicated is
reversed for dsa_test. Fix and indicate the exact wq mode.
Signed-off-by: Tony Zhu <tony.zhu(a)intel.com>
Reviewed-by: Dave Jiang <dave.jiang(a)intel.com>
---
test/accel_test.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/accel_test.c b/test/accel_test.c
index e9e96aa..38fc450 100644
--- a/test/accel_test.c
+++ b/test/accel_test.c
@@ -224,9 +224,9 @@ int acctest_alloc(struct acctest_context *ctx, int shared, int dev_id, int wq_id
ctx->max_xfer_bits = bsr(ctx->max_xfer_size);
ctx->compl_size = accfg_device_get_compl_size(dev);
- info("alloc wq %d shared %d size %d addr %p batch sz %#x xfer sz %#x\n",
- ctx->wq_idx, ctx->dedicated, ctx->wq_size, ctx->wq_reg,
- ctx->max_batch_size, ctx->max_xfer_size);
+ info("alloc wq %d %s size %d addr %p batch sz %#x xfer sz %#x\n",
+ ctx->wq_idx, (ctx->dedicated == ACCFG_WQ_SHARED) ? "shared" : "dedicated",
+ ctx->wq_size, ctx->wq_reg, ctx->max_batch_size, ctx->max_xfer_size);
return 0;
}
--
2.27.0
1 month, 2 weeks
[PATCH v1] accel-config/test: Fix bug of setting max destination size
by Li Zhang
It's incorrect to use a fixed size for setting the max destination size,
replace it with setting wq_max_xfer_size to the max destination size in
descriptor register.
Signed-off-by: Li Zhang <li4.zhang(a)intel.com>
---
test/iaa.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/iaa.c b/test/iaa.c
index 7cc11c7..ad6c521 100644
--- a/test/iaa.c
+++ b/test/iaa.c
@@ -567,7 +567,7 @@ int iaa_compress_multi_task_nodes(struct acctest_context *ctx)
tsk_node->tsk->iaa_compr_flags = (IDXD_COMPRESS_FLAG_EOB_BFINAL |
IDXD_COMPRESS_FLAG_FLUSH_OUTPUT);
- tsk_node->tsk->iaa_max_dst_size = IAA_COMPRESS_MAX_DEST_SIZE;
+ tsk_node->tsk->iaa_max_dst_size = ctx->wq_max_xfer_size;
iaa_prep_compress(tsk_node->tsk);
tsk_node = tsk_node->next;
@@ -625,7 +625,7 @@ int iaa_decompress_multi_task_nodes(struct acctest_context *ctx)
tsk_node->tsk->iaa_compr_flags = (IDXD_COMPRESS_FLAG_EOB_BFINAL |
IDXD_COMPRESS_FLAG_FLUSH_OUTPUT);
- tsk_node->tsk->iaa_max_dst_size = IAA_DECOMPRESS_MAX_DEST_SIZE;
+ tsk_node->tsk->iaa_max_dst_size = ctx->wq_max_xfer_size;
iaa_prep_compress(tsk_node->tsk);
tsk_node = tsk_node->next;
@@ -676,7 +676,7 @@ int iaa_decompress_multi_task_nodes(struct acctest_context *ctx)
IDXD_DECOMPRESS_FLAG_STOP_ON_EOB |
IDXD_DECOMPRESS_FLAG_FLUSH_OUTPUT |
IDXD_DECOMPRESS_FLAG_EN_DECOMPRESS);
- tsk_node->tsk->iaa_max_dst_size = IAA_DECOMPRESS_MAX_DEST_SIZE;
+ tsk_node->tsk->iaa_max_dst_size = ctx->wq_max_xfer_size;
iaa_prep_decompress(tsk_node->tsk);
tsk_node = tsk_node->next;
--
2.25.1
2 months
[PATCH RESEND v1 00/14] Add Zcompress32, Zdecompress32, Compress and Decompress test.
by Li Zhang
Add software algorithms of Zcompress32, Zdecompress32 and Decompress,
add operation Zcompress32, Zdecompress32, Compress and Decompress
test code, modify Makefile and test script.
Li Zhang (14):
accel-config/test: Add algorithm to do Zcompress32
accel-config/test: Add test code of operation Zcompress32
accel-config/test: Modify script for executing Zcompress32 test
accel-config/test: Add algorithm to do Zdecompress32
accel-config/test: Add test code of operation Zdecompress32
accel-config/test: Modify script for executing Zdecompress32 test
accel-config/test: Add function to do Decompress
accel-config/test: Add macros for IAA Compress register
accel-config/test: Add test code of operation Compress
accel-config/test: Modify script for executing Compress test
accel-config/test: Add macros for IAA Decompress register
accel-config/test: Add element input_size to struct task
accel-config/test: Add test code of operation Decompress
accel-config/test: Modify script for executing Decompress test
accfg/idxd.h | 10 +
test/Makefile.am | 5 +-
test/accel_test.h | 1 +
test/algorithms/iaa_compress.c | 58 ++++
test/algorithms/iaa_compress.h | 413 +++++++++++++++++++++++
test/algorithms/iaa_zcompress.c | 77 +++++
test/algorithms/iaa_zcompress.h | 2 +
test/iaa.c | 569 +++++++++++++++++++++++++++++++-
test/iaa.h | 13 +
test/iaa_prep.c | 50 +++
test/iaa_test.c | 97 +++++-
test/iaa_user_test_runner.sh | 4 +-
12 files changed, 1292 insertions(+), 7 deletions(-)
create mode 100644 test/algorithms/iaa_compress.c
create mode 100644 test/algorithms/iaa_compress.h
--
2.25.1
2 months, 1 week
[PATCH v1 00/14] Add Zcompress32, Zdecompress32, Compress and Decompress test.
by Li Zhang
Add software algorithms of Zcompress32, Zdecompress32 and Decompress,
add operation Zcompress32, Zdecompress32, Compress and Decompress
test code, modify Makefile and test script.
Li Zhang (14):
accel-config/test: Add algorithm to do Zcompress32
accel-config/test: Add test code of operation Zcompress32
accel-config/test: Modify script for executing Zcompress32 test
accel-config/test: Add algorithm to do Zdecompress32
accel-config/test: Add test code of operation Zdecompress32
accel-config/test: Modify script for executing Zdecompress32 test
accel-config/test: Add function to do Decompress
accel-config/test: Add macros for IAA Compress register
accel-config/test: Add test code of operation Compress
accel-config/test: Modify script for executing Compress test
accel-config/test: Add macros for IAA Decompress register
accel-config/test: Add element input_size to struct task
accel-config/test: Add test code of operation Decompress
accel-config/test: Modify script for executing Decompress test
accfg/idxd.h | 10 +
test/Makefile.am | 5 +-
test/accel_test.h | 1 +
test/algorithms/iaa_compress.c | 58 ++++
test/algorithms/iaa_compress.h | 413 +++++++++++++++++++++++
test/algorithms/iaa_zcompress.c | 77 +++++
test/algorithms/iaa_zcompress.h | 2 +
test/iaa.c | 569 +++++++++++++++++++++++++++++++-
test/iaa.h | 13 +
test/iaa_prep.c | 50 +++
test/iaa_test.c | 97 +++++-
test/iaa_user_test_runner.sh | 4 +-
12 files changed, 1292 insertions(+), 7 deletions(-)
create mode 100644 test/algorithms/iaa_compress.c
create mode 100644 test/algorithms/iaa_compress.h
--
2.25.1
2 months, 1 week
[PATCH v1 00/14] Add Zcompress32, Zdecompress32, Compress and Decompress test.
by Li Zhang
Add software algorithms of Zcompress32, Zdecompress32 and Decompress,
add operation Zcompress32, Zdecompress32, Compress and Decompress
test code, modify Makefile and test script.
Li Zhang (14):
accel-config/test: Add algorithm to do Zcompress32
accel-config/test: Add test code of operation Zcompress32
accel-config/test: Modify script for executing Zcompress32 test
accel-config/test: Add algorithm to do Zdecompress32
accel-config/test: Add test code of operation Zdecompress32
accel-config/test: Modify script for executing Zdecompress32 test
accel-config/test: Add function to do Decompress
accel-config/test: Add macros for IAA Compress register
accel-config/test: Add test code of operation Compress
Modify script for executing Compress test
accel-config/test: Add macros for IAA Decompress register
accel-config/test: Add element input_size to struct task
accel-config/test: Add test code of operation Decompress
accel-config/test: Modify script for executing Decompress test
accfg/idxd.h | 10 +
test/Makefile.am | 5 +-
test/accel_test.h | 1 +
test/algorithms/iaa_compress.c | 58 ++++
test/algorithms/iaa_compress.h | 413 +++++++++++++++++++++++
test/algorithms/iaa_zcompress.c | 77 +++++
test/algorithms/iaa_zcompress.h | 2 +
test/iaa.c | 569 +++++++++++++++++++++++++++++++-
test/iaa.h | 13 +
test/iaa_prep.c | 50 +++
test/iaa_test.c | 97 +++++-
test/iaa_user_test_runner.sh | 4 +-
12 files changed, 1292 insertions(+), 7 deletions(-)
create mode 100644 test/algorithms/iaa_compress.c
create mode 100644 test/algorithms/iaa_compress.h
--
2.25.1
2 months, 2 weeks