From 6f331de20d12aacaa94d441125cc0d9594a87bd9 Mon Sep 17 00:00:00 2001 From: Longlong Yao Date: Wed, 11 Sep 2024 05:15:35 -0700 Subject: [PATCH] wsl/hsakmt: drop doorbell signal For wsl, doorbell ring needs to call hsaKmtQueueRingDoorbell instead of atomic store in hsa runtime. It does not care about the doorbell signal value. So just return a pointer that points a memory allocation of 8 bytes. Signed-off-by: Longlong Yao Reviewed-by: lyndonli Part-of: --- inc/wddm/queue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/wddm/queue.h b/inc/wddm/queue.h index 6bf8c57dcc..34f9feaee8 100644 --- a/inc/wddm/queue.h +++ b/inc/wddm/queue.h @@ -171,7 +171,7 @@ public: } hsa_status_t Process(void); - uint64_t * GetDoorbellPtr() const { return (uint64_t *)&doorbell_signal_.value; } + uint64_t * GetDoorbellPtr() const { return (uint64_t *)&doorbell_signal_value_; } void RingDoorbell(); private: hsa_status_t KernelDispatchAqlToPm4(char *cpu, hsa_kernel_dispatch_packet_t *packet); @@ -235,7 +235,7 @@ private: GpuMemoryHandle amd_queue_mem_; amd_queue_t *amd_queue_; amd_queue_t *amd_queue_rocr_; - amd_signal_t doorbell_signal_; + uint64_t doorbell_signal_value_; volatile std::atomic *error_code_; std::thread aql_to_pm4_thread_; bool thread_stop_;