SWDEV-286092 - Enable handler for marker always

For DD, send a NOP packet so that we leverage the handler to indicate
completion.

Change-Id: Ie57ea0124a8497d39cc49da1c4575c2cd86b9319
이 커밋은 다음에 포함됨:
Saleel Kudchadker 작성하고 Maneesh Gupta가 2021-08-22 23:56:07 -07:00를 커밋함
1 부모 9dfc938118
커밋 9d0846e732
1 파일이 변경됨
+8 -3
+8 -3
파일 보기
@@ -328,14 +328,19 @@ void Command::enqueue() {
// when multiple threads submit/flush/update the batch at the same time
ScopedLock sl(queue_->vdev()->execution());
queue_->FormSubmissionBatch(this);
if ((type() == CL_COMMAND_MARKER || type() == 0) && !profilingInfo().marker_ts_) {
if ((type() == CL_COMMAND_MARKER || type() == 0)) {
// The current HSA signal tracking logic requires profiling enabled for the markers
EnableProfiling();
// Update batch head for the current marker. Hence the status of all commands can be
// updated upon the marker completion
SetBatchHead(queue_->GetSubmittionBatch());
// Flush the current batch, but skip the wait on CPU if possible to avoid a stall
queue_->vdev()->flush(queue_->GetSubmittionBatch());
if (profilingInfo().marker_ts_) {
setStatus(CL_SUBMITTED);
submit(*queue_->vdev());
} else {
// Flush the current batch, but skip the wait on CPU if possible to avoid a stall
queue_->vdev()->flush(queue_->GetSubmittionBatch());
}
// The batch will be tracked with the marker now
queue_->ResetSubmissionBatch();
} else {