mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/xe/uapi: Fix code examples in xe_drm.h documentation
Fix incorrect field names and formatting in code examples: - .num_bb_per_exec -> .width (renamed struct field in exec_queue_create examples) - .num_eng_per_bb -> .num_placements (renamed struct field in exec_queue_create examples) - .atomic_val -> .atomic.val (correct nested struct field access in madvise example) - Remove unnecessary backslash escaping in UUID format string (%\08x -> %08x) - Fix descriptive text trapped inside code-block in exec_queue_create doc (split into two code blocks) v3: one more fix of split code-block in exec_queue_create doc. Assisted-by: GitHub Copilot:claude-opus-4.6 Cc: Xin Wang <x.wang@intel.com> Reviewed-by: Xin Wang <x.wang@intel.com> Link: https://patch.msgid.link/20260407030046.3394004-6-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
This commit is contained in:
parent
4bd87e7c4d
commit
96cc9d79df
|
|
@ -1401,23 +1401,25 @@ struct drm_xe_vm_get_property {
|
|||
* struct drm_xe_exec_queue_create exec_queue_create = {
|
||||
* .extensions = 0,
|
||||
* .vm_id = vm,
|
||||
* .num_bb_per_exec = 1,
|
||||
* .num_eng_per_bb = 1,
|
||||
* .width = 1,
|
||||
* .num_placements = 1,
|
||||
* .instances = to_user_pointer(&instance),
|
||||
* };
|
||||
* ioctl(fd, DRM_IOCTL_XE_EXEC_QUEUE_CREATE, &exec_queue_create);
|
||||
*
|
||||
* Allow users to provide a hint to kernel for cases demanding low latency
|
||||
* profile. Please note it will have impact on power consumption. User can
|
||||
* indicate low latency hint with flag while creating exec queue as
|
||||
* mentioned below,
|
||||
* Allow users to provide a hint to kernel for cases demanding low latency
|
||||
* profile. Please note it will have impact on power consumption. User can
|
||||
* indicate low latency hint with flag while creating exec queue as
|
||||
* mentioned below:
|
||||
*
|
||||
* .. code-block:: C
|
||||
*
|
||||
* struct drm_xe_exec_queue_create exec_queue_create = {
|
||||
* .flags = DRM_XE_EXEC_QUEUE_LOW_LATENCY_HINT,
|
||||
* .extensions = 0,
|
||||
* .vm_id = vm,
|
||||
* .num_bb_per_exec = 1,
|
||||
* .num_eng_per_bb = 1,
|
||||
* .width = 1,
|
||||
* .num_placements = 1,
|
||||
* .instances = to_user_pointer(&instance),
|
||||
* };
|
||||
* ioctl(fd, DRM_IOCTL_XE_EXEC_QUEUE_CREATE, &exec_queue_create);
|
||||
|
|
@ -2019,7 +2021,7 @@ struct drm_xe_oa_config {
|
|||
/** @extensions: Pointer to the first extension struct, if any */
|
||||
__u64 extensions;
|
||||
|
||||
/** @uuid: String formatted like "%\08x-%\04x-%\04x-%\04x-%\012x" */
|
||||
/** @uuid: String formatted like "%08x-%04x-%04x-%04x-%012x" */
|
||||
char uuid[36];
|
||||
|
||||
/** @n_regs: Number of regs in @regs_ptr */
|
||||
|
|
@ -2181,7 +2183,7 @@ struct drm_xe_query_eu_stall {
|
|||
* .start = 0x100000,
|
||||
* .range = 0x2000,
|
||||
* .type = DRM_XE_MEM_RANGE_ATTR_ATOMIC,
|
||||
* .atomic_val = DRM_XE_ATOMIC_DEVICE,
|
||||
* .atomic.val = DRM_XE_ATOMIC_DEVICE,
|
||||
* };
|
||||
*
|
||||
* ioctl(fd, DRM_IOCTL_XE_MADVISE, &madvise);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user