fix suspend/resume logic in debug_trap code
There was a mistake and RESUME was used when it should have been suspend in two places in the suspend resume code. This fixes that error. Change-Id: I69be733d7ae7c14ce5ee8af57a307976e4212d62
This commit is contained in:
+2
-2
@@ -285,7 +285,7 @@ static HSAKMT_STATUS debug_trap(HSAuint32 NodeId,
|
||||
|
||||
CHECK_KFD_OPEN();
|
||||
|
||||
if (op == KFD_IOC_DBG_TRAP_NODE_RESUME ||
|
||||
if (op == KFD_IOC_DBG_TRAP_NODE_SUSPEND ||
|
||||
op == KFD_IOC_DBG_TRAP_NODE_RESUME) {
|
||||
if (NodeId != INVALID_NODEID)
|
||||
return HSAKMT_STATUS_INVALID_HANDLE;
|
||||
@@ -443,7 +443,7 @@ hsaKmtQueueSuspend(
|
||||
CHECK_KFD_OPEN();
|
||||
|
||||
return debug_trap(INVALID_NODEID,
|
||||
KFD_IOC_DBG_TRAP_NODE_RESUME,
|
||||
KFD_IOC_DBG_TRAP_NODE_SUSPEND,
|
||||
Flags,
|
||||
NumQueues,
|
||||
GracePeriod,
|
||||
|
||||
Reference in New Issue
Block a user