kfdtest: Restrict DriverHDPFlush to systems with PCIe

Nodes with XGMI have no HDP, so DriverHDPFlush should skip.

Signed-off-by: David Francis <David.Francis@amd.com>
Change-Id: If5a87e660712e51d03e750d8e044786036b2e603
This commit is contained in:
David Francis
2023-03-01 10:34:53 -05:00
committed by Graham Sider
parent 16c6530330
commit e32278a612
+5
View File
@@ -1919,6 +1919,11 @@ TEST_F(KFDMemoryTest, DeviceHdpFlush) {
return;
}
if (m_NodeInfo.IsNodeXGMItoCPU(nodes[0])) {
LOG() << "Skipping test: PCIe link to CPU is required." << std::endl;
return;
}
HsaMemoryProperties *memoryProperties = new HsaMemoryProperties[pNodeProperties->NumMemoryBanks];
EXPECT_SUCCESS(hsaKmtGetNodeMemoryProperties(nodes[0], pNodeProperties->NumMemoryBanks,
memoryProperties));