Fix type mismatch passed to queue suspend/resume
The queue IDs passed over to the kernel via kfd_ioctl_dbg_trap_args->ptr
should be a list of uint32_t's. Need to convert from the passed in
64 bit HSA_QUEUEID to 32 bit uint32_t's.
Change-Id: I8718566d9f9ffc90ce0b2ecc129b10c49d73186a
Signed-off-by: Philip Cox <Philip.Cox@amd.com>
[ROCm/ROCR-Runtime commit: 608bc7c3a0]
This commit is contained in:
@@ -222,6 +222,7 @@ TEST_F(KFDDBGTest, BasicDebuggerSuspendResume) {
|
||||
m_pIsaGen->CompileShader(iterate_isa_gfx9, "iterate_isa", isaBuffer);
|
||||
|
||||
PM4Queue queue1;
|
||||
HsaQueueResource *qResources;
|
||||
HSA_QUEUEID queue_ids[2];
|
||||
|
||||
ASSERT_SUCCESS(queue1.Create(defaultGPUNode));
|
||||
@@ -243,7 +244,8 @@ TEST_F(KFDDBGTest, BasicDebuggerSuspendResume) {
|
||||
|
||||
// Submit the shader, queue1
|
||||
dispatch1->Submit(queue1);
|
||||
queue_ids[0] = 0;
|
||||
qResources = queue1.GetResource();
|
||||
queue_ids[0] = qResources->QueueId;
|
||||
|
||||
ASSERT_SUCCESS(hsaKmtQueueSuspend(
|
||||
INVALID_PID,
|
||||
|
||||
Reference in New Issue
Block a user