kfdtest: skip hdp flush test in sriov mode
skip HDP flush test when remap feature is not supported.
Backgroud:
the HDP register remap is skipped in sriov mode,
it will cause mmio base is nullPtr.
Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Change-Id: Ib9aea1900931e30571656397a485ee4db051ec0a
[ROCm/ROCR-Runtime commit: 033b52c4e4]
Dieser Commit ist enthalten in:
@@ -2084,7 +2084,11 @@ TEST_F(KFDMemoryTest, HostHdpFlush) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
ASSERT_NE(mmioBase, nullPtr) << "mmio base is NULL";
|
||||
|
||||
if (mmioBase == nullPtr) {
|
||||
LOG() << "Skipping test: bsecause mmioBase is nullPtr, the mmio remap feature is not supported." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
memoryFlags.ui32.NonPaged = 1;
|
||||
memoryFlags.ui32.CoarseGrain = 0;
|
||||
@@ -2205,7 +2209,11 @@ TEST_F(KFDMemoryTest, DeviceHdpFlush) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
ASSERT_NE(mmioBase, nullPtr) << "mmio base is NULL";
|
||||
|
||||
if (mmioBase == nullPtr) {
|
||||
LOG() << "Skipping test: bsecause mmioBase is nullPtr, the mmio remap feature is not supported." << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
memoryFlags.ui32.NonPaged = 1;
|
||||
memoryFlags.ui32.CoarseGrain = 0;
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren