kfdtest: add per-pipe reset negative test

Add basic KFD per-pipe reset support.

Change-Id: I0f68c4d33e6d043de0b5cbda1d494640ba8175f1


[ROCm/ROCR-Runtime commit: 865e32baf4]
This commit is contained in:
Jonathan Kim committed 2024-11-13 13:34:44 -05:00
1 parent 71bd95ed9e
commit 8af8a65320
7 files changed
+205 -4

No files matched your search

@@ -130,6 +130,21 @@ HSAKMT_STATUS CreateQueueTypeEvent(
return hsaKmtCreateEvent(&Descriptor, ManualReset, IsSignaled, Event);
}
HSAKMT_STATUS CreateHWExceptionEvent(
bool ManualReset, // IN
bool IsSignaled, // IN
unsigned int NodeId, // IN
HsaEvent** Event // OUT
) {
HsaEventDescriptor Descriptor;
Descriptor.EventType = HSA_EVENTTYPE_HW_EXCEPTION;
Descriptor.SyncVar.SyncVar.UserData = (void*)0xABCDABCD;
Descriptor.NodeId = NodeId;
return hsaKmtCreateEvent(&Descriptor, ManualReset, IsSignaled, Event);
}
static bool hsakmt_is_dgpu_dev = false;
bool hsakmt_is_dgpu() {