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:
committed by
David Yat Sin
parent
c4ae784f4b
commit
ff52cbb201
@@ -89,6 +89,7 @@ class MemoryRegion : public Checked<0x9C961F19EE175BB3> {
|
||||
AllocateDoubleMap = (1 << 2), // Map twice VA allocation to backing store
|
||||
AllocateDirect = (1 << 3), // Bypass fragment cache.
|
||||
AllocateIPC = (1 << 4), // System memory that can be IPC-shared
|
||||
AllocateNonPaged = (1 << 4), // Non-paged system memory (AllocateIPC alias)
|
||||
AllocatePCIeRW = (1 << 5), // Enforce pseudo fine grain/RW memory
|
||||
};
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
|
||||
#include "core/common/shared.h"
|
||||
#include "core/inc/checked.h"
|
||||
#include "core/inc/memory_region.h"
|
||||
#include "core/util/utils.h"
|
||||
#include "inc/amd_hsa_queue.h"
|
||||
|
||||
@@ -126,6 +127,7 @@ struct SharedQueue {
|
||||
|
||||
class LocalQueue {
|
||||
public:
|
||||
LocalQueue() : local_queue_(MemoryRegion::AllocateNonPaged) {}
|
||||
SharedQueue* queue() const { return local_queue_.shared_object(); }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user