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]
This commit is contained in:
Apurv Mishra
2025-03-26 16:08:40 -04:00
zatwierdzone przez Mishra, Apurv
rodzic 2c731096c6
commit b490aec8e6
2 zmienionych plików z 10 dodań i 1 usunięć
@@ -379,6 +379,8 @@ FILTER[RHEL9]=\
"$BLACKLIST_ALL_ASICS:"\
"$BLACKLIST_GFX11:"\
"KFDQMTest.ExtendedCuMasking:"\
"KFDIPCTest.*:"\
"KFDEvictTest.QueueTest:"\
"KFDPCSamplingTest.*"
FILTER[upstream]=\
"KFDIPCTest.*"
@@ -128,6 +128,13 @@ getFilter() {
gtestFilter="--gtest_filter=${FILTER[$platform]}"
;;
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
gtestFilter="$gtestFilter:$ADDITIONAL_EXCLUDE"
fi