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]
这个提交包含在:
Laurent Morichetti 编写, Laurent Morichetti 于 2020-06-20 01:22:52 -04:00 提交
1 父节点 37ebd9b672
当前提交 3d2a4b7fbd
1 个文件已更改
+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.");
}