summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-01-16 16:12:14 +1300
committerEric Anholt <eric@anholt.net>2015-06-04 14:15:30 -0700
commit19d37d01bc3ff4545149cfce00992fc58b28377e (patch)
tree34f6efc081ed16c6ac2af3f9f2c428efb7dfe713
parent2d8c710ff9482bfa0fba069b5681929d2cbe9ecd (diff)
downloadlinux-19d37d01bc3ff4545149cfce00992fc58b28377e.tar.gz
drm/vc4: Add a "flags" arg to submit_cl.
This was one of danvet's recommendations from his ioctls talk, and it makes sense. It also happens to occupy a 32-bit padding slot in the struct. Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--drivers/gpu/drm/vc4/vc4_gem.c3
-rw-r--r--include/uapi/drm/vc4_drm.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_gem.c b/drivers/gpu/drm/vc4/vc4_gem.c
index 67edd30b9a72..9343f36272c0 100644
--- a/drivers/gpu/drm/vc4/vc4_gem.c
+++ b/drivers/gpu/drm/vc4/vc4_gem.c
@@ -550,6 +550,9 @@ vc4_submit_cl_ioctl(struct drm_device *dev, void *data,
struct vc4_exec_info *exec;
int ret;
+ if (args->flags != 0)
+ return -EINVAL;
+
exec = kcalloc(1, sizeof(*exec), GFP_KERNEL);
if (!exec) {
DRM_ERROR("malloc failure on exec struct\n");
diff --git a/include/uapi/drm/vc4_drm.h b/include/uapi/drm/vc4_drm.h
index 453fb7013c68..4dabfeab4dcc 100644
--- a/include/uapi/drm/vc4_drm.h
+++ b/include/uapi/drm/vc4_drm.h
@@ -115,6 +115,7 @@ struct drm_vc4_submit_cl {
/* Number of BO handles passed in (size is that times 4). */
uint32_t bo_handle_count;
+ uint32_t flags;
uint32_t pad;
/* Returned value of the seqno of this render job (for the