kfdtest: add suspend and resume queues operation
Add base debug operations to suspend and resume queues. Routine will return the number of queues successfully suspended or resumed. Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Change-Id: I8f18317f70464b04231c5cf822e11d545ebfa02a
此提交包含在:
+4
-1
@@ -514,7 +514,8 @@ free_data:
|
||||
}
|
||||
|
||||
HSAKMT_STATUS HSAKMTAPI hsaKmtDebugTrapIoctl(struct kfd_ioctl_dbg_trap_args *args,
|
||||
HSA_QUEUEID *Queues)
|
||||
HSA_QUEUEID *Queues,
|
||||
HSAuint64 *DebugReturn)
|
||||
{
|
||||
HSAKMT_STATUS result;
|
||||
|
||||
@@ -533,6 +534,8 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtDebugTrapIoctl(struct kfd_ioctl_dbg_trap_args *arg
|
||||
}
|
||||
|
||||
long err = kmtIoctl(kfd_fd, AMDKFD_IOC_DBG_TRAP, args);
|
||||
if (DebugReturn)
|
||||
*DebugReturn = err;
|
||||
|
||||
if (args->op == KFD_IOC_DBG_TRAP_SUSPEND_QUEUES &&
|
||||
err >= 0 && err <= args->suspend_queues.num_queues)
|
||||
|
||||
新增問題並參考
封鎖使用者