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
43 * - 1.15 - Enable managing mappings in compute VMs with GEM_VA ioctl43 * - 1.15 - Enable managing mappings in compute VMs with GEM_VA ioctl
44 * - 1.16 - Add contiguous VRAM allocation flag44 * - 1.16 - Add contiguous VRAM allocation flag
45 * - 1.17 - Add SDMA queue creation with target SDMA engine ID45 * - 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#define KFD_IOCTL_MAJOR_VERSION 148#define KFD_IOCTL_MAJOR_VERSION 1
48#define KFD_IOCTL_MINOR_VERSION 1749#define KFD_IOCTL_MINOR_VERSION 18
49 50
50struct kfd_ioctl_get_version_args {51struct kfd_ioctl_get_version_args {
51 __u32 major_version; /* from KFD */52 __u32 major_version; /* from KFD */
@@ -62,6 +63,8 @@ struct kfd_ioctl_get_version_args { · 10 unmodified lines
62#define KFD_MAX_QUEUE_PERCENTAGE 10063#define KFD_MAX_QUEUE_PERCENTAGE 100
63#define KFD_MAX_QUEUE_PRIORITY 1564#define KFD_MAX_QUEUE_PRIORITY 15
64 65
66#define KFD_MIN_QUEUE_RING_SIZE 1024
67
65struct kfd_ioctl_create_queue_args {68struct kfd_ioctl_create_queue_args {
66 __u64 ring_base_address; /* to KFD */69 __u64 ring_base_address; /* to KFD */
67 __u64 write_pointer_address; /* from KFD */70 __u64 write_pointer_address; /* from KFD */
@@ -148,6 +151,9 @@ struct kfd_dbg_device_info_entry { · 80 unmodified lines
148#define KFD_IOC_CACHE_POLICY_COHERENT 0151#define KFD_IOC_CACHE_POLICY_COHERENT 0
149#define KFD_IOC_CACHE_POLICY_NONCOHERENT 1152#define KFD_IOC_CACHE_POLICY_NONCOHERENT 1
150 153
154/* Misc. per process flags */
155#define KFD_PROC_FLAG_MFMA_HIGH_PRECISION (1 << 0)
156
151struct kfd_ioctl_set_memory_policy_args {157struct kfd_ioctl_set_memory_policy_args {
152 __u64 alternate_aperture_base; /* to KFD */158 __u64 alternate_aperture_base; /* to KFD */
153 __u64 alternate_aperture_size; /* to KFD */159 __u64 alternate_aperture_size; /* to KFD */
@@ -155,7 +161,7 @@ struct kfd_ioctl_set_memory_policy_args { · 1 unmodified line
155 __u32 gpu_id; /* to KFD */161 __u32 gpu_id; /* to KFD */
156 __u32 default_policy; /* to KFD */162 __u32 default_policy; /* to KFD */
157 __u32 alternate_policy; /* to KFD */163 __u32 alternate_policy; /* to KFD */
158 __u32 pad;164 __u32 misc_process_flag; /* to KFD */
159};165};
160 166
161/*167/*
include/uapi/linux/kfd_sysfs.h+3−0
@@ -63,6 +63,9 @@ · 62 unmodified lines
63#define HSA_CAP_PER_QUEUE_RESET_SUPPORTED 0x8000000063#define HSA_CAP_PER_QUEUE_RESET_SUPPORTED 0x80000000
64#define HSA_CAP_RESERVED 0x000f800064#define HSA_CAP_RESERVED 0x000f8000
65 65
66#define HSA_CAP2_PER_SDMA_QUEUE_RESET_SUPPORTED 0x00000001
67#define HSA_CAP2_RESERVED 0xfffffffe
68
66/* debug_prop bits in node properties */69/* debug_prop bits in node properties */
67#define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_MASK 0x0000000f70#define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_MASK 0x0000000f
68#define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_SHIFT 071#define HSA_DBG_WATCH_ADDR_MASK_LO_BIT_SHIFT 0