add new queue bit test on clear event
enable thunk query api to report if queue is newly created test new queue bit test on clear events. also fixup cleanup to disable debug trap. Change-Id: I3ebe2d85da66f28b8c82f0e68461ee7d32ec0b0d Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com> Reviewed-by: Philip Cox <Philip.Cox@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
This commit is contained in:
committed by
Jonathan Kim
parent
814e0f0bdc
commit
1ff5cb33b2
+4
-2
@@ -564,7 +564,8 @@ hsaKmtQueryDebugEvent(
|
||||
HSAuint32 *QueueId, // IN/OUT
|
||||
bool ClearEvents, // IN
|
||||
HSA_DEBUG_EVENT_TYPE *EventsReceived, // OUT
|
||||
bool *IsSuspended // OUT
|
||||
bool *IsSuspended, // OUT
|
||||
bool *IsNew // OUT
|
||||
)
|
||||
{
|
||||
HSAKMT_STATUS result;
|
||||
@@ -589,7 +590,8 @@ hsaKmtQueryDebugEvent(
|
||||
*QueueId = argout.data1;
|
||||
*EventsReceived = argout.data3 &
|
||||
(KFD_DBG_EV_STATUS_TRAP | KFD_DBG_EV_STATUS_VMFAULT);
|
||||
*IsSuspended = (argout.data3 & KFD_DBG_EV_STATUS_SUSPENDED) >> 2;
|
||||
*IsSuspended = argout.data3 & KFD_DBG_EV_STATUS_SUSPENDED;
|
||||
*IsNew = argout.data3 & KFD_DBG_EV_STATUS_NEW_QUEUE;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user