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: 4f1a9c8139]
This commit is contained in:
Laurent Morichetti authored and Laurent Morichetti committed 2020-06-20 01:22:52 -04:00
1 bovenliggende 37ebd9b672
commit 3d2a4b7fbd
1 file changed
+1 -1
@@ -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.");
}