2
0

SWDEV-523824 - Fix data validation issue of rocFFT (#154)

Fix data validation issue of rocFFT when dynamic queue on.
ReleaseHwQueue() can be called only when no command in HostQueue.
The checking condition need be protected by lock.
Este cometimento está contido em:
Sang, Tao
2025-04-08 20:30:06 -04:00
cometido por GitHub
ascendente b006380ff6
cometimento 18d191fd1d
+1 -3
Ver ficheiro
@@ -192,12 +192,10 @@ void HostQueue::finish(bool cpu_wait) {
device_.removeFromActiveQueues(this);
lastEnqueueCommand_->release();
lastEnqueueCommand_ = nullptr;
vdev()->ReleaseHwQueue(); // we can only release HwQueue when no commmand in quque.
}
}
}
// Release HW queue to the pool for dynamic management if enabled
vdev()->ReleaseHwQueue();
command->release();
ClPrint(LOG_DEBUG, LOG_CMD, "All commands finished for host queue : %p", this);
}