libhsakmt: Support contiguous VRAM allocation flag

Add HsaMemFlags Contiguous bit for hsaKmtAllocMemory to allocate
contiguous VRAM, to support RDMA device with limited scatter-gather
ability.

Check KFD ioctl minor version >= 17.

Change-Id: I0db00dad125b2b7be523f343082641f59b850423
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Tá an tiomantas seo le fáil i:
Philip Yang tiomanta 2024-04-23 14:27:12 -04:00
1 tuismitheoir e2d742ac6f
tiomantas 97497c7efc
4 comhad athraithe
+9 -1

Níor tháinig aon chomhaid le do chuardach

+1
Féach ar an gComhad
@@ -1029,6 +1029,7 @@ struct kfd_ioctl_acquire_vm_args {
#define KFD_IOC_ALLOC_MEM_FLAGS_COHERENT (1 << 26)
#define KFD_IOC_ALLOC_MEM_FLAGS_UNCACHED (1 << 25)
#define KFD_IOC_ALLOC_MEM_FLAGS_EXT_COHERENT (1 << 24)
#define KFD_IOC_ALLOC_MEM_FLAGS_CONTIGUOUS_BEST_EFFORT (1 << 23)
/* Allocate memory for later SVM (shared virtual memory) mapping.
*