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:
@@ -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
|
||||||
|
|||||||
Odkázat v novém úkolu
Zablokovat Uživatele