Skip to content

Commit d8a1cce

Browse files
drm/amdgpu/UAPI: Add explicit sync to the amdgpu_vem_va ioctl.
1 parent f443e37 commit d8a1cce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/uapi/drm/amdgpu_drm.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ struct drm_amdgpu_gem_op {
514514
#define AMDGPU_VM_MTYPE_UC (4 << 5)
515515
/* Use Read Write MTYPE instead of default MTYPE */
516516
#define AMDGPU_VM_MTYPE_RW (5 << 5)
517+
/* Use wait_syncobj/signal_syncobj and do not apply implicit sync */
518+
#define AMDGPU_VM_EXPLICIT_SYNC (1 << 9)
517519

518520
struct drm_amdgpu_gem_va {
519521
/** GEM object handle */
@@ -529,6 +531,15 @@ struct drm_amdgpu_gem_va {
529531
__u64 offset_in_bo;
530532
/** Specify mapping size. Must be correctly aligned. */
531533
__u64 map_size;
534+
535+
/** pointer to array of struct drm_amdgpu_cs_chunk_syncobj */
536+
__u64 wait_syncobj;
537+
/** pointer to array of struct drm_amdgpu_cs_chunk_syncobj */
538+
__u64 signal_syncobj;
539+
/** length of wait_syncobj in number of elements. */
540+
__u32 num_wait_syncobj;
541+
/** length of signal_syncobj in number of elements. */
542+
__u32 num_signal_syncobj;
532543
};
533544

534545
#define AMDGPU_HW_IP_GFX 0

0 commit comments

Comments
 (0)