kfdtest: add per-pipe reset negative test

Add basic KFD per-pipe reset support.

Change-Id: I0f68c4d33e6d043de0b5cbda1d494640ba8175f1
This commit is contained in:
Jonathan Kim
2024-08-20 12:08:01 -04:00
parent 1a4adaf7bc
commit 865e32baf4
7 changed files with 205 additions and 4 deletions
@@ -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() {