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]
This commit is contained in:
Xiaogang Chen authored and Xiaogang Chen committed 2023-05-29 00:15:14 -04:00
1 parent ee0c668706
commit b4b03aca20
3 files changed
+78 -3

No files matched your search

@@ -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;