From 5f50e97d18ebef13bef9285f73a916d3a333237a Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Thu, 9 Mar 2017 18:56:03 -0600 Subject: [PATCH] Support async error code 256, invalid vendor specific packet. Change-Id: I491f34def4c3d54403864fa42670f7847a6141cc --- runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp b/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp index 9147c52659..152e86c031 100644 --- a/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp @@ -731,7 +731,9 @@ bool AqlQueue::DynamicScratchHandler(hsa_signal_value_t error_code, void* arg) { queue->public_handle(), queue->errors_data_); return false; - } else if ((error_code & 32) == 32) { // Invalid format + } else if (((error_code & 32) == 32) || + ((error_code & 256) == 256)) { // Invalid format: 32 is generic, + // 256 is vendor specific packets queue->Inactivate(); if (queue->errors_callback_ != NULL) queue->errors_callback_(HSA_STATUS_ERROR_INVALID_PACKET_FORMAT,