SWDEV-292820 - Add a new notify lock

HSA signal calback may occur during the actual marker submit. That
may cause a deadlock, because shared lock_ object. Create the new
notify_lock_ field to protect the notification.

Change-Id: I9752af84e59895530620fac3932c6fc276de8658
이 커밋은 다음에 포함됨:
German Andryeyev 작성하고 Maneesh Gupta가 2021-08-22 23:56:07 -07:00를 커밋함
1 부모 56d9240da4
커밋 f34c1b9ff8
2 파일이 변경됨
+2 -1

검색과 일치하는 파일 없음

+1 -1
파일 보기
@@ -265,7 +265,7 @@ bool Event::awaitCompletion() {
bool Event::notifyCmdQueue() {
HostQueue* queue = command().queue();
if (AMD_DIRECT_DISPATCH) {
ScopedLock l(lock_);
ScopedLock l(notify_lock_);
if ((status() > CL_COMPLETE) && (nullptr != queue) &&
// If HW event was assigned, then notification can be ignored, since a barrier was issued
(HwEvent() == nullptr) &&