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
This commit is contained in:
committato da
Laurent Morichetti
parent
2da92265ec
commit
4f1a9c8139
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user