accel-config/SOURCES/0001-testing-vercheck.patch

25 lines
1.3 KiB
Diff
Raw Normal View History

2022-11-08 06:54:42 +00:00
diff -ur idxd-config-accel-config-v3.4.6.2/test/dsa_user_test_runner.sh idxd-config-accel-config-v3.4.6.2-new/test/dsa_user_test_runner.sh
--- idxd-config-accel-config-v3.4.6.2/test/dsa_user_test_runner.sh 2022-03-22 16:13:44.000000000 -0700
+++ idxd-config-accel-config-v3.4.6.2-new/test/dsa_user_test_runner.sh 2022-04-04 22:36:15.080120329 -0700
2022-05-10 07:15:09 +00:00
@@ -14,7 +14,7 @@
[ ! -f "$DSATEST" ] && echo "fail: $LINENO" && exit 1
-check_min_kver "5.6" || do_skip "kernel does not support idxd"
+check_min_kver "4.18" || 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"
2022-11-08 06:54:42 +00:00
diff -ur idxd-config-accel-config-v3.4.6.2/test/libaccfg.c idxd-config-accel-config-v3.4.6.2-new/test/libaccfg.c
--- idxd-config-accel-config-v3.4.6.2/test/libaccfg.c 2022-03-22 16:13:44.000000000 -0700
+++ idxd-config-accel-config-v3.4.6.2-new/test/libaccfg.c 2022-04-04 22:36:26.861224525 -0700
@@ -966,7 +966,7 @@
2022-05-10 07:15:09 +00:00
struct accfg_device *device;
2022-11-08 06:54:42 +00:00
struct log_ctx log_ctx;
2022-05-10 07:15:09 +00:00
- if (!accfg_test_attempt(test, KERNEL_VERSION(5, 6, 0)))
+ if (!accfg_test_attempt(test, KERNEL_VERSION(4, 18, 0)))
return EXIT_SKIP;
accfg_set_log_priority(ctx, loglevel);