Correct queue error reporting.

VM faults should not report via the queue error handler.
The system event contains much more useful information.

Change-Id: I744d9b97b23334d7ed2c0f450111c1b8032567e3
This commit is contained in:
Sean Keely
2022-03-23 20:35:33 -05:00
والد af0f90800d
کامیت fbc48521dc
@@ -1042,6 +1042,13 @@ bool AqlQueue::ExceptionHandler(hsa_signal_value_t error_code, void* arg) {
// Undefined or unexpected code
assert((errorCode != HSA_STATUS_ERROR) && "Undefined or unexpected queue error code");
// Suppress VM fault reporting. This is more useful when reported through the system error
// handler.
if (errorCode == HSA_STATUS_ERROR_MEMORY_FAULT) {
debug_print("Queue error - HSA_STATUS_ERROR_MEMORY_FAULT\n");
return false;
}
queue->Suspend();
if (queue->errors_callback_ != nullptr) {
queue->errors_callback_(errorCode, queue->public_handle(), queue->errors_data_);