From 086b4b686c745eb19fe8f1af7c6fdb0d4067b6aa Mon Sep 17 00:00:00 2001 From: Ramesh Errabolu Date: Fri, 25 Oct 2019 15:16:15 -0500 Subject: [PATCH] Fix Aql Header initialization Change-Id: If23c12b28d22fb62b673038890f40bb0f3c3948b --- rocrtst/common/base_rocr_utils.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rocrtst/common/base_rocr_utils.cc b/rocrtst/common/base_rocr_utils.cc index 298b646862..f97e2f8644 100755 --- a/rocrtst/common/base_rocr_utils.cc +++ b/rocrtst/common/base_rocr_utils.cc @@ -375,8 +375,11 @@ hsa_status_t InitializeAQLPacket(const BaseRocR* test, if (aql == nullptr) { return HSA_STATUS_ERROR; } - - aql->header = 0; // Set this right before doorbell ring + + // Initialize Packet type as Invalid + // Update packet type to Kernel Dispatch + // right before ringing doorbell + aql->header = 1; aql->setup = 1; aql->workgroup_size_x = 256;