Add support for more per-process flags starting with option to configure MFMA precision for gfx 9.5 v2: Change flag name to KFD_PROC_FLAG_MFMA_HIGH_PRECISION Remove unused else condition v3: Bump the KFD API version v4: Missed SH_MEM_CONFIG__PRECISION_MODE__SHIFT define. Added it.
Showing the changes to include/uapi/linux (1 of 11 files). Show all
Unified · Split
| @@ -43,9 +43,10 @@ · 42 unmodified lines | ||
| 43 | 43 | * - 1.15 - Enable managing mappings in compute VMs with GEM_VA ioctl |
| 44 | 44 | * - 1.16 - Add contiguous VRAM allocation flag |
| 45 | 45 | * - 1.17 - Add SDMA queue creation with target SDMA engine ID |
| 46 | + * - 1.18 - Rename pad in set_memory_policy_args to misc_process_flag | |
| 46 | 47 | */ |
| 47 | 48 | #define KFD_IOCTL_MAJOR_VERSION 1 |
| 48 | −#define KFD_IOCTL_MINOR_VERSION 17 | |
| 49 | +#define KFD_IOCTL_MINOR_VERSION 18 | |
| 49 | 50 | |
| 50 | 51 | struct kfd_ioctl_get_version_args { |
| 51 | 52 | __u32 major_version; /* from KFD */ |
| @@ -150,6 +151,9 @@ struct kfd_dbg_device_info_entry { · 98 unmodified lines | ||
| 150 | 151 | #define KFD_IOC_CACHE_POLICY_COHERENT 0 |
| 151 | 152 | #define KFD_IOC_CACHE_POLICY_NONCOHERENT 1 |
| 152 | 153 | |
| 154 | +/* Misc. per process flags */ | |
| 155 | +#define KFD_PROC_FLAG_MFMA_HIGH_PRECISION (1 << 0) | |
| 156 | + | |
| 153 | 157 | struct kfd_ioctl_set_memory_policy_args { |
| 154 | 158 | __u64 alternate_aperture_base; /* to KFD */ |
| 155 | 159 | __u64 alternate_aperture_size; /* to KFD */ |
| @@ -157,7 +161,7 @@ struct kfd_ioctl_set_memory_policy_args { · 1 unmodified line | ||
| 157 | 161 | __u32 gpu_id; /* to KFD */ |
| 158 | 162 | __u32 default_policy; /* to KFD */ |
| 159 | 163 | __u32 alternate_policy; /* to KFD */ |
| 160 | − __u32 pad; | |
| 164 | + __u32 misc_process_flag; /* to KFD */ | |
| 161 | 165 | }; |
| 162 | 166 | |
| 163 | 167 | /* |