Skip to content

Commit 7bb81bf

Browse files
Merge pull request #1421 from ozhuraki/accel-config-demo4
accel-config-demo: Update accel-config version to 4.0
2 parents c37ac00 + 3a52b26 commit 7bb81bf

File tree

2 files changed

+80
-23
lines changed

2 files changed

+80
-23
lines changed

demo/accel-config-demo/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ FROM ubuntu:22.04 AS builder
1616

1717
RUN apt-get update && apt-get install -y --no-install-recommends \
1818
gcc g++ nasm make cmake patch autoconf automake libtool pkg-config git curl ca-certificates \
19-
libjson-c-dev uuid-dev zlib1g-dev
19+
libjson-c-dev uuid-dev zlib1g-dev libssl-dev
2020

21-
ARG ACCEL_CONFIG_VERSION="3.5.2"
21+
ARG ACCEL_CONFIG_VERSION="4.0"
2222
ARG ACCEL_CONFIG_DOWNLOAD_URL="https://github.com/intel/idxd-config/archive/accel-config-v$ACCEL_CONFIG_VERSION.tar.gz"
23-
ARG ACCEL_CONFIG_SHA256="a2d52007b4bfdc050a21893466e78328c6800f9a87b0806c7e7f5775ff48387b"
23+
ARG ACCEL_CONFIG_SHA256="6d9bce40d797a87508ce5c5a5b71bb2bdc1cb544848925ed2c4c37b46a1252ce"
2424

2525
RUN curl -fsSL "$ACCEL_CONFIG_DOWNLOAD_URL" -o accel-config.tar.gz && echo "$ACCEL_CONFIG_SHA256 accel-config.tar.gz" | sha256sum -c - && tar -xzf accel-config.tar.gz
2626

@@ -53,14 +53,15 @@ RUN cd / && git clone --recursive --depth 1 --branch v1.0.0 https://github.com/i
5353

5454
FROM ubuntu:22.04
5555

56-
RUN apt-get update && apt-get install -y --no-install-recommends libjson-c5 && rm -rf /var/lib/apt/lists/\*
56+
RUN apt-get update && apt-get install -y --no-install-recommends libjson-c5 libssl3 && rm -rf /var/lib/apt/lists/\*
5757

5858
COPY --from=builder /usr/lib64/libaccel-config.so.1.0.0 "/lib/x86_64-linux-gnu/"
5959
RUN ldconfig
6060

6161
COPY --from=builder /usr/bin/accel-config /usr/bin/
62-
COPY --from=builder /usr/lib/accel-config/test /test
62+
COPY --from=builder /usr/libexec/accel-config/test /test
6363
COPY --from=builder /idxd-reset.patch /usr/local/share/package-sources/
64+
COPY --from=builder /test_runner_disable_shared_queues.patch /usr/local/share/package-sources/
6465

6566
COPY --from=builder /usr/local /usr/local
6667
COPY --from=builder /qpl/build/examples /usr/local/bin/

demo/accel-config-demo/test_runner_disable_shared_queues.patch

Lines changed: 74 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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
35
@@ -6,7 +6,8 @@
46

57
rc="$EXIT_SKIP"
@@ -10,7 +12,7 @@
1012
WQ0=wq0.0
1113
WQ1=wq0.1
1214

13-
@@ -70,7 +71,7 @@
15+
@@ -70,7 +71,7 @@ test_op()
1416
for xfer_size in $SIZE_1 $SIZE_4K $SIZE_64K $SIZE_1M $SIZE_2M; do
1517
echo "Testing $xfer_size bytes"
1618
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \
@@ -19,7 +21,7 @@
1921
done
2022
done
2123
}
22-
@@ -99,7 +100,7 @@
24+
@@ -99,7 +100,7 @@ test_op_batch()
2325
for xfer_size in $SIZE_1 $SIZE_4K $SIZE_64K $SIZE_1M $SIZE_2M; do
2426
echo "Testing $xfer_size bytes"
2527
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \
@@ -28,7 +30,7 @@
2830
done
2931
done
3032
}
31-
@@ -124,7 +125,7 @@
33+
@@ -124,7 +125,7 @@ test_dif_op()
3234
for xfer_size in $SIZE_512 $SIZE_1K $SIZE_4K; do
3335
echo "Testing $xfer_size bytes"
3436
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \
@@ -37,7 +39,7 @@
3739
done
3840
done
3941
}
40-
@@ -149,13 +150,10 @@
42+
@@ -149,13 +150,10 @@ test_dif_op_batch()
4143
for xfer_size in $SIZE_512 $SIZE_1K $SIZE_4K; do
4244
echo "Testing $xfer_size bytes"
4345
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \
@@ -52,16 +54,18 @@
5254
# shellcheck disable=SC2034
5355
rc="$EXIT_FAILURE"
5456

55-
@@ -188,7 +186,3 @@
57+
@@ -188,7 +186,3 @@ for opcode in "0x12" "0x13" "0x14" "0x15"; do
5658
test_dif_op_batch $opcode $flag
5759
done
5860

5961
-disable_wqs
6062
-stop_dsa
6163
-_cleanup
6264
-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
6569
@@ -6,7 +6,8 @@
6670

6771
rc="$EXIT_SKIP"
@@ -71,8 +75,8 @@
7175
+IAA=`echo $DEV | cut -f1 -d/`
7276
WQ0=wq1.4
7377
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()
7680
if [ "$extra_flag" != "" ]
7781
then
7882
"$IAATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \
@@ -85,7 +89,7 @@
8589
fi
8690
done
8791
done
88-
@@ -91,127 +92,124 @@
92+
@@ -123,121 +124,121 @@ test_op_filter()
8993
wq_mode_name=$(wq_mode2name "$wq_mode_code")
9094

9195
./iaa_test -w "$wq_mode_code" -f "$flag" -l 512 -2 0x7c -3 128 \
@@ -261,13 +265,17 @@
261265
done
262266
}
263267

268+
@@ -286,9 +287,6 @@ test_op_transl_fetch()
269+
done
270+
}
271+
264272
-_cleanup
265273
-start_iaa
266274
-enable_wqs
267275
# shellcheck disable=SC2034
268276
rc="$EXIT_FAILURE"
269277

270-
@@ -245,13 +243,13 @@
278+
@@ -322,69 +320,12 @@ unset SIZE_1
271279

272280
flag="0x1"
273281
echo "Testing with 'block on fault' flag ON"
@@ -282,11 +290,59 @@
282290
+for opcode in "0x4d" "0x49" "0x4c" "0x48" "0x43"; do
283291
test_op $opcode $flag
284292
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+
-
290346
-disable_wqs
291347
-stop_iaa
292348
-_cleanup

0 commit comments

Comments
 (0)