Fix incorrect field names, struct names, ioctl names, and descriptions in doc comments: - probed_size -> @cpu_visible_size (correct field name) - @flags description was copy of @placement -> fix to reference DRM_XE_GEM_CREATE_FLAG_* - %XE_PXP_HWDRM_DEFAULT_SESSION -> %DRM_XE_PXP_HWDRM_DEFAULT_SESSION (missing DRM_ prefix) - Remove undefined %DRM_XE_UFENCE_WAIT_FLAG_SOFT_OP - &DRM_XE_OBSERVATION -> &DRM_IOCTL_XE_OBSERVATION - id's/struct's -> IDs/structs (fix incorrect possessive forms) - drm_xe_query_oa_units -> drm_xe_oa_unit - DRM_IOCTL_XE_VM_QUERY_MEM_RANGES_ATTRS -> DRM_IOCTL_XE_VM_QUERY_MEM_RANGE_ATTRS - DRM_IOCTL_XE_VM_QUERY_MEM_ATTRIBUTES -> DRM_IOCTL_XE_VM_QUERY_MEM_RANGE_ATTRS - @sizeof_mem_ranges_attr -> @sizeof_mem_range_attr - @vector_of_vma_mem_attr -> @vector_of_mem_attr v3: id -> ID. (Xin) split cross-reference fix to seperate patch.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -349,7 +349,7 @@ struct drm_xe_mem_region { · 348 unmodified lines | ||
| 349 | 349 | * is smaller than @total_size then this is referred to as a |
| 350 | 350 | * small BAR system. |
| 351 | 351 | * |
| 352 | − * On systems without small BAR (full BAR), the probed_size will | |
| 352 | + * On systems without small BAR (full BAR), the @cpu_visible_size will | |
| 353 | 353 | * always equal the @total_size, since all of it will be CPU |
| 354 | 354 | * accessible. |
| 355 | 355 | * |
| @@ -862,8 +862,7 @@ struct drm_xe_gem_create { · 506 unmodified lines | ||
| 862 | 862 | #define DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM (1 << 2) |
| 863 | 863 | #define DRM_XE_GEM_CREATE_FLAG_NO_COMPRESSION (1 << 3) |
| 864 | 864 | /** |
| 865 | − * @flags: Flags, currently a mask of memory instances of where BO can | |
| 866 | − * be placed | |
| 865 | + * @flags: Flags for the GEM object, see DRM_XE_GEM_CREATE_FLAG_* | |
| 867 | 866 | */ |
| 868 | 867 | __u32 flags; |
| 869 | 868 | |
| @@ -1366,7 +1365,7 @@ struct drm_xe_vm_get_property { · 496 unmodified lines | ||
| 1366 | 1365 | * drm_xe_pxp_session_type. %DRM_XE_PXP_TYPE_NONE is the default behavior, so |
| 1367 | 1366 | * there is no need to explicitly set that. When a queue of type |
| 1368 | 1367 | * %DRM_XE_PXP_TYPE_HWDRM is created, the PXP default HWDRM session |
| 1369 | − * (%XE_PXP_HWDRM_DEFAULT_SESSION) will be started, if it isn't already running. | |
| 1368 | + * (%DRM_XE_PXP_HWDRM_DEFAULT_SESSION) will be started, if it isn't already running. | |
| 1370 | 1369 | * The user is expected to query the PXP status via the query ioctl (see |
| 1371 | 1370 | * %DRM_XE_DEVICE_QUERY_PXP_STATUS) and to wait for PXP to be ready before |
| 1372 | 1371 | * attempting to create a queue with this property. When a queue is created |
| @@ -1651,7 +1650,6 @@ struct drm_xe_exec { · 278 unmodified lines | ||
| 1651 | 1650 | * |
| 1652 | 1651 | * and the @flags can be: |
| 1653 | 1652 | * - %DRM_XE_UFENCE_WAIT_FLAG_ABSTIME |
| 1654 | − * - %DRM_XE_UFENCE_WAIT_FLAG_SOFT_OP | |
| 1655 | 1653 | * |
| 1656 | 1654 | * The @mask values can be for example: |
| 1657 | 1655 | * - 0xffu for u8 |
| @@ -1741,7 +1739,7 @@ enum drm_xe_observation_op { · 83 unmodified lines | ||
| 1741 | 1739 | }; |
| 1742 | 1740 | |
| 1743 | 1741 | /** |
| 1744 | − * struct drm_xe_observation_param - Input of &DRM_XE_OBSERVATION | |
| 1742 | + * struct drm_xe_observation_param - Input of &DRM_IOCTL_XE_OBSERVATION | |
| 1745 | 1743 | * |
| 1746 | 1744 | * The observation layer enables multiplexing observation streams of |
| 1747 | 1745 | * multiple types. The actual params for a particular stream operation are |
| @@ -1902,10 +1900,10 @@ enum drm_xe_oa_format_type { · 154 unmodified lines | ||
| 1902 | 1900 | }; |
| 1903 | 1901 | |
| 1904 | 1902 | /** |
| 1905 | − * enum drm_xe_oa_property_id - OA stream property id's | |
| 1903 | + * enum drm_xe_oa_property_id - OA stream property IDs | |
| 1906 | 1904 | * |
| 1907 | 1905 | * Stream params are specified as a chain of @drm_xe_ext_set_property |
| 1908 | − * struct's, with @property values from enum @drm_xe_oa_property_id and | |
| 1906 | + * structs, with @property values from enum @drm_xe_oa_property_id and | |
| 1909 | 1907 | * @drm_xe_user_extension base.name set to @DRM_XE_OA_EXTENSION_SET_PROPERTY. |
| 1910 | 1908 | * @param field in struct @drm_xe_observation_param points to the first |
| 1911 | 1909 | * @drm_xe_ext_set_property struct. |
| @@ -1919,7 +1917,7 @@ enum drm_xe_oa_property_id { · 7 unmodified lines | ||
| 1919 | 1917 | /** |
| 1920 | 1918 | * @DRM_XE_OA_PROPERTY_OA_UNIT_ID: ID of the OA unit on which to open |
| 1921 | 1919 | * the OA stream, see @oa_unit_id in 'struct |
| 1922 | − * drm_xe_query_oa_units'. Defaults to 0 if not provided. | |
| 1920 | + * drm_xe_oa_unit'. Defaults to 0 if not provided. | |
| 1923 | 1921 | */ |
| 1924 | 1922 | DRM_XE_OA_PROPERTY_OA_UNIT_ID = 1, |
| 1925 | 1923 | |
| @@ -2369,10 +2367,10 @@ struct drm_xe_madvise { · 443 unmodified lines | ||
| 2369 | 2367 | }; |
| 2370 | 2368 | |
| 2371 | 2369 | /** |
| 2372 | − * struct drm_xe_mem_range_attr - Output of &DRM_IOCTL_XE_VM_QUERY_MEM_RANGES_ATTRS | |
| 2370 | + * struct drm_xe_mem_range_attr - Output of &DRM_IOCTL_XE_VM_QUERY_MEM_RANGE_ATTRS | |
| 2373 | 2371 | * |
| 2374 | 2372 | * This structure is provided by userspace and filled by KMD in response to the |
| 2375 | − * DRM_IOCTL_XE_VM_QUERY_MEM_RANGES_ATTRS ioctl. It describes memory attributes of | |
| 2373 | + * DRM_IOCTL_XE_VM_QUERY_MEM_RANGE_ATTRS ioctl. It describes memory attributes of | |
| 2376 | 2374 | * memory ranges within a user specified address range in a VM. |
| 2377 | 2375 | * |
| 2378 | 2376 | * The structure includes information such as atomic access policy, |
| @@ -2427,7 +2425,7 @@ struct drm_xe_mem_range_attr { · 48 unmodified lines | ||
| 2427 | 2425 | }; |
| 2428 | 2426 | |
| 2429 | 2427 | /** |
| 2430 | − * struct drm_xe_vm_query_mem_range_attr - Input of &DRM_IOCTL_XE_VM_QUERY_MEM_ATTRIBUTES | |
| 2428 | + * struct drm_xe_vm_query_mem_range_attr - Input of &DRM_IOCTL_XE_VM_QUERY_MEM_RANGE_ATTRS | |
| 2431 | 2429 | * |
| 2432 | 2430 | * This structure is used to query memory attributes of memory regions |
| 2433 | 2431 | * within a user specified address range in a VM. It provides detailed |
| @@ -2435,14 +2433,14 @@ struct drm_xe_mem_range_attr { · 1 unmodified line | ||
| 2435 | 2433 | * page attribute table (PAT) index, and preferred memory location. |
| 2436 | 2434 | * |
| 2437 | 2435 | * Userspace first calls the ioctl with @num_mem_ranges = 0, |
| 2438 | − * @sizeof_mem_ranges_attr = 0 and @vector_of_vma_mem_attr = NULL to retrieve | |
| 2436 | + * @sizeof_mem_range_attr = 0 and @vector_of_mem_attr = NULL to retrieve | |
| 2439 | 2437 | * the number of memory regions and size of each memory range attribute. |
| 2440 | 2438 | * Then, it allocates a buffer of that size and calls the ioctl again to fill |
| 2441 | 2439 | * the buffer with memory range attributes. |
| 2442 | 2440 | * |
| 2443 | 2441 | * If second call fails with -ENOSPC, it means memory ranges changed between |
| 2444 | 2442 | * first call and now, retry IOCTL again with @num_mem_ranges = 0, |
| 2445 | − * @sizeof_mem_ranges_attr = 0 and @vector_of_vma_mem_attr = NULL followed by | |
| 2443 | + * @sizeof_mem_range_attr = 0 and @vector_of_mem_attr = NULL followed by | |
| 2446 | 2444 | * second ioctl call. |
| 2447 | 2445 | * |
| 2448 | 2446 | * Example: |