Adding support for new AQL Queue Memory allocation
Change-Id: If84fc4b961627dbdd0b77b1c509a3c9a4c709b9f
Signed-off-by: Ben Goz <ben.goz@amd.com>
[ROCm/ROCR-Runtime commit: e61500c46e]
This commit is contained in:
@@ -182,7 +182,8 @@ typedef union
|
||||
unsigned int DoorbellType : 2; // 0: This node has pre-1.0 doorbell characteristic
|
||||
// 1: This node has 1.0 doorbell characteristic
|
||||
// 2,3: reserved for future use
|
||||
unsigned int Reserved : 18;
|
||||
unsigned int AQLQueueDoubleMap : 1; // The unit needs a VA “double map”
|
||||
unsigned int Reserved : 17;
|
||||
} ui32;
|
||||
} HSA_CAPABILITY;
|
||||
|
||||
@@ -458,7 +459,10 @@ typedef struct _HsaMemFlags
|
||||
// 1: memory consistency needs to be enforced at
|
||||
// synchronization points at dispatch or other software
|
||||
// enforced synchronization boundaries.
|
||||
unsigned int Reserved : 18;
|
||||
unsigned int AQLQueueMemory: 1; // default = 0; If 1: The caller indicates that the memory will be used as AQL queue memory.
|
||||
// The KFD will ensure that the memory returned is allocated in the optimal memory location
|
||||
// and optimal alignment requirements
|
||||
unsigned int Reserved : 17;
|
||||
|
||||
} ui32;
|
||||
HSAuint32 Value;
|
||||
|
||||
@@ -296,6 +296,8 @@ struct kfd_ioctl_set_process_dgpu_aperture_args {
|
||||
#define KFD_IOC_ALLOC_MEM_FLAGS_APU_DEVICE (1 << 3)
|
||||
#define KFD_IOC_ALLOC_MEM_FLAGS_APU_SCRATCH (1 << 4)
|
||||
|
||||
#define KFD_IOC_ALLOC_MEM_FLAGS_DGPU_AQL_QUEUE_MEM (1 << 5)
|
||||
|
||||
struct kfd_ioctl_alloc_memory_of_gpu_new_args {
|
||||
uint64_t va_addr; /* to KFD */
|
||||
uint64_t size; /* to KFD */
|
||||
|
||||
Reference in New Issue
Block a user