Make queue memory allocation non-paged

Non-paged allocation for queue memory necessary for binding wptr to
GART. Required to support usermode queue oversubscription with MES for
GFX11.

Adds AllocateNonPaged entry to MemoryRegion::AllocateEnum for clarity;
aliases AllocateIPC.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: I1a97a1820da26cf2433d9c237b2e6d2b0b8628b4


[ROCm/ROCR-Runtime commit: 061aa04147]
This commit is contained in:
Graham Sider authored and David Yat Sin committed 2022-08-04 11:21:00 -04:00
1 parent c4ae784f4b
commit ff52cbb201
4 files changed
+6 -3

No files matched your search

@@ -141,10 +141,10 @@ class Shared final : private BaseShared {
template <typename T> class Shared<T, PageAllocator<T>> final : private BaseShared {
public:
Shared() {
Shared(int flags = 0) {
assert(allocate_ != nullptr && free_ != nullptr && "Shared object allocator is not set");
shared_object_ = PageAllocator<T>::alloc();
shared_object_ = PageAllocator<T>::alloc(flags);
}
~Shared() {