|
1 | | ---- idxd-config-accel-config-v3.5.2/test/dsa_user_test_runner.sh.orig 2022-11-29 12:41:55.188306049 +0200 |
2 | | -+++ idxd-config-accel-config-v3.5.2/test/dsa_user_test_runner.sh 2022-11-29 12:44:20.711820711 +0200 |
| 1 | +diff --git a/test/dsa_user_test_runner.sh b/test/dsa_user_test_runner.sh |
| 2 | +index 6c9f771..4504d9c 100755 |
| 3 | +--- a/test/dsa_user_test_runner.sh |
| 4 | ++++ b/test/dsa_user_test_runner.sh |
3 | 5 | @@ -6,7 +6,8 @@ |
4 | 6 |
|
5 | 7 | rc="$EXIT_SKIP" |
|
10 | 12 | WQ0=wq0.0 |
11 | 13 | WQ1=wq0.1 |
12 | 14 |
|
13 | | -@@ -70,7 +71,7 @@ |
| 15 | +@@ -70,7 +71,7 @@ test_op() |
14 | 16 | for xfer_size in $SIZE_1 $SIZE_4K $SIZE_64K $SIZE_1M $SIZE_2M; do |
15 | 17 | echo "Testing $xfer_size bytes" |
16 | 18 | "$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \ |
|
19 | 21 | done |
20 | 22 | done |
21 | 23 | } |
22 | | -@@ -99,7 +100,7 @@ |
| 24 | +@@ -99,7 +100,7 @@ test_op_batch() |
23 | 25 | for xfer_size in $SIZE_1 $SIZE_4K $SIZE_64K $SIZE_1M $SIZE_2M; do |
24 | 26 | echo "Testing $xfer_size bytes" |
25 | 27 | "$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \ |
|
28 | 30 | done |
29 | 31 | done |
30 | 32 | } |
31 | | -@@ -124,7 +125,7 @@ |
| 33 | +@@ -124,7 +125,7 @@ test_dif_op() |
32 | 34 | for xfer_size in $SIZE_512 $SIZE_1K $SIZE_4K; do |
33 | 35 | echo "Testing $xfer_size bytes" |
34 | 36 | "$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \ |
|
37 | 39 | done |
38 | 40 | done |
39 | 41 | } |
40 | | -@@ -149,13 +150,10 @@ |
| 42 | +@@ -149,13 +150,10 @@ test_dif_op_batch() |
41 | 43 | for xfer_size in $SIZE_512 $SIZE_1K $SIZE_4K; do |
42 | 44 | echo "Testing $xfer_size bytes" |
43 | 45 | "$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \ |
|
52 | 54 | # shellcheck disable=SC2034 |
53 | 55 | rc="$EXIT_FAILURE" |
54 | 56 |
|
55 | | -@@ -188,7 +186,3 @@ |
| 57 | +@@ -188,7 +186,3 @@ for opcode in "0x12" "0x13" "0x14" "0x15"; do |
56 | 58 | test_dif_op_batch $opcode $flag |
57 | 59 | done |
58 | 60 |
|
59 | 61 | -disable_wqs |
60 | 62 | -stop_dsa |
61 | 63 | -_cleanup |
62 | 64 | -exit 0 |
63 | | ---- idxd-config-accel-config-v3.5.2/test/iaa_user_test_runner.sh.orig 2022-11-29 12:41:55.188306049 +0200 |
64 | | -+++ idxd-config-accel-config-v3.5.2/test/iaa_user_test_runner.sh 2022-11-29 12:44:20.711820711 +0200 |
| 65 | +diff --git a/test/iaa_user_test_runner.sh b/test/iaa_user_test_runner.sh |
| 66 | +index c8f2686..9156a94 100755 |
| 67 | +--- a/test/iaa_user_test_runner.sh |
| 68 | ++++ b/test/iaa_user_test_runner.sh |
65 | 69 | @@ -6,7 +6,8 @@ |
66 | 70 |
|
67 | 71 | rc="$EXIT_SKIP" |
|
71 | 75 | +IAA=`echo $DEV | cut -f1 -d/` |
72 | 76 | WQ0=wq1.4 |
73 | 77 | WQ1=wq1.1 |
74 | | - |
75 | | -@@ -72,10 +73,10 @@ |
| 78 | + DBDF=`ls -l /sys/bus/dsa/devices/iax3 | awk -F '/' '{print $(NF - 1)}'` |
| 79 | +@@ -104,10 +105,10 @@ test_op() |
76 | 80 | if [ "$extra_flag" != "" ] |
77 | 81 | then |
78 | 82 | "$IAATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \ |
|
85 | 89 | fi |
86 | 90 | done |
87 | 91 | done |
88 | | -@@ -91,127 +92,124 @@ |
| 92 | +@@ -123,121 +124,121 @@ test_op_filter() |
89 | 93 | wq_mode_name=$(wq_mode2name "$wq_mode_code") |
90 | 94 |
|
91 | 95 | ./iaa_test -w "$wq_mode_code" -f "$flag" -l 512 -2 0x7c -3 128 \ |
|
261 | 265 | done |
262 | 266 | } |
263 | 267 |
|
| 268 | +@@ -286,9 +287,6 @@ test_op_transl_fetch() |
| 269 | + done |
| 270 | + } |
| 271 | + |
264 | 272 | -_cleanup |
265 | 273 | -start_iaa |
266 | 274 | -enable_wqs |
267 | 275 | # shellcheck disable=SC2034 |
268 | 276 | rc="$EXIT_FAILURE" |
269 | 277 |
|
270 | | -@@ -245,13 +243,13 @@ |
| 278 | +@@ -322,69 +320,12 @@ unset SIZE_1 |
271 | 279 |
|
272 | 280 | flag="0x1" |
273 | 281 | echo "Testing with 'block on fault' flag ON" |
|
282 | 290 | +for opcode in "0x4d" "0x49" "0x4c" "0x48" "0x43"; do |
283 | 291 | test_op $opcode $flag |
284 | 292 | done |
285 | | - |
286 | | -@@ -261,7 +259,3 @@ |
287 | | - flag="0x0" |
288 | | - test_op_filter $flag |
289 | | - |
| 293 | +- |
| 294 | +-if [ "$IDXD_VERSION" != "0x100" ]; then |
| 295 | +- flag="0x1" |
| 296 | +- echo "Testing with 'block on fault' flag ON" |
| 297 | +- for opcode in "0x4e" "0x4a"; do |
| 298 | +- test_op $opcode $flag |
| 299 | +- done |
| 300 | +- |
| 301 | +- flag="0x0" |
| 302 | +- echo "Testing with 'block on fault' flag OFF" |
| 303 | +- for opcode in "0x4e" "0x4a"; do |
| 304 | +- test_op $opcode $flag |
| 305 | +- done |
| 306 | +-fi |
| 307 | +- |
| 308 | +-flag="0x1" |
| 309 | +-test_op_filter $flag |
| 310 | +- |
| 311 | +-flag="0x0" |
| 312 | +-test_op_filter $flag |
| 313 | +- |
| 314 | +-if [ "$IDXD_VERSION" != "0x100" ]; then |
| 315 | +- flag="0x1" |
| 316 | +- aecs_flag="0x0101" |
| 317 | +- echo "Testing with 'block on fault' flag ON" |
| 318 | +- for opcode in "0x41" "0x40"; do |
| 319 | +- test_op_crypto $opcode $flag $aecs_flag |
| 320 | +- done |
| 321 | +- |
| 322 | +- flag="0x0" |
| 323 | +- aecs_flag="0x0301" |
| 324 | +- echo "Testing with 'block on fault' flag OFF" |
| 325 | +- for opcode in "0x41" "0x40"; do |
| 326 | +- test_op_crypto $opcode $flag $aecs_flag |
| 327 | +- done |
| 328 | +- |
| 329 | +- bind_vfio |
| 330 | +- |
| 331 | +- flag="0x1" |
| 332 | +- echo "Testing with 'block on fault' flag ON" |
| 333 | +- for opcode in "0x0a"; do |
| 334 | +- test_op_transl_fetch $opcode $flag |
| 335 | +- done |
| 336 | +- |
| 337 | +- flag="0x0" |
| 338 | +- echo "Testing with 'block on fault' flag OFF" |
| 339 | +- for opcode in "0x0a"; do |
| 340 | +- test_op_transl_fetch $opcode $flag |
| 341 | +- done |
| 342 | +- |
| 343 | +- unbind_vfio |
| 344 | +-fi |
| 345 | +- |
290 | 346 | -disable_wqs |
291 | 347 | -stop_iaa |
292 | 348 | -_cleanup |
|
0 commit comments