kfdtest: support for upstream kernel driver

detect if the loaded driver is upstream or DKMS version and
add a filter for for the tests that fail in upstream driver

Signed-off-by: Apurv Mishra <Apurv.Mishra@amd.com>


[ROCm/ROCR-Runtime commit: 10530fa2a7]
Tento commit je obsažen v:
Apurv Mishra
2025-03-26 16:08:40 -04:00
odevzdal Mishra, Apurv
rodič 2c731096c6
revize b490aec8e6
2 změnil soubory, kde provedl 10 přidání a 1 odebrání
+3 -1
Zobrazit soubor
@@ -379,6 +379,8 @@ FILTER[RHEL9]=\
"$BLACKLIST_ALL_ASICS:"\ "$BLACKLIST_ALL_ASICS:"\
"$BLACKLIST_GFX11:"\ "$BLACKLIST_GFX11:"\
"KFDQMTest.ExtendedCuMasking:"\ "KFDQMTest.ExtendedCuMasking:"\
"KFDIPCTest.*:"\
"KFDEvictTest.QueueTest:"\ "KFDEvictTest.QueueTest:"\
"KFDPCSamplingTest.*" "KFDPCSamplingTest.*"
FILTER[upstream]=\
"KFDIPCTest.*"
@@ -128,6 +128,13 @@ getFilter() {
gtestFilter="--gtest_filter=${FILTER[$platform]}" gtestFilter="--gtest_filter=${FILTER[$platform]}"
;; ;;
esac esac
# Check if the loaded driver is upstream (in-box) or DKMS
rdma_get_pages_func=$(cat /proc/kallsyms | grep rdma_get_pages)
if [ -z "$rdma_get_pages_func" ]; then
gtestFilter="$gtestFilter:${FILTER[upstream]}"
fi
if [ -n "$ADDITIONAL_EXCLUDE" ]; then if [ -n "$ADDITIONAL_EXCLUDE" ]; then
gtestFilter="$gtestFilter:$ADDITIONAL_EXCLUDE" gtestFilter="$gtestFilter:$ADDITIONAL_EXCLUDE"
fi fi