From 8122fbebadafad0761e1c93e141f01e6dd70adf8 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Fri, 20 Oct 2017 09:04:09 -0500 Subject: [PATCH] Set doorbell kind code for gfx9+ device enqueue. Change-Id: I93c4cea677ae51f97ac768614333743fb26b2f54 [ROCm/ROCR-Runtime commit: 5a4ab91be19d3414102c4fbb7a3aa60ed86dd535] --- .../runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp index b79a1b249d..787243a747 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp @@ -160,7 +160,7 @@ AqlQueue::AqlQueue(GpuAgent* agent, size_t req_size_pkts, HSAuint32 node_id, Scr // Populate doorbell signal structure. memset(&signal_, 0, sizeof(signal_)); - signal_.kind = AMD_SIGNAL_KIND_LEGACY_DOORBELL; + signal_.kind = (doorbell_type_ == 2) ? AMD_SIGNAL_KIND_DOORBELL : AMD_SIGNAL_KIND_LEGACY_DOORBELL; signal_.legacy_hardware_doorbell_ptr = (volatile uint32_t*)queue_rsrc.Queue_DoorBell; signal_.queue_ptr = &amd_queue_;