History

Merge tag 'amd-drm-next-6.15-2025-03-07' of https://gitlab.freedesktop.org/agd5f/linux into drm-next

amdgpu: - Fix spelling typos - RAS updates - VCN 5.0.1 updates - SubVP fixes - DCN 4.0.1 fixes - MSO DPCD fixes - DIO encoder refactor - PCON fixes - Misc cleanups - DMCUB fixes - USB4 DP fixes - DM cleanups - Backlight cleanups and fixes - Support platform backlight curves - Misc code cleanups - SMU 14 fixes - JPEG 4.0.3 reset updates - SR-IOV fixes - SVM fixes - GC 12 DCC fixes - DC DCE 6.x fix - Hiberation fix amdkfd: - Fix possible NULL pointer in queue validation - Remove unnecessary CP domain validation - SDMA queue reset support - Add per process flags radeon: - Fix spelling typos - RS400 hyperZ fix UAPI: - Add KFD per process flags for setting precision Proposed user space: https://github.com/ROCm/ROCR-Runtime/commit/2a64fa5e06e80e0af36df4ce0c76ae52eeec0a9d Signed-off-by: Dave Airlie <airlied@redhat.com>

Dave Airlie committed 1 year ago

Commit 236f4752 parents d65a27f cf6d949305 files · +7289 −5041Browse files

Showing the changes to include/uapi/linux (2 of 305 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/kfd_ioctl.h +8 −2
  2. include/uapi/linux/kfd_sysfs.h +3 −0
include/uapi/linux/kfd_ioctl.h+8−2
@@ -43,9 +43,10 @@ · 42 unmodified lines
4343 * - 1.15 - Enable managing mappings in compute VMs with GEM_VA ioctl
4444 * - 1.16 - Add contiguous VRAM allocation flag
4545 * - 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
4647 */
4748 #define KFD_IOCTL_MAJOR_VERSION 1
48−#define KFD_IOCTL_MINOR_VERSION 17
49+#define KFD_IOCTL_MINOR_VERSION 18
4950
5051 struct kfd_ioctl_get_version_args {
5152 __u32 major_version; /* from KFD */
@@ -62,6 +63,8 @@ struct kfd_ioctl_get_version_args { · 10 unmodified lines
6263 #define KFD_MAX_QUEUE_PERCENTAGE 100
6364 #define KFD_MAX_QUEUE_PRIORITY 15
6465
66+#define KFD_MIN_QUEUE_RING_SIZE 1024
67+
6568 struct kfd_ioctl_create_queue_args {
6669 __u64 ring_base_address; /* to KFD */
6770 __u64 write_pointer_address; /* from KFD */
@@ -148,6 +151,9 @@ struct kfd_dbg_device_info_entry { · 80 unmodified lines
148151 #define KFD_IOC_CACHE_POLICY_COHERENT 0
149152 #define KFD_IOC_CACHE_POLICY_NONCOHERENT 1
150153
154+/* Misc. per process flags */
155+#define KFD_PROC_FLAG_MFMA_HIGH_PRECISION (1 << 0)
156+
151157 struct kfd_ioctl_set_memory_policy_args {
152158 __u64 alternate_aperture_base; /* to KFD */
153159 __u64 alternate_aperture_size; /* to KFD */
@@ -155,7 +161,7 @@ struct kfd_ioctl_set_memory_policy_args { · 1 unmodified line
155161 __u32 gpu_id; /* to KFD */
156162 __u32 default_policy; /* to KFD */
157163 __u32 alternate_policy; /* to KFD */
158− __u32 pad;
164+ __u32 misc_process_flag; /* to KFD */
159165 };
160166
161167 /*
include/uapi/linux/kfd_sysfs.h+3−0
@@ -63,6 +63,9 @@ · 62 unmodified lines
6363 #define HSA_CAP_PER_QUEUE_RESET_SUPPORTED 0x80000000
6464 #define HSA_CAP_RESERVED 0x000f8000
6565
66+#define HSA_CAP2_PER_SDMA_QUEUE_RESET_SUPPORTED 0x00000001
67+#define HSA_CAP2_RESERVED 0xfffffffe
68+
6669 /* debug_prop bits in node properties */
6770 #define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_MASK 0x0000000f
6871 #define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_SHIFT 0