aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2016-06-16 16:08:19 -0400
committerRob Clark <robdclark@gmail.com>2016-09-15 17:39:49 -0400
commitf0a42bb5423a1387e54a2d3451a10d4358b8cfb6 (patch)
tree8af2eba10c143deecf6c8aac8da84bb01582c6b7 /include/uapi
parentd9c181e22a0599fa7e27c3717f56bc1b3b020e63 (diff)
drm/msm: submit support for in-fences
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/msm_drm.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h
index 913e08cd5ceb..0402994cdbb7 100644
--- a/include/uapi/drm/msm_drm.h
+++ b/include/uapi/drm/msm_drm.h
@@ -185,8 +185,12 @@ struct drm_msm_gem_submit_bo {
185}; 185};
186 186
187/* Valid submit ioctl flags: */ 187/* Valid submit ioctl flags: */
188/* to start, nothing.. */ 188#define MSM_SUBMIT_NO_IMPLICIT 0x80000000 /* disable implicit sync */
189#define MSM_SUBMIT_FLAGS 0 189#define MSM_SUBMIT_FENCE_FD_IN 0x40000000 /* enable input fence_fd */
190#define MSM_SUBMIT_FLAGS ( \
191 MSM_SUBMIT_NO_IMPLICIT | \
192 MSM_SUBMIT_FENCE_FD_IN | \
193 0)
190 194
191/* Each cmdstream submit consists of a table of buffers involved, and 195/* Each cmdstream submit consists of a table of buffers involved, and
192 * one or more cmdstream buffers. This allows for conditional execution 196 * one or more cmdstream buffers. This allows for conditional execution
@@ -199,6 +203,7 @@ struct drm_msm_gem_submit {
199 __u32 nr_cmds; /* in, number of submit_cmd's */ 203 __u32 nr_cmds; /* in, number of submit_cmd's */
200 __u64 __user bos; /* in, ptr to array of submit_bo's */ 204 __u64 __user bos; /* in, ptr to array of submit_bo's */
201 __u64 __user cmds; /* in, ptr to array of submit_cmd's */ 205 __u64 __user cmds; /* in, ptr to array of submit_cmd's */
206 __s32 fence_fd; /* in/out fence fd (see MSM_SUBMIT_FENCE_FD_IN) */
202}; 207};
203 208
204/* The normal way to synchronize with the GPU is just to CPU_PREP on 209/* The normal way to synchronize with the GPU is just to CPU_PREP on