accel-config/0012-test-Use-ENQCMD-for-Betch-Testing.patch
Jerry Snitselaar 74539a3f89 accel-config: Update to current stable
JIRA: https://issues.redhat.com/browse/RHEL-38576

Pull in stable release updates to 4.1.8

* Refined usage of enable-device/disable-device
* Update tests to make use of syscall write interface for descriptor submission

Resolves: RHEL-38576

Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
2025-03-17 12:30:36 -07:00

44 lines
1.4 KiB
Diff

From 2f15749789947060a88086ba0298036e216f8a8c Mon Sep 17 00:00:00 2001
From: "Sun, Yi" <yi.sun@intel.com>
Date: Thu, 2 Jan 2025 16:45:10 +0800
Subject: [PATCH] test: Use ENQCMD for Betch Testing
'Content-type:text/plain'
The idxd tests are suggested to use syscall write to submit instead of
ENQCMD. But so far the write function cannot handle batch tests.
Use the option '-u' to force the batch tests using ENQCMD.
This is likely a workaround, need to look into the write function of the
cdev supporting the betch function.
Signed-off-by: Yi Sun <yi.sun@intel.com>
---
test/dsa_user_test_runner.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/dsa_user_test_runner.sh b/test/dsa_user_test_runner.sh
index 2848feda68bb..937536597a22 100755
--- a/test/dsa_user_test_runner.sh
+++ b/test/dsa_user_test_runner.sh
@@ -124,7 +124,7 @@ test_op_batch()
-c 16 -f "$flag" t2000 "${VERBOSE}" -d "$DEV"
else
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \
- -c 16 -f "$flag" t2000 "${VERBOSE}"
+ -c 16 -f "$flag" t2000 "${VERBOSE}" -u
fi
done
done
@@ -184,7 +184,7 @@ test_dif_op_batch()
-c 16 -f "$flag" t2000 "${VERBOSE}" -d "$DEV"
else
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \
- -c 16 -f "$flag" t2000 "${VERBOSE}"
+ -c 16 -f "$flag" t2000 "${VERBOSE}" -u
fi
done
done
--
2.48.0