libhsakmt: Add memory alloc flag GTTAccess

To allocate GTT memory for MES AQL queue structure, KFD will create GART
mapping for the memory to be accessed by MES.

Change-Id: Iae7b33d1e70861109f1551d3a71dc60dfde9de61
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
这个提交包含在:
Philip Yang
2024-03-13 10:55:54 -04:00
提交者 Harish Kasiviswanathan
父节点 656234abb8
当前提交 9fbe853fea
共修改 2 个文件,包含 4 行新增和 2 行删除
+3 -1
查看文件
@@ -567,7 +567,9 @@ typedef struct _HsaMemFlags
unsigned int NoAddress: 1; // only do vram allocation, return a handle, not allocate virtual address.
unsigned int OnlyAddress: 1; // only do virtal address allocation without vram allocation.
unsigned int ExtendedCoherent: 1; // system-scope coherence on atomic instructions
unsigned int Reserved: 11;
unsigned int GTTAccess: 1; // default = 0; If 1: The caller indicates this memory will be mapped to GART for MES
// KFD will allocate GTT memory with the Preferred_node set as gpu_id for GART mapping
unsigned int Reserved: 10;
} ui32;
HSAuint32 Value;