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>
This commit is contained in:
Philip Cox
2019-05-14 09:37:50 -04:00
orang tua 54e042eee1
melakukan 608bc7c3a0
4 mengubah file dengan 43 tambahan dan 5 penghapusan
+3 -1
Melihat File
@@ -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,