kfdtest: add per-pipe reset negative test

Add basic KFD per-pipe reset support.

Change-Id: I0f68c4d33e6d043de0b5cbda1d494640ba8175f1
Этот коммит содержится в:
Jonathan Kim
2024-08-20 12:08:01 -04:00
родитель 1a4adaf7bc
Коммит 865e32baf4
7 изменённых файлов: 205 добавлений и 4 удалений
+15
Просмотреть файл
@@ -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() {