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

Signed-off-by: Xiaogang.Chen <Xiaogang.Chen@amd.com>
Change-Id: I47cf53642d2ea197c08b20e84d7cae04b2d431e0
This commit is contained in:
Xiaogang Chen
2022-10-31 16:33:15 -05:00
committed by Xiaogang Chen
parent 0a2989083b
commit 0138487aa4
3 changed files with 78 additions and 3 deletions
+3 -1
View File
@@ -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;