2
0

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]
Este cometimento está contido em:
Apurv Mishra
2025-03-26 16:08:40 -04:00
cometido por Mishra, Apurv
ascendente 2c731096c6
cometimento b490aec8e6
2 ficheiros modificados com 10 adições e 1 eliminações
@@ -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