From 7f79d0febc052e26e65b6356819662bb4c369c91 Mon Sep 17 00:00:00 2001 From: David Yat Sin <77975354+dayatsin-amd@users.noreply.github.com> Date: Fri, 10 Oct 2025 17:35:15 -0400 Subject: [PATCH] rocr: Set signal memory allocations to NonPaged (#1219) Set memory allocation to non-paged to avoid issues caused when CP tries to access signals after page has been migrated. --- .../rocr-runtime/runtime/hsa-runtime/core/runtime/signal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/signal.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/signal.cpp index 6cc1eaf759..518b5b121c 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/signal.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/signal.cpp @@ -79,11 +79,11 @@ SharedSignal* SharedSignalPool_t::alloc() { ScopedAcquire lock(&lock_); if (free_list_.empty()) { SharedSignal* block = reinterpret_cast( - allocate_()(block_size_ * sizeof(SharedSignal), __alignof(SharedSignal), 0, 0)); + allocate_()(block_size_ * sizeof(SharedSignal), __alignof(SharedSignal), core::MemoryRegion::AllocateNonPaged, 0)); if (block == nullptr) { block_size_ = minblock_; block = reinterpret_cast( - allocate_()(block_size_ * sizeof(SharedSignal), __alignof(SharedSignal), 0, 0)); + allocate_()(block_size_ * sizeof(SharedSignal), __alignof(SharedSignal), core::MemoryRegion::AllocateNonPaged, 0)); if (block == nullptr) throw std::bad_alloc(); }