From 3d2a4b7fbd8c08ce63a6f69c7e1ba8fafdef8bb2 Mon Sep 17 00:00:00 2001 From: Laurent Morichetti Date: Fri, 19 Jun 2020 11:07:16 -0700 Subject: [PATCH] Don't reset queue_address/queue_size We should preserve the queue address and queue size when suspending a queue. The ROCdbgapi gets all its information from the KFD, and if we reset the queue properties, a call to queue snapshot will not return the correct information. Change-Id: I646ed4a779cada55b0c1b4342ec140d3678beb67 [ROCm/ROCR-Runtime commit: 4f1a9c813954627fa8afbe89049b9f698354c5b8] --- .../runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp index 76961b5597..65ac0c07de 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp @@ -707,7 +707,7 @@ int AqlQueue::CreateRingBufferFD(const char* ring_buf_shm_path, void AqlQueue::Suspend() { suspended_ = true; - auto err = hsaKmtUpdateQueue(queue_id_, 0, priority_, NULL, 0, NULL); + auto err = hsaKmtUpdateQueue(queue_id_, 0, priority_, ring_buf_, ring_buf_alloc_bytes_, NULL); assert(err == HSAKMT_STATUS_SUCCESS && "hsaKmtUpdateQueue failed."); }