libhsakmt: support vram-only and VA-only alloc/free.

Signed-off-by: Xiaogang.Chen <Xiaogang.Chen@amd.com>
Change-Id: I47cf53642d2ea197c08b20e84d7cae04b2d431e0


[ROCm/ROCR-Runtime commit: 0138487aa4]
这个提交包含在:
Xiaogang Chen 编写, Xiaogang Chen 于 2023-05-29 00:15:14 -04:00 提交
1 父节点 ee0c668706
当前提交 b4b03aca20
3 个文件已更改
+78 -3

没有与搜索条件相匹配的文件

+3 -1
查看文件
@@ -564,7 +564,9 @@ typedef struct _HsaMemFlags
unsigned int FixedAddress : 1; // Allocate memory at specified virtual address. Fail if address is not free.
unsigned int NoNUMABind: 1; // Don't bind system memory to a specific NUMA node
unsigned int Uncached: 1; // Caching flag for fine-grained memory on A+A HW platform
unsigned int Reserved : 14;
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 Reserved: 12;
} ui32;
HSAuint32 Value;