mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
accel-config-demo: Update accel-config version to 4.0
Closes #1353 Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
eb6a84858d
commit
3a52b261f8
@ -16,11 +16,11 @@ FROM ubuntu:22.04 AS builder
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc g++ nasm make cmake patch autoconf automake libtool pkg-config git curl ca-certificates \
|
||||
libjson-c-dev uuid-dev zlib1g-dev
|
||||
libjson-c-dev uuid-dev zlib1g-dev libssl-dev
|
||||
|
||||
ARG ACCEL_CONFIG_VERSION="3.5.2"
|
||||
ARG ACCEL_CONFIG_VERSION="4.0"
|
||||
ARG ACCEL_CONFIG_DOWNLOAD_URL="https://github.com/intel/idxd-config/archive/accel-config-v$ACCEL_CONFIG_VERSION.tar.gz"
|
||||
ARG ACCEL_CONFIG_SHA256="a2d52007b4bfdc050a21893466e78328c6800f9a87b0806c7e7f5775ff48387b"
|
||||
ARG ACCEL_CONFIG_SHA256="6d9bce40d797a87508ce5c5a5b71bb2bdc1cb544848925ed2c4c37b46a1252ce"
|
||||
|
||||
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
|
||||
|
||||
@ -53,14 +53,15 @@ RUN cd / && git clone --recursive --depth 1 --branch v1.0.0 https://github.com/i
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends libjson-c5 && rm -rf /var/lib/apt/lists/\*
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends libjson-c5 libssl3 && rm -rf /var/lib/apt/lists/\*
|
||||
|
||||
COPY --from=builder /usr/lib64/libaccel-config.so.1.0.0 "/lib/x86_64-linux-gnu/"
|
||||
RUN ldconfig
|
||||
|
||||
COPY --from=builder /usr/bin/accel-config /usr/bin/
|
||||
COPY --from=builder /usr/lib/accel-config/test /test
|
||||
COPY --from=builder /usr/libexec/accel-config/test /test
|
||||
COPY --from=builder /idxd-reset.patch /usr/local/share/package-sources/
|
||||
COPY --from=builder /test_runner_disable_shared_queues.patch /usr/local/share/package-sources/
|
||||
|
||||
COPY --from=builder /usr/local /usr/local
|
||||
COPY --from=builder /qpl/build/examples /usr/local/bin/
|
||||
|
@ -1,5 +1,7 @@
|
||||
--- idxd-config-accel-config-v3.5.2/test/dsa_user_test_runner.sh.orig 2022-11-29 12:41:55.188306049 +0200
|
||||
+++ idxd-config-accel-config-v3.5.2/test/dsa_user_test_runner.sh 2022-11-29 12:44:20.711820711 +0200
|
||||
diff --git a/test/dsa_user_test_runner.sh b/test/dsa_user_test_runner.sh
|
||||
index 6c9f771..4504d9c 100755
|
||||
--- a/test/dsa_user_test_runner.sh
|
||||
+++ b/test/dsa_user_test_runner.sh
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
rc="$EXIT_SKIP"
|
||||
@ -10,7 +12,7 @@
|
||||
WQ0=wq0.0
|
||||
WQ1=wq0.1
|
||||
|
||||
@@ -70,7 +71,7 @@
|
||||
@@ -70,7 +71,7 @@ test_op()
|
||||
for xfer_size in $SIZE_1 $SIZE_4K $SIZE_64K $SIZE_1M $SIZE_2M; do
|
||||
echo "Testing $xfer_size bytes"
|
||||
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \
|
||||
@ -19,7 +21,7 @@
|
||||
done
|
||||
done
|
||||
}
|
||||
@@ -99,7 +100,7 @@
|
||||
@@ -99,7 +100,7 @@ test_op_batch()
|
||||
for xfer_size in $SIZE_1 $SIZE_4K $SIZE_64K $SIZE_1M $SIZE_2M; do
|
||||
echo "Testing $xfer_size bytes"
|
||||
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \
|
||||
@ -28,7 +30,7 @@
|
||||
done
|
||||
done
|
||||
}
|
||||
@@ -124,7 +125,7 @@
|
||||
@@ -124,7 +125,7 @@ test_dif_op()
|
||||
for xfer_size in $SIZE_512 $SIZE_1K $SIZE_4K; do
|
||||
echo "Testing $xfer_size bytes"
|
||||
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \
|
||||
@ -37,7 +39,7 @@
|
||||
done
|
||||
done
|
||||
}
|
||||
@@ -149,13 +150,10 @@
|
||||
@@ -149,13 +150,10 @@ test_dif_op_batch()
|
||||
for xfer_size in $SIZE_512 $SIZE_1K $SIZE_4K; do
|
||||
echo "Testing $xfer_size bytes"
|
||||
"$DSATEST" -w "$wq_mode_code" -l "$xfer_size" -o 0x1 -b "$opcode" \
|
||||
@ -52,7 +54,7 @@
|
||||
# shellcheck disable=SC2034
|
||||
rc="$EXIT_FAILURE"
|
||||
|
||||
@@ -188,7 +186,3 @@
|
||||
@@ -188,7 +186,3 @@ for opcode in "0x12" "0x13" "0x14" "0x15"; do
|
||||
test_dif_op_batch $opcode $flag
|
||||
done
|
||||
|
||||
@ -60,8 +62,10 @@
|
||||
-stop_dsa
|
||||
-_cleanup
|
||||
-exit 0
|
||||
--- idxd-config-accel-config-v3.5.2/test/iaa_user_test_runner.sh.orig 2022-11-29 12:41:55.188306049 +0200
|
||||
+++ idxd-config-accel-config-v3.5.2/test/iaa_user_test_runner.sh 2022-11-29 12:44:20.711820711 +0200
|
||||
diff --git a/test/iaa_user_test_runner.sh b/test/iaa_user_test_runner.sh
|
||||
index c8f2686..9156a94 100755
|
||||
--- a/test/iaa_user_test_runner.sh
|
||||
+++ b/test/iaa_user_test_runner.sh
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
rc="$EXIT_SKIP"
|
||||
@ -71,8 +75,8 @@
|
||||
+IAA=`echo $DEV | cut -f1 -d/`
|
||||
WQ0=wq1.4
|
||||
WQ1=wq1.1
|
||||
|
||||
@@ -72,10 +73,10 @@
|
||||
DBDF=`ls -l /sys/bus/dsa/devices/iax3 | awk -F '/' '{print $(NF - 1)}'`
|
||||
@@ -104,10 +105,10 @@ test_op()
|
||||
if [ "$extra_flag" != "" ]
|
||||
then
|
||||
"$IAATEST" -w "$wq_mode_code" -l "$xfer_size" -o "$opcode" \
|
||||
@ -85,7 +89,7 @@
|
||||
fi
|
||||
done
|
||||
done
|
||||
@@ -91,127 +92,124 @@
|
||||
@@ -123,121 +124,121 @@ test_op_filter()
|
||||
wq_mode_name=$(wq_mode2name "$wq_mode_code")
|
||||
|
||||
./iaa_test -w "$wq_mode_code" -f "$flag" -l 512 -2 0x7c -3 128 \
|
||||
@ -261,13 +265,17 @@
|
||||
done
|
||||
}
|
||||
|
||||
@@ -286,9 +287,6 @@ test_op_transl_fetch()
|
||||
done
|
||||
}
|
||||
|
||||
-_cleanup
|
||||
-start_iaa
|
||||
-enable_wqs
|
||||
# shellcheck disable=SC2034
|
||||
rc="$EXIT_FAILURE"
|
||||
|
||||
@@ -245,13 +243,13 @@
|
||||
@@ -322,69 +320,12 @@ unset SIZE_1
|
||||
|
||||
flag="0x1"
|
||||
echo "Testing with 'block on fault' flag ON"
|
||||
@ -282,11 +290,59 @@
|
||||
+for opcode in "0x4d" "0x49" "0x4c" "0x48" "0x43"; do
|
||||
test_op $opcode $flag
|
||||
done
|
||||
|
||||
@@ -261,7 +259,3 @@
|
||||
flag="0x0"
|
||||
test_op_filter $flag
|
||||
|
||||
-
|
||||
-if [ "$IDXD_VERSION" != "0x100" ]; then
|
||||
- flag="0x1"
|
||||
- echo "Testing with 'block on fault' flag ON"
|
||||
- for opcode in "0x4e" "0x4a"; do
|
||||
- test_op $opcode $flag
|
||||
- done
|
||||
-
|
||||
- flag="0x0"
|
||||
- echo "Testing with 'block on fault' flag OFF"
|
||||
- for opcode in "0x4e" "0x4a"; do
|
||||
- test_op $opcode $flag
|
||||
- done
|
||||
-fi
|
||||
-
|
||||
-flag="0x1"
|
||||
-test_op_filter $flag
|
||||
-
|
||||
-flag="0x0"
|
||||
-test_op_filter $flag
|
||||
-
|
||||
-if [ "$IDXD_VERSION" != "0x100" ]; then
|
||||
- flag="0x1"
|
||||
- aecs_flag="0x0101"
|
||||
- echo "Testing with 'block on fault' flag ON"
|
||||
- for opcode in "0x41" "0x40"; do
|
||||
- test_op_crypto $opcode $flag $aecs_flag
|
||||
- done
|
||||
-
|
||||
- flag="0x0"
|
||||
- aecs_flag="0x0301"
|
||||
- echo "Testing with 'block on fault' flag OFF"
|
||||
- for opcode in "0x41" "0x40"; do
|
||||
- test_op_crypto $opcode $flag $aecs_flag
|
||||
- done
|
||||
-
|
||||
- bind_vfio
|
||||
-
|
||||
- flag="0x1"
|
||||
- echo "Testing with 'block on fault' flag ON"
|
||||
- for opcode in "0x0a"; do
|
||||
- test_op_transl_fetch $opcode $flag
|
||||
- done
|
||||
-
|
||||
- flag="0x0"
|
||||
- echo "Testing with 'block on fault' flag OFF"
|
||||
- for opcode in "0x0a"; do
|
||||
- test_op_transl_fetch $opcode $flag
|
||||
- done
|
||||
-
|
||||
- unbind_vfio
|
||||
-fi
|
||||
-
|
||||
-disable_wqs
|
||||
-stop_iaa
|
||||
-_cleanup
|
||||
|
Loading…
Reference in New Issue
Block a user