Add distinguish for iommuv2/dgpu_fallback when getting gpuName

The memory tests between iommuv2 and dgpu_fallback are different.So it
needs to ditinguish them.

Change-Id: Icc64e9ae0fc1638c3d148795a5f247d9e5e8e503
Signed-off-by: changzhu <Changfeng.Zhu@amd.com>
This commit is contained in:
changzhu
2020-11-26 17:13:14 +08:00
committato da Changfeng Zhu
parent 4bbfbe7789
commit 39386c03bf
2 ha cambiato i file con 15 aggiunte e 2 eliminazioni
+8 -2
Vedi File
@@ -173,10 +173,16 @@ FILTER[vega20]=\
"KFDEvictTest.BurstyTest:"\
"KFDQMTest.GPUDoorbellWrite"
FILTER[raven_dgpuFallback]=\
"$BLACKLIST_ALL_ASICS:"\
"KFDMemoryTest.MMBench:"\
"KFDMemoryTest.MemoryRegister:"\
"KFDQMTest.SdmaConcurrentCopies"
FILTER[raven]=\
"$BLACKLIST_ALL_ASICS:"\
"KFDQMTest.QueueLatency:"\
"KFDQMTest.SdmaEventInterrupt"
"KFDQMTest.SdmaConcurrentCopies:"\
"KFDQMTest.MultipleCpQueuesStressDispatch"
FILTER[renoir]=\
"$BLACKLIST_ALL_ASICS:"\
+7
Vedi File
@@ -144,6 +144,13 @@ getHsaNodes() {
getNodeName() {
local nodeId=$1; shift;
local gpuName=$(cat $TOPOLOGY_SYSFS_DIR/$nodeId/name)
if [ "$gpuName" == "raven" ]; then
local CpuCoresCount=$(cat $TOPOLOGY_SYSFS_DIR/$nodeId/properties | grep cpu_cores_count | awk '{print $2}')
local SimdCount=$(cat $TOPOLOGY_SYSFS_DIR/$nodeId/properties | grep simd_count | awk '{print $2}')
if [ "$CpuCoresCount" -eq 0 ] && [ "$SimdCount" -gt 0 ]; then
gpuName="raven_dgpuFallback"
fi
fi
echo "$gpuName"
}