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>
This commit is contained in:
committed by
Harish Kasiviswanathan
parent
656234abb8
commit
9fbe853fea
+1
-1
@@ -152,7 +152,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtAllocMemory(HSAuint32 PreferredNode,
|
||||
}
|
||||
|
||||
/* GPU allocated system memory */
|
||||
if (!gpu_id || !MemFlags.ui32.NonPaged || zfb_support) {
|
||||
if (!gpu_id || !MemFlags.ui32.NonPaged || zfb_support || MemFlags.ui32.GTTAccess) {
|
||||
/* Backwards compatibility hack: Allocate system memory if app
|
||||
* asks for paged memory from a GPU node.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user