summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_syncobj.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-11-08 11:39:46 +0300
committerChristian König <christian.koenig@amd.com>2018-11-08 13:31:34 +0300
commit783195ec1cada862d54dee8f312a60bcbba5c0e4 (patch)
tree7e4480c5be424d30bbab9034551695452517f3c4 /drivers/gpu/drm/drm_syncobj.c
parentd9be05b784225e68cf0c9b95180d3081b4663745 (diff)
downloadlinux-783195ec1cada862d54dee8f312a60bcbba5c0e4.tar.xz
drm/syncobj: disable the timeline UAPI for now v2
Until we have sorted out all problems. v2: return -EINVAL during create if flag is set. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/260937/
Diffstat (limited to 'drivers/gpu/drm/drm_syncobj.c')
-rw-r--r--drivers/gpu/drm/drm_syncobj.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
index da8175d9c6ff..da2b85eec6cf 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -483,6 +483,10 @@ int drm_syncobj_create(struct drm_syncobj **out_syncobj, uint32_t flags,
int ret;
struct drm_syncobj *syncobj;
+ /* Disabled for now */
+ if (flags & DRM_SYNCOBJ_CREATE_TYPE_TIMELINE)
+ return -EINVAL;
+
syncobj = kzalloc(sizeof(struct drm_syncobj), GFP_KERNEL);
if (!syncobj)
return -ENOMEM;