libhsakmt: update to KFD ioctl version 1.6
sync with KFD ioctl version 1.6: 1.6 - Query clear flags in SVM get_attr API Change import export handle args pad field to flags, to pass memory alloc flags from alloc process to import process. Change-Id: I69360b244651947e885c4a8da9f64a1163101d20 Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Этот коммит содержится в:
@@ -31,9 +31,10 @@
|
||||
* - 1.3 - Add SMI events support
|
||||
* - 1.4 - Indicate new SRAM EDC bit in device properties
|
||||
* - 1.5 - Add SVM API
|
||||
* - 1.6 - Query clear flags in SVM get_attr API
|
||||
*/
|
||||
#define KFD_IOCTL_MAJOR_VERSION 1
|
||||
#define KFD_IOCTL_MINOR_VERSION 5
|
||||
#define KFD_IOCTL_MINOR_VERSION 6
|
||||
|
||||
/*
|
||||
* Debug revision change log
|
||||
@@ -929,16 +930,16 @@ struct kfd_ioctl_ipc_export_handle_args {
|
||||
__u64 handle; /* to KFD */
|
||||
__u32 share_handle[4]; /* from KFD */
|
||||
__u32 gpu_id; /* to KFD */
|
||||
__u32 pad;
|
||||
__u32 flags; /* to KFD */
|
||||
};
|
||||
|
||||
struct kfd_ioctl_ipc_import_handle_args {
|
||||
__u64 handle; /* from KFD */
|
||||
__u64 va_addr; /* to KFD */
|
||||
__u64 mmap_offset; /* from KFD */
|
||||
__u64 mmap_offset; /* from KFD */
|
||||
__u32 share_handle[4]; /* to KFD */
|
||||
__u32 gpu_id; /* to KFD */
|
||||
__u32 pad;
|
||||
__u32 flags; /* from KFD */
|
||||
};
|
||||
|
||||
struct kfd_memory_range {
|
||||
@@ -1073,18 +1074,19 @@ struct kfd_ioctl_svm_attribute {
|
||||
* @KFD_IOCTL_SVM_ATTR_PREFERRED_LOC or
|
||||
* @KFD_IOCTL_SVM_ATTR_PREFETCH_LOC resepctively. For
|
||||
* @KFD_IOCTL_SVM_ATTR_SET_FLAGS, flags of all pages will be
|
||||
* aggregated by bitwise AND. The minimum migration granularity
|
||||
* throughout the range will be returned for
|
||||
* @KFD_IOCTL_SVM_ATTR_GRANULARITY.
|
||||
* aggregated by bitwise AND. That means, a flag will be set in the
|
||||
* output, if that flag is set for all pages in the range. For
|
||||
* @KFD_IOCTL_SVM_ATTR_CLR_FLAGS, flags of all pages will be
|
||||
* aggregated by bitwise NOR. That means, a flag will be set in the
|
||||
* output, if that flag is clear for all pages in the range.
|
||||
* The minimum migration granularity throughout the range will be
|
||||
* returned for @KFD_IOCTL_SVM_ATTR_GRANULARITY.
|
||||
*
|
||||
* Querying of accessibility attributes works by initializing the
|
||||
* attribute type to @KFD_IOCTL_SVM_ATTR_ACCESS and the value to the
|
||||
* GPUID being queried. Multiple attributes can be given to allow
|
||||
* querying multiple GPUIDs. The ioctl function overwrites the
|
||||
* attribute type to indicate the access for the specified GPU.
|
||||
*
|
||||
* @KFD_IOCTL_SVM_ATTR_CLR_FLAGS is invalid for
|
||||
* @KFD_IOCTL_SVM_OP_GET_ATTR.
|
||||
*/
|
||||
struct kfd_ioctl_svm_args {
|
||||
__u64 start_addr;
|
||||
|
||||
Ссылка в новой задаче
Block a user