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>


[ROCm/ROCR-Runtime commit: 1ff5cb33b2]
Este cometimento está contido em:
Jonathan Kim criou e Jonathan Kim cometeu 2019-08-23 11:25:32 -04:00
1 ascendente 94420e0624
cometimento c9cc529a4f
4 ficheiros modificados
+49 -24

Não existem ficheiros que correspondam à sua pesquisa

+2 -1
Ver ficheiro
@@ -822,7 +822,8 @@ hsaKmtQueryDebugEvent(
HSAuint32 *QueueId, // IN/OUT
bool ClearEvents, // IN
HSA_DEBUG_EVENT_TYPE *EventsReceived, // OUT
bool *IsSuspended // OUT
bool *IsSuspended, // OUT
bool *IsNew //OUT
);
/**
+2 -1
Ver ficheiro
@@ -191,9 +191,10 @@ struct kfd_ioctl_dbg_wave_control_args {
#define KFD_DBG_EV_STATUS_TRAP 1
#define KFD_DBG_EV_STATUS_VMFAULT 2
#define KFD_DBG_EV_STATUS_SUSPENDED 4
#define KFD_DBG_EV_STATUS_NEW_QUEUE 8
#define KFD_DBG_EV_FLAG_CLEAR_STATUS 1
#define KFD_INVALID_QUEUEID 0xFFFFFFFFFFFFFFFFULL
#define KFD_INVALID_QUEUEID 0xffffffff
/* KFD_IOC_DBG_TRAP_ENABLE:
* ptr: unused