drm: introduce a capability flag for syncobj timeline support
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 16 Apr 2019 12:57:50 +0000 (13:57 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 2 May 2019 02:36:47 +0000 (12:36 +1000)
commit060cebb20cdbcd3185d593e7194fa7a738201817
tree58e810b30211831bc4823bf5e3e500cf18069a3f
parent5ec776383d5ba119cf1bcf67e1dbcd5e96911e8a
drm: introduce a capability flag for syncobj timeline support

Unfortunately userspace users of this API cannot be publicly disclosed
yet.

This commit effectively disables timeline syncobj ioctls for all
drivers. Each driver wishing to support this feature will need to
expose DRIVER_SYNCOBJ_TIMELINE.

v2: Add uAPI capability check (Christian)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com> (v1)
Cc: Dave Airlie <airlied@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Christian König <christian.koenig@amd.com>
Cc: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190416125750.31370-1-lionel.g.landwerlin@intel.com
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_syncobj.c
include/drm/drm_drv.h
include/uapi/drm/drm.h