SWDEV-431879 - Introduce IsHandlerPending back.

It seems that due to removal of vdev()->isHandlerPending(),
Marker queued to ensure finish is not enqueued and that cause
hung at waiting event for kernel enqueue command.

Change-Id: I364abb2dcb4897b11a7eb61b5d85013b69292792


[ROCm/clr commit: eecbc2e436]
Этот коммит содержится в:
Jaydeep Patel
2023-11-21 03:41:49 +00:00
коммит произвёл Jaydeepkumar Patel
родитель 3bdedf0cc7
Коммит 7933b88d7c
5 изменённых файлов: 21 добавлений и 2 удалений
+2 -1
Просмотреть файл
@@ -131,7 +131,8 @@ void HostQueue::finish(bool cpu_wait) {
(command->NotifyEvent() != nullptr) ? command->NotifyEvent()->HwEvent() : command->HwEvent();
force_marker = (hw_event == nullptr);
}
if (nullptr == command || force_marker || vdev()->isFenceDirty()) {
if (nullptr == command || force_marker ||
vdev()->isHandlerPending() || vdev()->isFenceDirty()) {
if (nullptr != command) {
command->release();
}